123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <!-- 程序的主界面 -->
- <RelativeLayout xmlns:tools="http://schemas.android.com/tools"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- tools:context=".MainActivity" >
- <RelativeLayout
- android:id="@+id/title"
- android:layout_width="fill_parent"
- android:layout_height="44dp" >
- <TextView
- android:id="@+id/text_pop"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="false"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="60dp"
- android:text="@string/title"
- android:textAppearance="?android:attr/textAppearanceLarge" />
- <ToggleButton
- android:id="@+id/toggleButton1"
- android:layout_width="70dp"
- android:layout_height="fill_parent"
- android:layout_alignBottom="@+id/text_pop"
- android:layout_marginLeft="12dp"
- android:layout_toRightOf="@+id/text_pop"
- android:background="@color/contents_text"
- android:gravity="left|center|bottom"
- android:text="//"
- android:textColor="@color/white"
- android:textOff="筛选"
- android:textOn="附近"
- android:textSize="18dp" />
- <TextView
- android:id="@+id/toggle_text1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="/附近"
- android:layout_toRightOf="@+id/text_pop"
- android:layout_alignBottom="@+id/text_pop"
- android:layout_marginLeft="48dp"
- android:textAppearance="?android:attr/textAppearanceSmall" />
-
- <TextView
- android:id="@+id/toggle_text2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBottom="@+id/text_pop"
- android:layout_marginLeft="48dp"
- android:layout_toRightOf="@+id/text_pop"
- android:text="/筛选"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:visibility="invisible" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/filter"
- android:layout_width="wrap_content"
- android:layout_height="40dp"
- android:layout_below="@+id/title" >
- <HorizontalScrollView
- android:id="@+id/filter1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal" >
- <Spinner
- android:id="@+id/spinner1"
- android:layout_width="wrap_content"
- android:layout_height="40dp" />
- <Spinner
- android:id="@+id/spinner2"
- android:layout_width="wrap_content"
- android:layout_height="40dp" />
- <Spinner
- android:id="@+id/spinner3"
- android:layout_width="wrap_content"
- android:layout_height="40dp" />
- </LinearLayout>
- </HorizontalScrollView>
- <RadioGroup
- android:id="@+id/filter2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:visibility="invisible" >
- <RadioButton
- android:id="@+id/radio0"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checked="true"
- android:text="@string/nearby_1000" />
- <RadioButton
- android:id="@+id/radio1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/nearby_3000" />
- <RadioButton
- android:id="@+id/radio2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checked="true"
- android:text="@string/nearby_5000" />
- </RadioGroup>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/content"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_alignParentBottom="true"
- android:layout_below="@+id/filter" >
- <TabHost
- android:id="@android:id/tabhost"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_alignParentBottom="true"
- android:layout_alignParentLeft="true" >
- <RelativeLayout
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical" >
- <FrameLayout
- android:id="@android:id/tabcontent"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_above="@android:id/tabs" >
- <ListView
- android:id="@+id/listView1"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- </ListView>
- </FrameLayout>
- <TabWidget
- android:id="@android:id/tabs"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerInParent="true" >
- </TabWidget>
- </RelativeLayout>
- </TabHost>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/progress"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/transparent"
- android:clickable="false"
- android:visibility="invisible" >
- <ProgressBar
- android:id="@+id/progressBar1"
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true" />
- </RelativeLayout>
- </RelativeLayout>
|