码迷,mamicode.com
首页 >  
搜索关键字:layout_height    ( 604个结果
ImageView图片适应屏幕宽度,等比例拉伸
<ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:scaleType="fitCenter" android:adjustViewBounds="true"/>
分类:其他好文   时间:2016-09-09 18:56:49    阅读次数:122
未解决问题
@、 1、自定义了一个RelativeLayout类MyCustomLayout,然后在onDraw(...)中,画一个圆canvas.drawCircle(...)。 2、自定义了一个Dialog类MyDialog,其中xml中是RelativeLayout,并且layout_height和lay ...
分类:其他好文   时间:2016-09-07 19:07:39    阅读次数:129
Android中布局文件中使用onClick属性
安卓开发中,布局文件中的控件有一个属性,是onClick,例如: <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:on ...
分类:移动开发   时间:2016-09-04 17:18:54    阅读次数:188
android studio开发笔记四
checkBox:复选框1.两种状态:选中和未选中2.属性:android:id android:layout_width: android:layout_height: android:checked android:text RadioGroup和RadioButton1.RadioGroup: ...
分类:移动开发   时间:2016-09-03 13:32:31    阅读次数:250
hint特效
使用 1 <android.support.design.widget.TextInputLayout 2 android:id="@+id/passwordWrapper" 3 android:layout_width="match_parent" 4 android:layout_height= ...
分类:其他好文   时间:2016-09-01 13:07:03    阅读次数:178
Android EditText默认不获得焦点
页面上有EditText默认获得了光标,如果想让EditText默认不获得焦点,可以在控件前面加一个隐藏的线性布局,让它先获得焦点<LinearLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0px" android:layout_height="0px" />
分类:移动开发   时间:2016-08-29 20:59:42    阅读次数:218
Android之十七 进度条和Hanlder
构建进度条 在XML布局文件中使用ProgressBar标签布局视图         android:id="@+id/progressbar"         android:layout_width="match_parent"         android:layout_height="wrap_content"         style="@android:style/W...
分类:移动开发   时间:2016-08-08 21:10:43    阅读次数:227
搜索框代码
<LinearLayout android:background="#eb4f38" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> ...
分类:其他好文   时间:2016-08-03 18:29:58    阅读次数:143
DDS视图&Button控件
<Button android:id="@+id/btn1" android:layout_width="wrap_content" //包裹文字 android:layout_height="wrap_content" android:text="点我" /> ...
分类:其他好文   时间:2016-07-29 22:45:47    阅读次数:202
Android之EditText控件
<EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxLength="4" //限制我们的输入字数 android:singleLine="true" //限制我们输入 ...
分类:移动开发   时间:2016-07-29 21:17:22    阅读次数:184
604条   上一页 1 ... 11 12 13 14 15 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!