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
之前遇到这个奇怪现象,记录一下:使用Listview并设置Adapter时, 会回调多次getView,比如我有4个items,按理说getView应该是调用一次(打出4个log),结果回调有4次(4*4个log)。原因:Listview的layout_height 为自适应:wrap_conten...
分类:
移动开发 时间:
2015-04-13 12:17:07
阅读次数:
149
1.indeterminate mode | 没有具体进度的进度条
1.1 定制动画文件
[html] view
plaincopy
ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
an...
分类:
移动开发 时间:
2015-04-10 20:18:57
阅读次数:
185
二.客户端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
1.TextView
TextView可以说是Android中最简单的一个控件了。它主要用于在界面上显示一段文字信息。
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/he...
分类:
移动开发 时间:
2015-04-05 22:01:33
阅读次数:
213
今天学习了一些控件的使用方法,包括TextView,EditView,ImageView1.TextView,输出一个文本呗主要属性有android:id 标志android:layout_width 宽度android:layout_height 高度android:text ...
分类:
移动开发 时间:
2015-04-03 22:22:09
阅读次数:
169
有时候android传统的页面布局不足以满足我们的需求,常常需要自己定义view,通常继承View,然后重写构造方法以及onDraw等函数,再具体实现自己定义的复杂view。我们知道在给控件赋属性时,通常使用的是android系统自带的属性,比如 android:layout_height="wrap_content",除此之外,我们亦可以自己定义属性,这样在使用的时候我们就可以使用形如
my...
分类:
移动开发 时间:
2015-04-03 11:25:27
阅读次数:
177
分析xml根节点layout_width或者layout_height没有效果的原因...
分类:
其他好文 时间:
2015-04-01 23:51:37
阅读次数:
142