Skip to content

Instantly share code, notes, and snippets.

@nurcinozer
Created January 27, 2022 11:49
Show Gist options
  • Save nurcinozer/455a5bbc2ba977383c38a170e46105bc to your computer and use it in GitHub Desktop.
Save nurcinozer/455a5bbc2ba977383c38a170e46105bc to your computer and use it in GitHub Desktop.
P2-Movie-App-Base-Project/main/app/src/main/res/layout/activity_movie_detail.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/default_padding"
tools:context=".ui.movie_detail.MovieDetailActivity">
<ImageView
android:id="@+id/ivBackdrop"
android:layout_width="match_parent"
android:layout_height="128dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin"
android:text="@string/overview"
android:textStyle="bold" />
<TextView
android:id="@+id/tvOverview"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin"
android:text="@string/category"
android:textStyle="bold" />
<TextView
android:id="@+id/tvCategory"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin"
android:text="@string/score"
android:textStyle="bold" />
<TextView
android:id="@+id/tvScore"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/default_margin">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toStartOf="@+id/tvDate"
android:text="@string/release_date" />
<TextView
android:id="@+id/tvDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true" />
</RelativeLayout>
<Button
android:id="@+id/image_classification_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="CLASSIFY IMAGE"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/detected_image_class_tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="32dp"
android:textColor="@color/black"/>
</LinearLayout>
</ScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment