Skip to content

Instantly share code, notes, and snippets.

@claraj
Created October 27, 2017 22:47
Show Gist options
  • Save claraj/eb2a75d648480060ab07f4a3b9b4149c to your computer and use it in GitHub Desktop.
Save claraj/eb2a75d648480060ab07f4a3b9b4149c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/activity_main"
xmlns: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="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp"
tools:context="com.clara.checkingifthemovieappworksintheppts_delete_me.MainActivity"
android:orientation="vertical">
<EditText
android:id="@+id/movie_name_et"
android:hint="Enter movie name"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/movie_review_et"
android:hint="Enter review text"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RatingBar
android:id="@+id/movie_stars_rb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:stepSize="0.5"
android:numStars="5"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Stars"/>
</LinearLayout>
<Button
android:id="@+id/save_review_button"
android:text="Save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/show_latest_review_button"
android:text="Show latest review"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/latest_movie_data_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<EditText
android:id="@+id/search_name_et"
android:hint="Enter name to search for"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/search_movie_review_button"
android:text="Search for name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<TextView
android:id="@+id/search_movie_result_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/show_all_reviews_button"
android:text="Show all reviews"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/all_movie_data_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</ScrollView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment