码迷,mamicode.com
首页 >  
搜索关键字:match_parent    ( 614个结果
实现页面切换(动画效果实现,不用ViewPager)
源码地址 http://write.blog.csdn.net/postedit/46439929 先看主页面布局activity_main <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and...
分类:其他好文   时间:2015-06-10 12:19:15    阅读次数:107
Android进度条progressbar
xml文件代码部分<ProgressBar android:id="@+id/firstprobar" android:layout_width="match_parent" android:layout_height="wrap_content" android:max="200" android:progress="100" style="?android:attr/progressBarStyleHorizontal" /> <Button android:id="@+id..
分类:移动开发   时间:2015-06-10 01:20:51    阅读次数:127
Relativelayout登录界面以及获取验证码点击之后到倒计时按钮
xml文件<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:paddingLeft="@dimen/activity_horizontal_margin"an..
分类:其他好文   时间:2015-06-09 14:13:45    阅读次数:194
Android广告轮播图效果实现
效果如下:首先看下一下布局文件:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_...
分类:移动开发   时间:2015-06-09 13:52:23    阅读次数:172
android中九宫格布局与gridview
纵观现在的应用程序,九宫格是非常常见的一种布局方式。很多优秀的手机应用程序都采用了这一布局。下面就android中九宫格布局方式的实现和大家做一个简单的介绍。 首先在youxi.xml的布局     android:layout_width="match_parent"     android:layout_height="match_parent"     >       ...
分类:移动开发   时间:2015-06-07 09:37:52    阅读次数:187
android中的2种fragment部署方法
1.静态类部署方法: layout.xml     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >             android:id="@+id/fragment1"       ...
分类:移动开发   时间:2015-06-06 09:14:03    阅读次数:146
ScrollView阻尼效果
activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou...
分类:其他好文   时间:2015-06-05 00:45:01    阅读次数:169
Android fill_parent、wrap_content和match_parent的区别
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:移动开发   时间:2015-06-05 00:38:10    阅读次数:121
Android九宫格解锁的实现
演示效果如下主要代码如下布局文件如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layo...
分类:移动开发   时间:2015-06-04 17:10:28    阅读次数:194
Android PopupWindows
今天了解到PopupWindows这个布局,PopupWindow这个类用来实现一个弹出框,可以使用任意布局的View作为其内容,这个弹出框是悬浮在当前activity之上的。 下面是一个实例 xml文件         android:id="@+id/ll_popup"         android:layout_width="match_parent"      ...
分类:移动开发   时间:2015-06-03 17:46:47    阅读次数:137
614条   上一页 1 ... 31 32 33 34 35 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!