|
|
|
|
@ -63,56 +63,66 @@
|
|
|
|
|
app:layout_constraintWidth_percent="0.5"
|
|
|
|
|
tools:layout="@layout/fragment_details" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/button_dropdown"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
|
android:padding="@dimen/margin_small"
|
|
|
|
|
android:src="@drawable/ic_expand_more"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/divider"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/appbar" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/group_header"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="@dimen/margin_normal"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textAppearance="?textAppearanceTitleMedium"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/textView_subtitle"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_dropdown"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/container_chapters"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/appbar"
|
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
|
tools:text="@string/chapter_d_of_d" />
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/appbar">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView_subtitle"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="@dimen/margin_normal"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textAppearance="?textAppearanceTitleSmall"
|
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/divider"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_dropdown"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/container_chapters"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_title"
|
|
|
|
|
tools:text="English"
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignWithParentIfMissing="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:layout_toStartOf="@id/button_dropdown"
|
|
|
|
|
android:paddingHorizontal="@dimen/margin_normal"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textAppearance="?textAppearanceTitleMedium"
|
|
|
|
|
tools:text="@string/chapter_d_of_d" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/divider"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="1dp"
|
|
|
|
|
android:layout_marginTop="48dp"
|
|
|
|
|
android:background="?colorSecondaryContainer"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/container_details"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/appbar" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView_subtitle"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignWithParentIfMissing="true"
|
|
|
|
|
android:layout_below="@id/textView_title"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_toStartOf="@id/button_dropdown"
|
|
|
|
|
android:paddingHorizontal="@dimen/margin_normal"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textAppearance="?textAppearanceTitleSmall"
|
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:text="English"
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/button_dropdown"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginBottom="1dp"
|
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
|
android:padding="@dimen/margin_small"
|
|
|
|
|
android:src="@drawable/ic_expand_more" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/divider"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="1dp"
|
|
|
|
|
android:layout_below="@id/textView_subtitle"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:background="?colorSecondaryContainer" />
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
|
|
|
android:id="@+id/container_chapters"
|
|
|
|
|
@ -122,7 +132,7 @@
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/container_details"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_header"
|
|
|
|
|
tools:layout="@layout/fragment_chapters" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|