没什么技术难点,照着api做的。
这是效果图
我们先对Toast自定义一个布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="w...
分类:
移动开发 时间:
2015-04-14 19:47:18
阅读次数:
165
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:id="@+id/short...
分类:
移动开发 时间:
2015-04-14 11:22:10
阅读次数:
152
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:id="@+id/top_tv"
android:layout_wi...
分类:
移动开发 时间:
2015-04-14 11:13:02
阅读次数:
223
1、listview增加footer时,为footer下面设置横线,使用android:footerDividersEnabled="true"不好使。 解决办法: 将该listview的android:layout_height="wrap_content"改成match_parent就好了。 2、给TextView设...
分类:
移动开发 时间:
2015-04-13 13:08:46
阅读次数:
156
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent 设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。如:设置一个顶部布局或控件为fill_parent后将强制性让它布满整....
分类:
移动开发 时间:
2015-04-12 01:14:42
阅读次数:
128
android屏幕适配详解官方地址:http://developer.android.com/guide/practices/screens_support.html一、关于布局适配建议1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽...
分类:
移动开发 时间:
2015-04-11 23:51:23
阅读次数:
179
二.客户端Activity-登陆界面的实现<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/ac..
分类:
移动开发 时间:
2015-04-10 07:13:04
阅读次数:
158
手机卫士-08
课1
上一节课:软件管家改善 activityappmanager.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_pa...
分类:
移动开发 时间:
2015-04-07 17:49:31
阅读次数:
247
RoundedprogresswithinRoundedprogressbar<ProgressBarandroid:id="@+id/progress"style="@android:style/Widget.ProgressBar.Horizontal"android:layout_width="match_parent"android:layout_height="match_parent"android:layout_alignParentLeft="true"android:layout_ce..
分类:
其他好文 时间:
2015-04-01 13:34:16
阅读次数:
110
---------------------布局页面----------------------------------------------
android:id="@+id/luck_detail_adv_ContainerRl"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2015-03-31 16:10:45
阅读次数:
190