码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果)
布局8.4
浮动后父容器高度自适应当一个容器内元素都浮动后,它将高度将不会随着内部元素高度的增加而增加,所以造成内容元素的显示超出了容器。为了便于查看效果,把刚才实例中的#layout增加一个边框和内边距:#layout { width:400px; border:2px solid #ccc; padding...
分类:其他好文   时间:2015-08-04 22:33:34    阅读次数:157
Android错误之java.lang.RuntimeException: Binary XML file line #160: You must supply a layout_width attr
在调整布局后运行项目出现如下错误:我们根据提示找到布局文件的160行:发现忘记定义宽度属性,添加:则编译正常通过。喜欢的朋友请关注我哦!谢谢支持!...
分类:移动开发   时间:2015-08-04 13:33:40    阅读次数:157
StackView堆视图实现叠放效果
效果图:布局代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" andro...
分类:其他好文   时间:2015-08-04 11:17:14    阅读次数:143
ListView优化
activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay...
分类:其他好文   时间:2015-08-04 00:42:39    阅读次数:129
ImageSwitcher实现引导页效果
效果图:布局代码: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_heigh...
分类:其他好文   时间:2015-08-03 17:00:47    阅读次数:403
Android布局中添加条横线
一个View添加点颜色就搞定了         android:layout_width="fill_parent"         android:layout_marginTop="10dp"         android:layout_height="1dp"         android:layout_marginLeft="5dp"         android...
分类:移动开发   时间:2015-08-02 23:29:23    阅读次数:215
自学Android笔记——Activity中的数据传递案例(用户注册)
1.创建程序activity_main: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientatio...
分类:移动开发   时间:2015-08-02 18:24:36    阅读次数:184
自学Android笔记——Activity中的回传数据案例(装备选择)
1.创建程序: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="...
分类:移动开发   时间:2015-08-02 18:22:28    阅读次数:174
《安卓开发必知的50个技巧》读书笔记
记录一下看《安卓开发必知的50个技巧》觉得有用的一下技巧。include标签使用注意事项如果想在标签中覆盖被包含布局所指定的任何android:layout_*属性,必须在标签中同时指定android:layout_width和android:layout_height属性,我们可以通过指定被包含布局的layout_width和layout_height属性都为0dp,这样做的目的是由被包含布局的使...
分类:移动开发   时间:2015-08-02 13:45:13    阅读次数:142
xml布局内容总结(三)--Android
关于xml中经常用到边框及边框效果,在此进行一下总结。 3.border(边框及边框效果) (1)直角边框线         android:layout_width="200dp"         android:layout_height="30dp"         android:layout_margin="10dp"         android:orient...
分类:移动开发   时间:2015-07-30 19:34:39    阅读次数:286
共981条   上一页 1 ... 43 44 45 46 47 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!