
Android
文章平均质量分 80
闫梅
这个作者很懒,什么都没留下…
展开
-
Android fill_parent、wrap_content和match_parent的区别
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。 1)fill_parent 设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或控件为fill_parent将强制性让它布满整个屏幕。 2) wrap_content转载 2014-05-11 09:32:32 · 945 阅读 · 0 评论 -
Android(1)
android(Google公司开发的操作系统) 编辑 Android是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,由Google公司和开放手机联盟领导及开发。原创 2014-05-11 09:18:57 · 1088 阅读 · 0 评论 -
Android(3)
1.电话拨号器: 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" a原创 2014-05-12 19:28:04 · 784 阅读 · 0 评论 -
Android(2)
1.Android资源文件 构建应用程序需要丰富多彩的色彩,在Android平台中可以将相关颜色信息配置在color.xml文件中。 例: xml version="1.0" encoding="utf-8"?> resources> color name="green">#00EE00color> color name="black">#000000color>原创 2014-05-12 18:53:41 · 1510 阅读 · 0 评论 -
Android软件开发之盘点界面五大布局
相对布局: Android:layout_below在哪个下方 Android:layout_toRightOf在哪个控件右边 Android:layout_centerInParent=”true”在父窗体的中央 Android:layout_centerHorizontal=”true”水平方向的中间 Android:layout_centerVertical=”true”垂直方向的转载 2014-05-12 19:43:38 · 642 阅读 · 0 评论