码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果)
Android中时间日期的使用TimePicker和DatePicker
首先介绍一下TimePicker的使用xml文件代码部分<TimePicker android:id="@+id/firsttime1" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <Button android:id="@+id/button" android:layout_width="fill_parent" android:layout_heigh..
分类:移动开发   时间:2015-06-10 01:22:05    阅读次数:176
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
类似微信的ChattingUi
先看主页面布局 activity_imitate_weixin_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_...
分类:微信   时间:2015-06-09 20:06:52    阅读次数:364
Android中ViewPager的使用
我们在一个apk中第一次开始的时候,会有一个guide界面,一般使用ViewPager来完成。布局文件如下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_p...
分类:移动开发   时间:2015-06-09 17:16:18    阅读次数:134
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
Horizontal---ProgressBar
相当简单,直接贴 先看主界面布局activity_custom_progress_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" an...
分类:其他好文   时间:2015-06-08 19:38:29    阅读次数:145
Android中Fragment的分屏显示处理横竖屏显示
演示效果如下: 另外在竖屏的时候是这样的效果: 布局文件如下: 可以看出有两个资源文件,一个是处理横屏一个是竖屏第一个: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="...
分类:移动开发   时间:2015-06-08 14:59:57    阅读次数:189
android中九宫格布局与gridview
纵观现在的应用程序,九宫格是非常常见的一种布局方式。很多优秀的手机应用程序都采用了这一布局。下面就android中九宫格布局方式的实现和大家做一个简单的介绍。 首先在youxi.xml的布局     android:layout_width="match_parent"     android:layout_height="match_parent"     >       ...
分类:移动开发   时间:2015-06-07 09:37:52    阅读次数:187
实现Button控制ImageView显示下一张照片
话不多说,直接上码:xml文件,简单的线性布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:orientation="vertical..
分类:其他好文   时间:2015-06-06 23:43:06    阅读次数:142
共981条   上一页 1 ... 52 53 54 55 56 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!