1.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:layout_hei...
分类:
移动开发 时间:
2015-06-12 17:33:50
阅读次数:
146
1.实现布局文件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:layo...
分类:
移动开发 时间:
2015-06-12 11:54:24
阅读次数:
221
RelativeLayout用到的一些重要的属性:第一类:属性值为true或falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparent 相对于父元素完全...
分类:
移动开发 时间:
2015-06-11 19:07:02
阅读次数:
155
看真正的猫眼效果图
接下来看自己写的粗略图(不足的地方是这里是2个切换选项,如果需要3个切换的话,需要自定义控件,后续在更新。。。)
源码地址 http://download.csdn.net/download/u013210620/8795799
先看主页面xml布局文件--so easy
activity_main.xml
<RelativeLayout xm...
分类:
移动开发 时间:
2015-06-11 17:11:55
阅读次数:
198
RelativeLayout用到的一些重要的属性: 第一类:属性值为true或false android:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中 android:layout_centerInparent 相对于父元...
分类:
移动开发 时间:
2015-06-11 16:07:52
阅读次数:
115
布局文件:只有一个ListView
<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-06-10 22:41:22
阅读次数:
661
源码地址 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
参考kivy文档796页,kivy大多数控件默认使用绝对坐标系,即window坐标系,原点位于屏幕window左下角,所有控件的坐标都是相对屏幕左下角的绝对坐标。 RelativeLayout使用的是相对坐标系,即relative 坐标系,如果控件树中存在RelativeLayout,那么...
分类:
其他好文 时间:
2015-06-09 23:25:25
阅读次数:
151
用LayoutParams:可以设定控件的一些属性RelativeLayout insertLayout = (RelativeLayout)view1.findViewById(R.id.lay);//lay是一个RelativeLayout 布局的idImageView img = new Im...
分类:
移动开发 时间:
2015-06-09 21:23:56
阅读次数:
214
先看主页面布局
activity_imitate_weixin_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_...
分类:
微信 时间:
2015-06-09 20:06:52
阅读次数:
364