源码地址 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
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
效果如下:首先看下一下布局文件:<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中九宫格布局方式的实现和大家做一个简单的介绍。
首先在youxi.xml的布局
android:layout_width="match_parent"
android:layout_height="match_parent"
>
...
分类:
移动开发 时间:
2015-06-07 09:37:52
阅读次数:
187
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
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
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:
移动开发 时间:
2015-06-05 00:38:10
阅读次数:
121
演示效果如下主要代码如下布局文件如下:<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
今天了解到PopupWindows这个布局,PopupWindow这个类用来实现一个弹出框,可以使用任意布局的View作为其内容,这个弹出框是悬浮在当前activity之上的。
下面是一个实例
xml文件
android:id="@+id/ll_popup"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2015-06-03 17:46:47
阅读次数:
137