238 lines
9.0 KiB
XML
238 lines
9.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/headerContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="@dimen/additional_horizontal_spacing"
|
|
android:layout_marginTop="?attr/actionBarSize"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="156dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="bottom">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:background="@color/image_readability_tint"
|
|
android:orientation="horizontal"
|
|
android:layout_alignParentBottom="true">
|
|
|
|
<View
|
|
android:layout_width="148dp"
|
|
android:layout_height="match_parent" />
|
|
|
|
<Button
|
|
android:id="@+id/butSubscribe"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/subscribe_label"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/butShowInfo"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:contentDescription="@string/show_info_label"
|
|
android:layout_marginLeft="-8dp"
|
|
android:layout_marginStart="-8dp"
|
|
android:scaleType="fitXY"
|
|
android:padding="8dp"
|
|
app:srcCompat="@drawable/ic_info_white"
|
|
tools:visibility="visible" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/butFilter"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:contentDescription="@string/filter"
|
|
android:scaleType="fitXY"
|
|
android:padding="8dp"
|
|
app:srcCompat="@drawable/ic_filter_white"
|
|
tools:visibility="visible" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/butShowSettings"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:contentDescription="@string/show_feed_settings_label"
|
|
android:scaleType="fitXY"
|
|
android:padding="8dp"
|
|
app:srcCompat="@drawable/ic_settings_white"
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:scaleType="fitXY"
|
|
app:srcCompat="@drawable/ic_rounded_corner_left" />
|
|
|
|
<ImageView
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentRight="true"
|
|
android:scaleType="fitXY"
|
|
app:srcCompat="@drawable/ic_rounded_corner_right" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/coverHolder"
|
|
android:layout_width="124dp"
|
|
android:layout_height="124dp"
|
|
android:layout_marginBottom="24dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_alignParentBottom="true"
|
|
app:cardBackgroundColor="@color/non_square_icon_background"
|
|
app:cardCornerRadius="8dp"
|
|
app:cardPreventCornerOverlap="false"
|
|
app:cardElevation="0dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/imgvCover"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerVertical="true"
|
|
android:importantForAccessibility="no"
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toEndOf="@id/coverHolder"
|
|
android:layout_alignTop="@id/coverHolder"
|
|
android:layout_marginEnd="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/txtvTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:shadowColor="@color/black"
|
|
android:shadowRadius="2"
|
|
android:textColor="@color/white"
|
|
style="@style/AntennaPod.TextView.Heading"
|
|
tools:text="Podcast title" />
|
|
|
|
<TextView
|
|
android:id="@+id/txtvAuthor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:shadowColor="@color/black"
|
|
android:shadowRadius="2"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_small"
|
|
tools:text="Podcast author" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/txtvFailure"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="2dp"
|
|
android:background="?attr/icon_red"
|
|
android:gravity="center"
|
|
android:textColor="@color/white"
|
|
android:visibility="gone"
|
|
android:text="@string/refresh_failed_msg"
|
|
tools:visibility="visible"
|
|
tools:text="(!) Last refresh failed" />
|
|
|
|
<TextView
|
|
android:id="@+id/txtvInformation"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="2dp"
|
|
android:background="?android:attr/colorBackground"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:visibility="gone"
|
|
android:gravity="center"
|
|
android:textColor="?attr/colorAccent"
|
|
tools:visibility="visible"
|
|
tools:text="(i) Information" />
|
|
|
|
<TextView
|
|
android:id="@+id/txtvUpdatesDisabled"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="2dp"
|
|
android:background="?android:attr/colorBackground"
|
|
android:visibility="gone"
|
|
android:gravity="center"
|
|
android:textColor="?attr/colorAccent"
|
|
tools:visibility="visible"
|
|
tools:text="Updates disabled" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/descriptionContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:background="?android:attr/colorBackground"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginTop="16dp"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="8dp"
|
|
android:background="@drawable/bg_message_info"
|
|
android:textColor="?attr/colorAccent"
|
|
android:text="@string/state_deleted_not_subscribed" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:text="@string/description_label"
|
|
style="@style/TextAppearance.Material3.TitleMedium" />
|
|
|
|
<TextView
|
|
android:id="@+id/headerDescriptionLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:lineHeight="20dp"
|
|
android:maxLines="3"
|
|
android:layout_marginBottom="16dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
style="@style/AntennaPod.TextView.ListItemBody"
|
|
tools:text="@string/design_time_lorem_ipsum" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/preview_episodes"
|
|
android:layout_marginBottom="8dp"
|
|
style="@style/TextAppearance.Material3.TitleMedium" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|