Advertisement
Guest User

Untitled

a guest
Mar 6th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.47 KB | None | 0 0
  1. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  2.    android:layout_width="match_parent"
  3.    android:layout_height="wrap_content" >
  4.  
  5.     <TableLayout
  6.        android:layout_width="match_parent"
  7.        android:layout_height="wrap_content"
  8.        android:shrinkColumns="1"
  9.        android:stretchColumns="1" >
  10.  
  11.        <TableRow
  12.            android:layout_marginBottom="2sp"
  13.            android:layout_marginTop="2sp"
  14.            android:layout_width="match_parent" >
  15.             <TextView
  16.                android:layout_width="match_parent"
  17.                android:text="You can only add a spot based on your current location" />
  18.          
  19.         </TableRow>
  20.        
  21.        <TableRow
  22.            android:layout_marginBottom="2sp"
  23.            android:layout_marginTop="2sp" >
  24.             <TextView android:text="Name:" />
  25.             <EditText android:id="@+id/name" />
  26.         </TableRow>
  27.  
  28.        <TableRow
  29.            android:layout_marginBottom="2sp"
  30.            android:layout_marginTop="2sp" >
  31.             <TextView android:text="Address:" />
  32.             <EditText android:id="@+id/addr" />
  33.         </TableRow>
  34.  
  35.        <TableRow
  36.            android:layout_marginBottom="2sp"
  37.            android:layout_marginTop="2sp" >
  38.             <TextView android:text="Type:" />
  39.             <Spinner
  40.                android:id="@+id/spinnerType"
  41.                style="@style/AppBaseTheme"
  42.                android:layout_width="wrap_content"
  43.                android:layout_height="wrap_content"
  44.                android:layout_weight="1"
  45.                android:entries="@array/types_array"
  46.                android:prompt="@string/types_prompt" />
  47.         </TableRow>
  48.  
  49.        <TableRow
  50.            android:layout_marginBottom="2sp"
  51.            android:layout_marginTop="2sp" >
  52.             <TextView android:text="Terrain:" />
  53.             <Spinner
  54.                android:id="@+id/spinnerTerrain"
  55.                style="@style/AppBaseTheme"
  56.                android:layout_width="wrap_content"
  57.                android:layout_height="wrap_content"
  58.                android:layout_weight="1"
  59.                android:entries="@array/ratings_array"
  60.                android:prompt="@string/ratings_prompt" />
  61.         </TableRow>
  62.  
  63.         <TableRow>
  64.             <TextView android:text="Difficulty:" />
  65.             <Spinner
  66.                android:id="@+id/spinnerDifficulty"
  67.                style="@style/AppBaseTheme"
  68.                android:layout_width="wrap_content"
  69.                android:layout_height="wrap_content"
  70.                android:layout_weight="1"
  71.                android:entries="@array/ratings_array"
  72.                android:prompt="@string/ratings_prompt" />
  73.         </TableRow>
  74.  
  75.        <TableRow
  76.            android:layout_marginBottom="2sp"
  77.            android:layout_marginTop="2sp" >
  78.             <TextView android:text="Description:" />
  79.             <EditText
  80.                android:id="@+id/desc"
  81.                android:gravity="top"
  82.                android:inputType="textMultiLine"
  83.                android:lines="2"
  84.                android:maxLines="2"
  85.                android:scrollHorizontally="false" />
  86.         </TableRow>
  87.  
  88.         <Button
  89.            android:id="@+id/save"
  90.            android:layout_width="match_parent"
  91.            android:layout_height="wrap_content"
  92.            android:text="Save"
  93.             android:layout_marginBottom="2sp"
  94.            android:layout_marginTop="2sp" />
  95.     </TableLayout>
  96.  
  97. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement