码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果
RelativeLayout.LayoutParams
通过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
android动态设置图片
<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
Android 实现朋友圈有图片和视频
最近开发比较烦,这个作为我第一篇博客吧。 效果就是图上的样子。 首先是布局文件,没什么就是一个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
常用UI布局
<?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 studio 2018.3.21
android:onClick 属性:点击按钮调用方法 给篮球比赛设定计数器,第一张图是我的Java代码: 设置变量前首先要确定是全局变量(global)还是局部变量(local) 一种不错的思维方式:写代码前要清楚实现什么功能,以及明确步骤 将伪代码转换为代码 把 layout_width 设置成 ...
分类:移动开发   时间:2018-03-21 13:57:21    阅读次数:232
android 监控软键盘确定 搜索 按钮并赋予点击事件
在android的实践开发中,为了界面的美观,往往那些搜索框并没有带搜索按钮,而是调用了软键盘的搜索按钮,完成这次时间 1 2 好吧!直接上代码! <EditText android:id="@+id/my_chat_seach" android:layout_width="fill_parent" ...
分类:移动开发   时间:2018-03-21 13:56:54    阅读次数:286
View类的常用属性
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
侧滑菜单DrawerLayout
侧滑菜单。。。。。。。。。。。。。。 布局:<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
981条   上一页 1 ... 6 7 8 9 10 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!