设备策略服务?? DevicePolicyManager 要配置特殊的广播接受者 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
androi...
分类:
其他好文 时间:
2015-06-01 22:55:58
阅读次数:
171
动态更改relative 中控件的width跟height属性
分类:
其他好文 时间:
2015-06-01 16:38:28
阅读次数:
104
1,事实上安卓的UI线程是不安全的,所以如果想要更新应用程序的UI元素,必须在主线程中更新
先看一个例子
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_...
分类:
移动开发 时间:
2015-05-31 09:21:39
阅读次数:
268
EditText左侧固定图片,常见于登陆界面的ui设计
1.可使用EditText的drawableLeft,drawablePadding标签,但是此种方法的图片无法调整大小。
2.用RelativeLayout嵌入Imageview和Edittext方法
通过改变imageview的大小,以及调整二者的位置,使显示效果更佳协调。...
分类:
其他好文 时间:
2015-05-30 21:14:43
阅读次数:
133
为了适应各式各样的界面风格,Android系统提供了5种布局,这5种布局分别是:LinearLayout(线性布局)TableLayout(表格布局)RelativeLayout(相对布局)AbsoluteLayout(绝对布局)FrameLayout(框架布局)利用这五种布局,可以在屏幕上将控件随心所欲的摆放,而且控件的大小和位置会随..
分类:
移动开发 时间:
2015-05-30 18:27:42
阅读次数:
140
paint的使用 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout...
分类:
其他好文 时间:
2015-05-30 13:38:23
阅读次数:
111
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:heima="http://schemas.android.com/apk/res/com.itheima.togglebtn28"
xmlns:tools="http://schemas.android....
分类:
其他好文 时间:
2015-05-30 12:19:56
阅读次数:
550
我是一个新手,刚开始接触android,我就今天学到的Relativelayout来和大家分享一下。相对布局基本概念:一个控件的位置它决定于它和其他控件的关系,好处:比较灵活;缺点:掌握比较复杂。鉴于以上几点,所以要多进行练习,才能熟练掌握RelativelayoutRelativelayout常用属性;..
分类:
其他好文 时间:
2015-05-30 01:53:42
阅读次数:
139
直接上代码 activity_popup_window_tooltip_text.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...
尼玛,最近自定义view玩hight了根本停不下来,今天想封装一个类似优酷首页title的banner栏,我会在这个基础上加一个title的展示,优酷的banner如下图:
首先是布局文件,自然是ViewPager主打,配上底层的dot indicator和title栏:
<RelativeLayout xmlns:android="http://sche...
分类:
其他好文 时间:
2015-05-29 14:08:44
阅读次数:
178