<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_par...
分类:
移动开发 时间:
2015-06-12 19:32:52
阅读次数:
147
第一步,先写布局文件
<com.main.util.SlideShowView
android:id="@+id/slideshowView"
android:layout_width="fill_parent"
android:layout_height="300dp"
...
分类:
移动开发 时间:
2015-06-11 14:41:43
阅读次数:
153
第一步,布局文件
<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=...
分类:
移动开发 时间:
2015-06-11 14:40:52
阅读次数:
163
第一步,布局文件
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@android:id/tabhost"...
分类:
移动开发 时间:
2015-06-11 14:39:00
阅读次数:
118
首先介绍一下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
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中九宫格布局方式的实现和大家做一个简单的介绍。
首先在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
1. 按比例显示LinearLayout内各个子控件,需设置android:layout_width="0dp",如果为竖直方向的设置android:layout_height="0dp"。在这种情况下某子个控件占用LinearLayout的比例为:本控件weight值 / LinearLayout...
分类:
移动开发 时间:
2015-06-06 18:01:51
阅读次数:
192