EditText它与TextVew十分相似,TextView是用来显示文本,并没有录入文本的功能,但EditText可以录入文本,接下来我们看看EditText常用的属性
效果1:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_...
分类:
移动开发 时间:
2015-01-10 19:48:15
阅读次数:
278
出处:http://zwkufo.blog.163.com/blog/static/2588251201011161220635/讲一下Android对用五大布局对象,它们分别是FrameLayout(框架布局:不知道是不是这么翻译的),LinearLayout (线性布局),AbsoluteLay...
分类:
移动开发 时间:
2015-01-10 17:54:18
阅读次数:
277
大家inflate应该用的比较多吧,尤其在使用listview 的时候。
先来看看item的布局文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="20...
分类:
其他好文 时间:
2015-01-10 01:28:38
阅读次数:
229
1、在控件的上方:private void showPopUp(View v) { LinearLayout layout = new LinearLayout(this); layout.setBackgroundColor(Color....
分类:
移动开发 时间:
2015-01-09 19:16:38
阅读次数:
218
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
ListView android:id="@+id/android:list"
android:la...
分类:
移动开发 时间:
2015-01-09 14:20:11
阅读次数:
226
相信看到这里已经有很多人遇到了同样的问题了就是使用LinearLayout布局而不能使用选择器的问题其实是可以的ok我下面就说一下怎么使用
其实就是在要使用选择器的LinearLayout布局中加入一个android:clickable="true"就可以实现选择器的功能了
<LinearLayout
android:id="@+id/ll"
an...
分类:
其他好文 时间:
2015-01-08 13:25:10
阅读次数:
177
转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/42407923 ,本文出自:【张鸿洋的博客】1、概述话说,随着Android SDK版本的升级,很多控件增加了新的属性方便我们的使用,比如LinearLayout中多了:divider、showDividers等,用于为其内部元素添加分隔;但是呢,这样的属性在较低版本的SDK中不能...
分类:
移动开发 时间:
2015-01-08 11:27:42
阅读次数:
305
直接看效果。此linearLayout只有两个Button ,当选中Button1,Button1有个下划线选中效果。当选中Buton2,Button2有个下划线选中效果。
如下图。
package com.daoge.ui;
import roboguice.activity.RoboActivity;
import roboguice.inject.Inject...
分类:
移动开发 时间:
2015-01-08 11:22:31
阅读次数:
277
实现的效果图如下:(在《第一行代码的例子上加以修改的》),当点击全选的时候,效果如下:
当只选中下面的几个:
此时按下,反选,如图:
首先是布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://s...
分类:
其他好文 时间:
2015-01-08 09:39:46
阅读次数:
317
技术人员核心竞争力还是技术啊。努力提高各种实现效果。加油哦! 直接看效果。此linearLayout只有两个Button ,当选中Button1,Button1有个下划线选中效果。当选中Buton2,Button2有个下划线选中效果。 如下图。 package com.daoge.ui; impor...
分类:
移动开发 时间:
2015-01-08 00:58:42
阅读次数:
282