通过id设置相对兄弟元素对齐。 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height=" ...
分类:
其他好文 时间:
2018-08-01 20:50:59
阅读次数:
164
<ImageView android:id="@+id/adapter_store_employee_list_imgv_sex" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lay ...
分类:
移动开发 时间:
2018-07-24 15:52:50
阅读次数:
177
最近开发比较烦,这个作为我第一篇博客吧。 效果就是图上的样子。 首先是布局文件,没什么就是一个RecycleView <android.support.v7.widget.RecyclerView android:id="@+id/dis_rv" android:layout_width="matc ...
分类:
移动开发 时间:
2018-07-20 16:49:37
阅读次数:
232
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" androi ...
分类:
其他好文 时间:
2018-05-24 19:57:43
阅读次数:
205
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and ...
分类:
其他好文 时间:
2018-05-10 20:23:12
阅读次数:
185
归纳一下控件属性,很多属性都是共通的,不一定只有我归类那个可以用 TextView: android:id:给当前控件定义唯一标示符 android:layout_width:指定控件的宽度 android:layout_height:指定控件的高度 (高宽属性的可选值:match_parent(比 ...
分类:
其他好文 时间:
2018-04-26 11:55:46
阅读次数:
170
android:onClick 属性:点击按钮调用方法 给篮球比赛设定计数器,第一张图是我的Java代码: 设置变量前首先要确定是全局变量(global)还是局部变量(local) 一种不错的思维方式:写代码前要清楚实现什么功能,以及明确步骤 将伪代码转换为代码 把 layout_width 设置成 ...
分类:
移动开发 时间:
2018-03-21 13:57:21
阅读次数:
232
在android的实践开发中,为了界面的美观,往往那些搜索框并没有带搜索按钮,而是调用了软键盘的搜索按钮,完成这次时间 1 2 好吧!直接上代码! <EditText android:id="@+id/my_chat_seach" android:layout_width="fill_parent" ...
分类:
移动开发 时间:
2018-03-21 13:56:54
阅读次数:
286
View是android的基本视图,所有控件和布局都是直接或者间接由View派生而来。 1.id:编号 2.layout_width:宽度 3.layout_height:高度 4.各种margin:外边距 5.minWidth:最小宽度 6.minHeight:最小高度 7.background: ...
分类:
其他好文 时间:
2018-01-27 22:16:52
阅读次数:
184
侧滑菜单。。。。。。。。。。。。。。 布局:<android.support.v4.widget.DrawerLayout android:id="@+id/drawer" android:layout_width="match_parent" android:layout_height="matc ...
分类:
其他好文 时间:
2017-12-08 16:32:43
阅读次数:
163