码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果
使用开源组件进行断点下载
<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="match_...
分类:其他好文   时间:2015-05-29 06:22:01    阅读次数:247
android:weight的使用
android:weight属性能够根据手机高宽按设定比例显示控件如:宽度上按比例显示<LinearLayoutandroid:layout_marginTop="5dp"androidrientation="horizontal"android:layout_width="fill_parent"----------------让其满宽android:layout_height="wrap_content"><Buttona..
分类:移动开发   时间:2015-05-28 18:26:04    阅读次数:325
Android自定义控件
android自定义按钮1》定义按钮布局文件<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"androidrientation="horizontal"android:layout_gravity="center"android:layout_width="wrap_content"android:l..
分类:移动开发   时间:2015-05-28 18:23:46    阅读次数:199
Android 自定义日历控件
之前为了寻找项目需求:从底部弹出一个popupwindow,里面有一个能上下滑动的垂直的日历控件: 效果图如下: 代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" andr...
分类:移动开发   时间:2015-05-28 09:45:10    阅读次数:311
图片的颜色变化
<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="match_...
分类:其他好文   时间:2015-05-28 02:04:50    阅读次数:206
通过服务监控手机呼叫状态并进行录音
两个服务互相守护 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layo...
分类:移动开发   时间:2015-05-27 23:08:44    阅读次数:516
android:layout_weight属性的工作原理
android:layout_weight属性告知LinearLayout如何进行子组件的布置安排。我们已经为两个组件设置了同样的值,但这并不意味它们在屏幕上占据着同样的宽度。在决定子组件视图的宽度时,LinearLayout使用的是layout_width与layout_weight参数的混合值....
分类:移动开发   时间:2015-05-27 18:40:04    阅读次数:250
推送通知的两种编写方式
使用通知管理者 NotificationManager <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pare...
分类:其他好文   时间:2015-05-27 16:10:38    阅读次数:226
Android布局xml的include
在一个项目中我们可能会需要用到相同的布局设计,如果都写在一个xml文件中,代码显得很冗余,并且可读性也很差,所以我们可以把相同布局的代码单独写成一个模块,然后用到的时候可以通过 标签来重用layout代码。 btn.xml:        android:layout_width="fill_parent"       android:lay...
分类:移动开发   时间:2015-05-27 15:45:54    阅读次数:212
Android控件所共有属性ID、宽、高、背景、内容位置、状态、内容跟边界的间隙、边界跟其他控件边界的间隙
Android控件(包括布局)的所共有的属性:android:id="@+id/denglu_et_name" 设置控件的id,denglu_et_name可以替换成你需要的id号名称android:layout_width="wrap_content"设置控件的宽 android:layout_height="wrap_content"设置控件的高 设置控件宽高的值:适应内容的wrap_con..
分类:移动开发   时间:2015-05-27 01:07:01    阅读次数:234
981条   上一页 1 ... 55 56 57 58 59 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!