码迷,mamicode.com
首页 >  
搜索关键字:relativelayout    ( 982个结果
Android-只有2个圆角的ImageView
本例子是针对将图片两个直角转换为圆角的例子: 1.自定义3个属性 宽高,圆角值: 2.在引用的布局中使用 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:bc="h...
分类:移动开发   时间:2015-06-18 19:45:26    阅读次数:192
Android开发教程--关于LayoutParams removeRule出错问题的解决
经过研究发现,removeRule是API 17才加的方法,为了在API 17前也能使用,可以使用它的等价方法,使用addRule(verb, 0)。 例如: RelativeLayout.LayoutParams lp = (LayoutParams) inputTextLayout.getLayoutParams(); lp.addRule(RelativeLayout....
分类:移动开发   时间:2015-06-18 19:44:58    阅读次数:320
RelativeLayout用到的一些重要的属性:
下面是常用的一些属性RelativeLayout用到的一些重要的属性:第一类:属性值为true或falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparen...
分类:其他好文   时间:2015-06-18 16:48:58    阅读次数:105
图片轮播4种方法思路
第一种方法 图片自动依次轮播,第一轮轮播完,重新回到第一张轮播,但是界面不会后退去定位到第一张图片 main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl" android:layout_width="fill_parent"...
分类:其他好文   时间:2015-06-18 13:42:14    阅读次数:166
ViewPager手势切换页面+图片左右轮播效果(精简版本)
效果图是:手势可以左右滑动界面,并且自动从第一张开始轮播到最后一张图片,紧接着开始从最后一张图片开始向反方向第一张轮播 源码地址就不传了,代码已经贴出,你可以随便放5张图片即可 activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too...
分类:其他好文   时间:2015-06-17 20:05:34    阅读次数:143
Android 之布局
1、RelativeLayout相对布局a)、第一类:属性值为true或false android:layout_centerHrizontal 水平居中 android:layout_centerVertical 垂直居中 android:layout_centerInparent 相对于父...
分类:移动开发   时间:2015-06-17 14:43:00    阅读次数:210
基础学习总结(二)
用户界面View 五大布局: 1、LinearLayout 线性布局 2、RelativeLayout 相对布局 5、AbsoluteLayout 绝对布局 4、TableLayout 表格布局 3、FrameLayout 祯布局1.LinearLayout...
分类:其他好文   时间:2015-06-15 21:57:22    阅读次数:161
Android 中 ViewFlipper 的简单实例
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_height="...
分类:移动开发   时间:2015-06-15 09:19:29    阅读次数:189
Android 之 布局属性
Android布局中有很多属性,在此总结一些常用的布局属性。先上两张图:1.2.其实很多布局属性都是由上面两张图中的单词组合而成的:(1)RelativeLayout的布局属性大致有三类:第一类:属性值为true或false android:layout_centerHrizontal 水平居...
分类:移动开发   时间:2015-06-14 22:41:13    阅读次数:183
024_01自定义控件
1,首先在xml中做好样式:setting_item.xml 1 2 5 12 20 29 35 36 2,新建一个继承自RelativeLayout的类SettingItem,该类就是自定义的控件。 在构造函...
分类:其他好文   时间:2015-06-13 16:59:31    阅读次数:92
982条   上一页 1 ... 56 57 58 59 60 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!