1.创建程序activity_main:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientatio...
分类:
移动开发 时间:
2015-08-02 18:24:36
阅读次数:
184
效果图:
未选中状态:
选中状态:
使用步骤:
1.创建自己的selector
2.在style中加入自己的复选框的样式:
@drawable/mycheckboxselector
3.在自己的checkbox上设置style属性:
<RelativeLayout xmlns:android="htt...
分类:
移动开发 时间:
2015-08-01 13:03:51
阅读次数:
274
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:lay...
分类:
其他好文 时间:
2015-07-29 01:06:54
阅读次数:
203
转载博客:http://blog.csdn.net/dengshengjin2234/article/category/13227731. Android中常用的几种布局,LinearLayout、RelativeLayout、FrameLayout和GridLayout。AbsoluteLayou...
分类:
移动开发 时间:
2015-07-29 00:32:44
阅读次数:
168
一:ViewPager和导航点的实现:
主布局为guide.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
...
分类:
移动开发 时间:
2015-07-28 21:05:57
阅读次数:
135
典型的再现环境模型: Sony EricssonAndroid version: 2.3.4StackTrace:E/AndroidRuntime( 3579): FATAL EXCEPTION: mainE/AndroidRuntime( 3579): java.lang.NullPointerE...
分类:
编程语言 时间:
2015-07-28 18:21:10
阅读次数:
196
一、RelativeLayout(相对布局)概述 RelativeLayout是相对布局控件,它包含的子控件将以控件之间的相对位置或者子类控件相对父类容器的位置的方式排列二、RelativeLayout(相对布局)的属性 1、子类控件在RelativeLayout中常用到的属性(相对于父容器的一.....
分类:
移动开发 时间:
2015-07-27 22:42:27
阅读次数:
223
一个开源项目欢迎,分享给大家
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:coverflow="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas...
分类:
其他好文 时间:
2015-07-27 18:54:35
阅读次数:
242
1.Relativelayout布局的子布局,在布局中在下面位置的子布局会覆盖上面的子布局2.对于补间动画(tween animation)而言,当动画移除屏幕,其布局依然在,布局原位置的点击事件依然可以点击,需要遍历设置子布局的enabled为false 1 public class Animat...
分类:
其他好文 时间:
2015-07-26 22:31:26
阅读次数:
224