Skip to content

Commit

Permalink
Movie details: on w1024dp move ratings into description, exts left.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Nov 23, 2023
1 parent 3085bdf commit 189e30e
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions app/src/main/res/layout-w1024dp/fragment_movie.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
android:orientation="horizontal">

<RelativeLayout
android:layout_width="370dp"
android:layout_width="380dp"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:paddingTop="@dimen/large_padding"
Expand Down Expand Up @@ -107,28 +107,18 @@
android:layout_height="wrap_content"
android:layout_below="@+id/containerMovieHeader" />

<View
android:id="@+id/dividerMovie1"
<LinearLayout
android:id="@+id/containerMovieActions"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/containerMovieButtons"
android:layout_marginLeft="@dimen/large_padding"
android:layout_marginRight="@dimen/large_padding"
android:background="?attr/sgColorDivider"
tools:ignore="UnknownIdInLayout" />

<include
android:id="@+id/containerRatings"
layout="@layout/ratings_movies"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dividerMovie1"
android:layout_centerHorizontal="true" />
android:layout_below="@id/containerMovieButtons"
android:layout_marginTop="8dp"
android:orientation="vertical" />

</RelativeLayout>

<RelativeLayout
android:layout_width="370dp"
android:layout_width="360dp"
android:layout_height="wrap_content"
android:paddingTop="@dimen/large_padding"
android:paddingBottom="@dimen/large_padding">
Expand All @@ -155,12 +145,40 @@
android:textAppearance="?attr/textAppearanceBody2"
tools:text="Description for a super awesome movie..." />

<View
android:id="@+id/dividerMovie1"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/textViewMovieDescription"
android:layout_marginLeft="@dimen/large_padding"
android:layout_marginTop="@dimen/large_padding"
android:layout_marginRight="@dimen/large_padding"
android:background="?attr/sgColorDivider" />

<include
android:id="@+id/containerRatings"
layout="@layout/ratings_movies"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dividerMovie1"
android:layout_centerHorizontal="true" />

<View
android:id="@+id/dividerMovie2"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/containerRatings"
android:layout_marginLeft="@dimen/large_padding"
android:layout_marginRight="@dimen/large_padding"
android:background="?attr/sgColorDivider"
tools:ignore="UnknownIdInLayout" />

<TextView
android:id="@+id/textViewMovieGenresLabel"
style="@style/Block.WithTopMargin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textViewMovieDescription"
android:layout_below="@+id/dividerMovie2"
android:text="@string/show_genres"
android:textAppearance="@style/TextAppearance.SeriesGuide.Body2.Bold" />

Expand Down Expand Up @@ -193,24 +211,6 @@
android:textAppearance="@style/TextAppearance.SeriesGuide.Body2"
tools:text="July 17, 21:48" />

<View
android:id="@+id/dividerMovie2"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/textMovieLastUpdated"
android:layout_marginLeft="@dimen/large_padding"
android:layout_marginTop="@dimen/large_padding"
android:layout_marginRight="@dimen/large_padding"
android:layout_marginBottom="@dimen/default_padding"
android:background="?attr/sgColorDivider" />

<LinearLayout
android:id="@+id/containerMovieActions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/dividerMovie2"
android:orientation="vertical" />

</RelativeLayout>

</LinearLayout>
Expand Down

0 comments on commit 189e30e

Please sign in to comment.