jimu-decompiled/resources/res/layout/activity_discovery.xml
2025-05-13 19:24:51 +02:00

130 lines
6.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:gravity="center_horizontal"
android:orientation="vertical"
android:background="@color/bg_ebebeb"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.ubt.jimu.widgets.NavigationBarView
android:id="@+id/nbv_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:nbv_mode="left"
app:nbv_title="@string/tab_title_discovery"/>
<LinearLayout
android:gravity="center"
android:layout_gravity="center"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="234dp"
android:layout_height="160dp"
android:layout_marginRight="@dimen/dp_15">
<androidx.cardview.widget.CardView
android:id="@+id/astrobotLayout"
android:clickable="true"
android:layout_width="234dp"
android:layout_height="160dp"
android:foreground="?android:attr/selectableItemBackground"
android:layout_alignParentBottom="true"
app:cardCornerRadius="@dimen/corner_radius"
app:cardElevation="0dp">
<ImageView
android:background="@drawable/adventure_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"/>
<TextView
android:textSize="@dimen/text_size_16"
android:layout_marginLeft="20dp"
android:layout_marginBottom="20dp"
android:text="@string/tab_title_interstellar_adventure"
style="@style/card_text_left_bottom_style"/>
</androidx.cardview.widget.CardView>
<FrameLayout
android:id="@+id/mask_card_view"
android:background="@drawable/shape_corner_half_translucent"
android:visibility="gone"
android:layout_width="234dp"
android:layout_height="160dp">
<TextView
android:textSize="@dimen/text_size_14"
android:textColor="@color/bg_white"
android:layout_gravity="center"
android:id="@+id/downloadProgressTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</FrameLayout>
</FrameLayout>
<FrameLayout
android:background="@color/translucent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15">
<androidx.cardview.widget.CardView
android:clickable="true"
android:layout_width="234dp"
android:layout_height="160dp"
android:foreground="?android:attr/selectableItemBackground"
android:layout_alignParentBottom="true"
app:cardCornerRadius="@dimen/corner_radius"
app:cardElevation="0dp">
<ImageView
android:background="@drawable/story_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"/>
<TextView
android:textSize="@dimen/text_size_16"
android:layout_marginLeft="20dp"
android:layout_marginBottom="20dp"
android:text="@string/tab_title_other_story"
style="@style/card_text_left_bottom_style"/>
<ImageView
android:layout_gravity="center"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/ic_story_lock"/>
</androidx.cardview.widget.CardView>
</FrameLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout
android:gravity="center"
android:orientation="vertical"
android:id="@+id/downloadViewStub"
android:visibility="gone"
android:clickable="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/iv_background"
android:background="#99ffffff"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:gravity="center"
android:orientation="vertical"
android:background="#99323232"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/iv_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_loading"/>
<TextView
android:textSize="@dimen/title_text_size"
android:textColor="@color/bg_black"
android:id="@+id/tv_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0%"/>
</LinearLayout>
</FrameLayout>
</FrameLayout>