<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属性能够根据手机高宽按设定比例显示控件如:宽度上按比例显示<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自定义按钮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
之前为了寻找项目需求:从底部弹出一个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属性告知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
在一个项目中我们可能会需要用到相同的布局设计,如果都写在一个xml文件中,代码显得很冗余,并且可读性也很差,所以我们可以把相同布局的代码单独写成一个模块,然后用到的时候可以通过 标签来重用layout代码。
btn.xml:
android:layout_width="fill_parent"
android:lay...
分类:
移动开发 时间:
2015-05-27 15:45:54
阅读次数:
212
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