使用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
公司网络烂,自己又不想findview写很多遍,所以自己写了个小工具,自动findview,生成代码到剪贴版.
test:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
a...
分类:
移动开发 时间:
2016-05-07 06:59:28
阅读次数:
275
<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
1.常见控件的使用: TextView Button EditText ImageView 1.TextView <TextView android:id="@+id/text_view" android:layout_width="match_parent" android:layout_heig ...
分类:
移动开发 时间:
2016-05-06 20:31:39
阅读次数:
196
在网上查了好多资料,大致都雷同,大家都是互相抄袭的,看着很费劲,不好理解,自己总结一下,留着需要看的话来查找。代码中的例子如下
ImageView
android:id="@+id/iv_bit_1"
android:layout_width="@dimen/passcode_width"
android:layout_...
分类:
移动开发 时间:
2016-05-06 15:45:53
阅读次数:
161
//导入所有的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
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and ...
分类:
其他好文 时间:
2016-05-02 14:21:52
阅读次数:
166
<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