码迷,mamicode.com
首页 >  
搜索关键字:match_parent    ( 614个结果
Android控件之CheckBox(复选框控件)
一、有两种状态: 选中状态(true)、未选中状态(false)二、属性 android:id = "@+id/checkbox" android:layout_width="match_parent" android:layout_height="wrap_content"...
分类:移动开发   时间:2015-07-20 21:20:25    阅读次数:150
android xmlns:tools用法
Android开发中在布局文件里面都会有如下面的内容:            xmlns:tools="http://schemas.android.com/tools"            android:orientation="vertical"             android:layout_width="match_parent"             andro...
分类:移动开发   时间:2015-07-20 01:21:00    阅读次数:806
Android onClick 按钮单击事件 四种常用写法
这里使用四种onClick单击事件,来实现电话拔号器的DEMO。 XML文件 <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="phone" android:ems="...
分类:移动开发   时间:2015-07-19 13:35:26    阅读次数:125
安卓计算器
写个简单的安卓计算器 activity_main.xml <LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????android:layout_width="match_parent" ????android:layout_height="match_pa...
分类:移动开发   时间:2015-07-18 07:22:45    阅读次数:193
cc_美团 商品详情页面分享页面实现
<RelativeLayoutandroid:id="@+id/rl_share"android:layout_width="match_parent"android:layout_height="match_parent"android:visibility="gone"><RelativeLayoutandroid:id="@+id/other_layout_top"android:layout_width="match_parent"android:layout_height="150..
分类:其他好文   时间:2015-07-16 14:27:15    阅读次数:134
Android 下拉刷新控件的使用
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:layou...
分类:移动开发   时间:2015-07-16 11:57:24    阅读次数:221
GridView与ArrayAdapter的结合
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:layout_he...
分类:其他好文   时间:2015-07-15 17:07:48    阅读次数:124
android手势
一丶首先创建一个手势库二丶手势实例布局文件:在布局文件中有:<android.gesture.GestureOverlayViewandroid:id="@+id/gv"android:layout_width="match_parent"android:layout_height="match_parent"android:background="#000000"android:gestureStrokeWidth="10"android:g..
分类:移动开发   时间:2015-07-13 18:54:47    阅读次数:136
Android开发(二十九)——layout_weight的含义
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。如下所示: ...
分类:移动开发   时间:2015-07-12 17:15:45    阅读次数:126
Android开发(二十七)——android:layout_weight的真实含义
android:layout_weight的真实含义是:一旦View设置了该属性(假设有效的情况下),那么该 View的宽度等于原有宽度(android:layout_width)加上剩余空间的占比!含义:原有宽度+剩余空间占比设屏幕宽度为L,在两个view的宽度都为match_parent的情况下...
分类:移动开发   时间:2015-07-12 17:05:09    阅读次数:127
614条   上一页 1 ... 27 28 29 30 31 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!