效果图
类似格式,
listView_item.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
...
分类:
移动开发 时间:
2016-05-07 08:43:42
阅读次数:
177
这一篇是json解析的小案例,具体步骤如下:
第一步:写一个布局文件
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Ma...
分类:
Web程序 时间:
2016-05-07 08:43:11
阅读次数:
177
使用FragmentTabhost+Fragment实现一个底部导航栏
主布局: //放置Fragment
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_weight="1"...
分类:
其他好文 时间:
2016-05-07 07:58:07
阅读次数:
139
<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="match_pa...
分类:
其他好文 时间:
2016-05-07 01:10:11
阅读次数:
191
//导入所有的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
ScrollView标签要放到最外层,事例:
<ScrollViewxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
androi..
分类:
移动开发 时间:
2016-05-03 20:35:05
阅读次数:
224
<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
ConversationFragment的布局:
首先我们找到我们要写的Fragment布局文件。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_p...
分类:
移动开发 时间:
2016-04-29 19:04:01
阅读次数:
257
样式效果
1、创建底部的布局 layout_footer.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
...
分类:
移动开发 时间:
2016-04-29 17:23:11
阅读次数:
231
1、android:layout_height属性: 必须将ListView的布局高度属性设置为非“wrap_content”(可以是“match_parent / fill_parent / 400dp等绝对数值”),如果ListView的布局高度为“wrap_content”,那么getView ...
分类:
其他好文 时间:
2016-04-28 21:21:12
阅读次数:
208