havens1515

Rating Screen XML

Apr 8th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.34 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <RelativeLayout
  4.        xmlns:android="http://schemas.android.com/apk/res/android"
  5.        android:layout_width="fill_parent"
  6.        android:layout_height="fill_parent"
  7.        android:orientation="vertical">
  8.     <TextView
  9.            android:id="@+id/feedbackTitle"
  10.            android:paddingTop="20dip"
  11.            android:layout_width="fill_parent"
  12.            android:layout_height="wrap_content"
  13.            android:gravity="center"
  14.            android:textSize="16sp"
  15.            android:textColor="#00ff00"
  16.            android:layout_alignParentTop="true"
  17.            android:text="Feedback" />
  18.     <TextView
  19.            android:id="@+id/feedbackText"
  20.            android:layout_margin="15dip"
  21.            android:layout_width="fill_parent"
  22.            android:layout_height="wrap_content"
  23.            android:layout_below="@id/feedbackTitle"
  24.            <!--Strings like this should be in a string variable-->
  25.             android:text="Taking a few seconds to rate an app is very important for the developer. It allows us to continually improve the experience, and helps other users decide whether an app is right for them. How about telling us what you think?" />
  26.     <TextView
  27.            android:id="@+id/updateSentence"
  28.            android:paddingTop="20dip"
  29.            android:layout_width="fill_parent"
  30.            android:layout_height="wrap_content"
  31.            android:layout_margin="15dip"
  32.            android:textSize="16sp"
  33.            android:textColor="#ff0000"
  34.            android:layout_below="@id/feedbackText"
  35.            android:text="This screen will only appear once per update." />
  36.  
  37.     <TableLayout
  38.            android:id="@+id/ratingButtons"
  39.            android:layout_width="fill_parent"
  40.            android:layout_height="wrap_content"
  41.            android:layout_alignParentBottom="true"
  42.            android:shrinkColumns="*"
  43.            android:stretchColumns="*">
  44.         <TableRow
  45.                android:layout_width="fill_parent"
  46.                android:layout_height="wrap_content"
  47.                android:gravity="center_horizontal"
  48.                style="?android:attr/buttonBarStyle"
  49.                android:orientation="horizontal">
  50.             <Button
  51.                    android:id="@+id/i_love_it"
  52.                    android:layout_height="wrap_content"
  53.                    android:layout_width="wrap_content"
  54.                    style="?android:attr/buttonBarButtonStyle"
  55.                    android:text="I love it!"/>
  56.             <Button
  57.                    android:id="@+id/needs_work"
  58.                    android:layout_height="wrap_content"
  59.                    android:layout_width="wrap_content"
  60.                    style="?android:attr/buttonBarButtonStyle"
  61.                    android:text="Needs work!"/>
  62.             <Button
  63.                    android:id="@+id/maybe_later"
  64.                    android:layout_height="wrap_content"
  65.                    android:layout_width="wrap_content"
  66.                    style="?android:attr/buttonBarButtonStyle"
  67.                    android:text="Maybe later."/>
  68.         </TableRow>
  69.     </TableLayout>
  70.     <View
  71.        android:layout_width="fill_parent"
  72.        android:layout_height="1dip"
  73.        android:layout_above="@id/ratingButtons"
  74.        android:background="@color/DimGray"/>
  75. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment