1,xml布局<TabHostxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:id="@android:id/tabhost"android:layout_height="match_parent"><LinearLayoutandroid:la..
分类:
其他好文 时间:
2015-02-06 07:08:36
阅读次数:
158
首先在AndroidMainifest中添加上网权限
布局文件activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match...
分类:
移动开发 时间:
2015-02-05 16:25:57
阅读次数:
173
2.1xml布局<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"><GridViewandroid:id="@+id/gv"android:numColumns..
分类:
其他好文 时间:
2015-02-05 07:12:20
阅读次数:
127
activity_main.xml <LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????xmlns:tools="http://schemas.android.com/tools"
????android:layout_width="match_parent"
???...
分类:
其他好文 时间:
2015-02-04 00:53:14
阅读次数:
170
方法一:1,布局xml页面<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"><TextViewandroid:id="@+id/tv_content..
分类:
其他好文 时间:
2015-02-04 00:43:38
阅读次数:
127
1,xml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><GridViewandroid:id="@+i..
分类:
其他好文 时间:
2015-02-03 07:07:40
阅读次数:
152
1,主界面<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:paddingBottom="@dimen/activity_vertical_margin"..
分类:
其他好文 时间:
2015-02-01 20:34:03
阅读次数:
168
1,创建主界面<LinearLayoutxmlns: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:orientation="vertical"tools:context=".MainActi..
分类:
其他好文 时间:
2015-02-01 07:25:09
阅读次数:
174
<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"tools:context=".MainActivity"><TextViewandroid:id="@+id/tv..
分类:
其他好文 时间:
2015-02-01 07:23:08
阅读次数:
239
1. 空layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical...
分类:
移动开发 时间:
2015-01-31 12:32:00
阅读次数:
172