1、LinearLayout(线性布局):可以分为水平线性:android:orientation= " horizontal "和垂直线性:android:orientation= "vertical"2、RealtiveLayout(相对布局):(1)在相对布局中属性值为true或false的有...
分类:
移动开发 时间:
2015-04-27 16:47:39
阅读次数:
241
Declare some constants:private const int WM_SCROLL = 276; // Horizontal scrollprivate const int WM_VSCROLL = 277; // Vertical scrollprivate const int ...
以水平方向进度条为例,介绍如何自定义进度条。 1.在drawable文件夹下建立自己的进度条模版,右键drawable→new→Android XML file→layer list→自己起个名字(如progressBar_horizontal_1)代码如下 ...
分类:
移动开发 时间:
2015-04-15 19:10:20
阅读次数:
156
一、LinearLayout线性布局
1、常见属性
android:orientation="horizontal":制定线性布局的排列方式
水平 horizontal
垂直 vertical
gravity 控制当前控件内容显示区域
layout_gravity 当前控件在父元素的位置
Layout_weight 额外空间分配(权重)
android:v...
分类:
移动开发 时间:
2015-04-15 09:43:52
阅读次数:
202
ProgressBar类型:横向和旋转
旋转型的ProgressBar大小有三种,大、中、小。如果不对其指定大小,将默认显示中等大小。对其指定大小时,需要用到style属性.
例如:
style="?android:attr/progressBarStyleHorizontal"或者
style="@android:style/Widget.ProgressBar.Horizontal"
...
分类:
移动开发 时间:
2015-04-13 19:03:14
阅读次数:
154
android:orientation="horizontal" > android:layout_gravity="center_horizontal" layout表示相对父控件...
分类:
移动开发 时间:
2015-04-13 16:14:44
阅读次数:
160
搜索结果都不靠谱,基本上都说是android:textScaleX可以设置文字间距,也不知道你们到底有没有真正做过开发。Android开发文档里描述的很清楚:android:textScaleXSets the horizontal scaling factor for the text.这个东西是...
分类:
移动开发 时间:
2015-04-11 16:07:40
阅读次数:
149
public class ProgressDialogActivity extends Activity { private Button btn_large_pd, btn_horizontal_pd; // 声明进度条对话框 ProgressDialog mProgressDialog; // ...
分类:
移动开发 时间:
2015-04-10 13:36:08
阅读次数:
142
/*** Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.** The difference between `setRotationalSkew()` an...
android:layout_marginTop="20dp" android:layout_centerHorizontal="true" //个人中心的妙用和 marginTop一起的妙用 android:layout_centerHorizontal:用于相对布局(RelativeLayo.....
分类:
移动开发 时间:
2015-04-08 21:28:49
阅读次数:
153