首先介绍一下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
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
先看主页面布局
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
我们在一个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
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
效果如下:首先看下一下布局文件:<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
相当简单,直接贴
先看主界面布局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
演示效果如下:
另外在竖屏的时候是这样的效果:
布局文件如下:
可以看出有两个资源文件,一个是处理横屏一个是竖屏第一个:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="...
分类:
移动开发 时间:
2015-06-08 14:59:57
阅读次数:
189
纵观现在的应用程序,九宫格是非常常见的一种布局方式。很多优秀的手机应用程序都采用了这一布局。下面就android中九宫格布局方式的实现和大家做一个简单的介绍。
首先在youxi.xml的布局
android:layout_width="match_parent"
android:layout_height="match_parent"
>
...
分类:
移动开发 时间:
2015-06-07 09:37:52
阅读次数:
187
话不多说,直接上码: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