admin
2022-04-29 67bdeebb4dc381a2f46f31e3027ebcc3243a8aeb
android/app/src/main/res/layout/fragment_home.xml
@@ -12,19 +12,272 @@
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        android:layout_height="match_parent"
        android:background="@color/black">
        <FrameLayout
            android:id="@+id/fl_videos"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
        </FrameLayout>
            android:layout_height="match_parent"></FrameLayout>
        <FrameLayout
            android:id="@+id/fl_cover"
            android:layout_width="match_parent"
            android:layout_height="match_parent"></FrameLayout>
            android:layout_height="match_parent">
            <!-- 红包进度与动画 -->
            <FrameLayout
                android:id="@+id/fl_hb"
                android:layout_width="50dp"
                android:layout_height="60dp"
                android:layout_gravity="left|top"
                android:layout_marginLeft="10dp"
                android:layout_marginTop="100dp">
                <View
                    android:layout_width="50dp"
                    android:layout_height="50dp"
                    android:layout_gravity="bottom"
                    android:background="@drawable/shape_home_hb_bg"></View>
                <FrameLayout
                    android:id="@+id/fl_goldcorn"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_gravity="center_horizontal|bottom"
                    android:layout_marginBottom="10dp"
                    android:visibility="gone">
                    <ImageView
                        android:layout_width="30.5dp"
                        android:layout_height="41dp"
                        android:layout_gravity="bottom|center_horizontal"
                        android:src="@drawable/ic_home_hb_bg"></ImageView>
                    <FrameLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent">
                        <!-- 若干硬币 -->
                        <ImageView
                            android:id="@+id/iv_goldcorn_1"
                            android:layout_width="14dp"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginLeft="5dp"
                            android:layout_marginTop="34dp"
                            android:src="@drawable/icon_home_goldcorn"></ImageView>
                        <ImageView
                            android:id="@+id/iv_goldcorn_2"
                            android:layout_width="14dp"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginLeft="-5dp"
                            android:layout_marginTop="34dp"
                            android:src="@drawable/icon_home_goldcorn"></ImageView>
                        <ImageView
                            android:id="@+id/iv_goldcorn_3"
                            android:layout_width="14dp"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginLeft="0dp"
                            android:layout_marginTop="32dp"
                            android:src="@drawable/icon_home_goldcorn"></ImageView>
                        <ImageView
                            android:id="@+id/iv_goldcorn_4"
                            android:layout_width="12dp"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginLeft="5dp"
                            android:layout_marginTop="-20dp"
                            android:src="@drawable/icon_home_goldcorn"></ImageView>
                        <ImageView
                            android:id="@+id/iv_goldcorn_5"
                            android:layout_width="12dp"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_horizontal"
                            android:layout_marginLeft="10dp"
                            android:layout_marginTop="-20dp"
                            android:src="@drawable/icon_home_goldcorn"></ImageView>
                    </FrameLayout>
                    <ImageView
                        android:layout_width="25dp"
                        android:layout_height="22.5dp"
                        android:layout_gravity="bottom|center_horizontal"
                        android:src="@drawable/ic_home_hb_fg"></ImageView>
                    <FrameLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="bottom|center_horizontal">
                        <ImageView
                            android:id="@+id/iv_goldcorn_bg"
                            android:layout_width="25dp"
                            android:layout_height="20dp"
                            android:scaleType="centerCrop"
                            android:src="@drawable/anim_goldcorn_num_show_bg"
                            android:visibility="gone">
                        </ImageView>
                        <TextView
                            android:layout_marginTop="1dp"
                            android:id="@+id/tv_goldcorn"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center"
                            android:text="20"
                            android:textColor="#F5EBA4"
                            android:textSize="12sp"
                            android:textStyle="bold"
                            android:visibility="gone"></TextView>
                    </FrameLayout>
                </FrameLayout>
                <FrameLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal|bottom"
                    android:visibility="visible">
                    <com.yeshi.makemoney.video.app.ui.subview.CircleProgressView
                        android:id="@+id/cb_process"
                        style="?android:attr/progressBarStyleLarge"
                        android:layout_width="50dp"
                        android:layout_height="50dp">
                    </com.yeshi.makemoney.video.app.ui.subview.CircleProgressView>
                    <ImageView
                        android:id="@+id/iv_hb"
                        android:layout_width="wrap_content"
                        android:layout_height="30dp"
                        android:layout_gravity="center"
                        android:src="@drawable/ic_home_hb"></ImageView>
                </FrameLayout>
            </FrameLayout>
            <!-- 金币加倍 -->
            <LinearLayout
                android:id="@+id/ll_double"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="right|top"
                android:layout_marginTop="40dp"
                android:background="@drawable/shape_home_double_bg"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="5dp"
                android:paddingTop="4dp"
                android:paddingRight="5dp"
                android:paddingBottom="4dp">
                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/icon_home_goldcorn"></ImageView>
                <TextView
                    android:id="@+id/tv_total_goldcorn"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="5dp"
                    android:layout_marginRight="8dp"
                    android:shadowColor="#ffd37200"
                    android:shadowDx="0"
                    android:shadowDy="1"
                    android:shadowRadius="3.0"
                    android:text="+0"
                    android:textColor="#fff5eba4"
                    android:textSize="13sp"></TextView>
                <FrameLayout
                    android:id="@+id/fl_double_btn"
                    android:layout_width="64dp"
                    android:layout_height="21dp">
                    <ImageView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:src="@drawable/ic_home_double_recieve"></ImageView>
                    <ProgressBar
                        android:id="@+id/pb_hide"
                        style="?android:attr/progressBarStyleHorizontal"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:max="120"
                        android:maxHeight="21dp"
                        android:minHeight="21dp"
                        android:progress="0"
                        android:progressDrawable="@drawable/process_drawable"></ProgressBar>
                </FrameLayout>
            </LinearLayout>
        </FrameLayout>
        <LinearLayout
            android:id="@+id/ll_login"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:layout_margin="8dp"
            android:background="@drawable/shape_home_login_bg"
            android:gravity="center_vertical"
            android:paddingLeft="12dp"
            android:paddingTop="8dp"
            android:paddingRight="12dp"
            android:paddingBottom="8dp">
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_home_login"></ImageView>
            <View
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:layout_weight="1"></View>
            <TextView
                android:id="@+id/tv_login"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/shape_home_login_btn_bg"
                android:text="去登录"
                android:textColor="@color/white"
                android:textSize="15sp"></TextView>
        </LinearLayout>
    </FrameLayout>