码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果)
android 实现分享功能
1、新建share.xml布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_p...
分类:移动开发   时间:2015-07-29 16:00:05    阅读次数:196
写字板
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-07-29 01:06:54    阅读次数:203
Android ViewPager引导页(三)
一:ViewPager和导航点的实现: 主布局为guide.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" ...
分类:移动开发   时间:2015-07-28 21:05:57    阅读次数:135
android setBackgroundDrawable 的padding问题
setBackgroundDrawable 是在安卓旧API里面的,不过需要做低版本兼容用到设置背景,如果控件是TextView,使用setBackgroundDrawable的话,在华为机型里面会发现一个问题,就是Padding <TextView android:layout_width="wrap_content" android:layout...
分类:移动开发   时间:2015-07-28 11:00:53    阅读次数:147
组件的使用(一)Spinner的使用
Spinner即下拉菜单。在android中实现Spinner组件需要以下三个步骤:1.在XML文件中定义标签Spinner<Spinner android:id="@+id/spinner" android:layout_width="match_parent" android:layout_height="wrap_content" />2.在Str...
分类:其他好文   时间:2015-07-28 00:53:53    阅读次数:110
xml布局内容总结(二)--Android
关于xml中margin和padding的内容,在刚接触xml的时候会有些混淆和模糊,在此进行总结,希望能帮助到有需要的人。 2.xml中margin和padding     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_margin...
分类:移动开发   时间:2015-07-27 19:12:32    阅读次数:116
我的Android进阶之旅------>Android二级ListView列表的实现
实现如下图所示的二级列表效果 首先是在布局文件中,布局两个ListView,代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="...
分类:移动开发   时间:2015-07-26 12:48:06    阅读次数:177
Android实战简易教程-第二十六枪(基于ViewPager实现微信页面切换效果)
1.头部布局文件top.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="40dp" android:background="@drawable/tit...
分类:微信   时间:2015-07-24 14:23:24    阅读次数:337
Android实战简易教程-第二十六枪(基于ViewPager实现微信页面切换效果)
1.头部布局文件top.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="40dp" android:background="@drawable/tit...
分类:微信   时间:2015-07-24 14:22:10    阅读次数:236
【解决方法】Unexpected namespace prefix “xmlns” found for tag Layout
问题描述出错代码如下:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"...
分类:其他好文   时间:2015-07-24 10:54:11    阅读次数:108
共981条   上一页 1 ... 44 45 46 47 48 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!