界面
xml version="1.0" encoding="utf-8"?>
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
andro...
分类:
移动开发 时间:
2016-05-23 15:28:51
阅读次数:
231
xml version="1.0" encoding="utf-8"?>LinearLayoutandroid:gravity="center_horizontal"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"xmlns:android="htt...
分类:
微信 时间:
2016-05-12 20:20:15
阅读次数:
398
xml version="1.0" encoding="utf-8"?>LinearLayoutandroid:gravity="center_horizontal"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"xmlns:android="htt...
分类:
微信 时间:
2016-05-12 20:17:36
阅读次数:
455
一、LinearLayout(线性布局)
提供了控件水平垂直排列的模型,同时可以通过设置子控件的weight布局参数控制各个控件在布局中的相对大
小。
水平(vertical)垂直(horizontal)
fill-parent:占满整个屏幕
wrap-content:刚好适合控件内容的大小
对齐方式gravity取值:
top:不改变大小,...
分类:
移动开发 时间:
2016-05-12 19:51:13
阅读次数:
144
上一篇博文我们探讨了百度地图的SDK的环境集成与搭建,这篇文章将介绍如何在百度地图上进行标注。
1、在activity_main.xml中新建bmapView<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
andro...
分类:
移动开发 时间:
2016-05-11 07:18:51
阅读次数:
214
Toast的用法 新建工程Toast 资源文件添加Button按钮btnShowToast <Button android:id="@+id/btnShowToast" android:layout_width="fill_parent" android:layout_height="wrap_co ...
分类:
其他好文 时间:
2016-05-08 10:21:17
阅读次数:
184
alert_dialog.Xml代码
xml version="1.0" encoding="utf-8"?>
RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
a...
分类:
移动开发 时间:
2016-05-07 08:19:23
阅读次数:
247
//导入所有的jar包 <com.baidu.mapapi.map.MapView android:id="@+id/bmapView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:cl ...
分类:
其他好文 时间:
2016-05-03 22:00:30
阅读次数:
269
<com.handmark.pulltorefresh.library.PullToRefreshGridView android:id="@+id/pull_refresh_grid" android:layout_width="fill_parent" android:layout_height ...
分类:
其他好文 时间:
2016-04-30 12:59:11
阅读次数:
220
之前一直没有区别好 fill_parent 和 match_parent, 其实,在 api 8 以后,两者的作用几乎一样,都是填充控件 在这里延伸到android 的版本变化导致方法的变化问题 我对于android l、android m 、 android n之间的演变,感觉还不算很大。 我接下 ...
分类:
其他好文 时间:
2016-04-29 00:01:52
阅读次数:
385