android中的左右滑屏实现
2012-05-25 09:33:38 来源:WEB开发网核心提示::layout_height="fill_parent" android:orientation="vertical">5<TextView android:textAppearance="?android:attr/textAppearanceLarge&
:layout_height="fill_parent" android:orientation="vertical">
5
<TextView android:textAppearance="?android:attr/textAppearanceLarge"android:layout_height="wrap_content" android:id="@+id/textView1"android:layout_width="fill_parent" android:text="第一页"></TextView>
6
<EditText android:layout_width="match_parent" android:layout_height="wrap_content"android:id="@+id/editText1">
7
<requestFocus></requestFocus>
8
</EditText>
9
</LinearLayout> layout2.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
android:layout_width="fill_parent"
4
android:layout_height="fill_parent" android:orientation="vertical">
5
<TextView android:textAppearance="?android:attr/textAppearanceLarge"android:layout_height="wrap_content" android:id="@+id/textView1"android:layout_width="fill_parent" android:text="第二页"></TextView>
5
<TextView android:textAppearance="?android:attr/textAppearanceLarge"android:layout_height="wrap_content" android:id="@+id/textView1"android:layout_width="fill_parent" android:text="第一页"></TextView>
6
<EditText android:layout_width="match_parent" android:layout_height="wrap_content"android:id="@+id/editText1">
7
<requestFocus></requestFocus>
8
</EditText>
9
</LinearLayout> layout2.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
android:layout_width="fill_parent"
4
android:layout_height="fill_parent" android:orientation="vertical">
5
<TextView android:textAppearance="?android:attr/textAppearanceLarge"android:layout_height="wrap_content" android:id="@+id/textView1"android:layout_width="fill_parent" android:text="第二页"></TextView>