第一在使用XScrollView布局是,无法在该布局.xml文件,放置内容布局控件,假如放置了会报错<com.markmao.pulltorefresh.widget.XScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@..
分类:
其他好文 时间:
2015-11-23 19:18:32
阅读次数:
185
widget.xml <?xml?version="1.0"?encoding="utf-8"?>
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????android:layout_width="match_parent"
????android:layout_heig...
分类:
其他好文 时间:
2015-11-18 10:53:45
阅读次数:
141
布局:控制视图在界面上显示的位置 match_parent:匹配上一级; wrap_content:包裹内容,正好把内容完全显示出来的高度和宽度; 线性布局(LinearLayout) LinearLayout:线性布局(两个方向:horizontal--水平方向、vertical--垂直方向) 水...
分类:
移动开发 时间:
2015-11-16 19:42:17
阅读次数:
256
//layout布局<?xmlversion="1.0"encoding="utf-8"?><RelativeLayoutxmlns: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"android:pa..
分类:
移动开发 时间:
2015-11-16 17:42:42
阅读次数:
240
android 让一个控件按钮居于底部的几种方法:http://www.cnblogs.com/zdz8207/archive/2012/12/13/2816906.html android布局--Android fill_parent、wrap_content和match_parent的区别: http://www.cnblogs.com...
分类:
移动开发 时间:
2015-11-11 00:02:39
阅读次数:
179
手动创建layout布局文件,并创建元素,如:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:id="@+id/button..
分类:
其他好文 时间:
2015-10-09 00:52:24
阅读次数:
203
首先是主要布局 <android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
an...
分类:
移动开发 时间:
2015-09-22 23:48:02
阅读次数:
499
好吧……我承认很尴尬……但毕竟作为开端,还是将这个贴出来,以后一定写出厉害的!<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent...
分类:
移动开发 时间:
2015-09-22 06:42:18
阅读次数:
201
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
>
...
分类:
其他好文 时间:
2015-09-21 12:35:04
阅读次数:
513
1.相对布局RelativeLayout1.1 相对父容器布局android:layout_width="match_parent(充满父)/wrap_content(根据本身)" 控件的宽度android:layout_height=match_parent/wrap_content"" 控件.....
分类:
其他好文 时间:
2015-09-14 15:26:24
阅读次数:
161