activity_promoter.xml 6.93 KB
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/common_bg"
        android:orientation="horizontal" >

        <!-- 左边宣传图片 -->

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginRight="6dp"
            android:layout_weight="9" >

            <ImageView
                android:id="@+id/left_imge"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="fitXY" />

            <Button
                android:id="@+id/promoter_linked"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_centerHorizontal="true"
                android:layout_marginBottom="20dp"
                android:background="@drawable/promoter_linked"
                android:gravity="center"
                android:text="@string/promote"
                android:textColor="@color/red" />
        </RelativeLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="5"
            android:orientation="vertical" >

            <RelativeLayout
                android:layout_weight="2"
                android:layout_width="match_parent"
                android:layout_height="match_parent" >

                <ImageView
                    android:id="@+id/right_top"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:scaleType="fitXY"
                     />
                <!-- 进度条上方进度提示 -->

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="32dp"
                    android:layout_marginTop="28dp"
                    android:gravity="bottom"
                    android:orientation="horizontal" >

                    <!-- 进度条 -->

                    <LinearLayout
                        android:id="@+id/playout"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_toLeftOf="@+id/reward"
                        android:orientation="vertical" >

                        <LinearLayout
                            android:id="@+id/progress_instructions"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:orientation="horizontal" />

                        <ProgressBar
                            android:id="@+id/prgress_bar"
                            style="?android:attr/progressBarStyleHorizontal"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="12.5dp"
                            android:background="@drawable/progress_bar_background"
                            android:progressDrawable="@drawable/progress_drawable" />
                    </LinearLayout>
                    <!-- 获取奖励 -->

                    <Button
                        android:id="@id/reward"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignBottom="@id/playout"
                        android:layout_alignParentRight="true"
                        android:layout_marginRight="26dp"
                        android:background="@drawable/btn_reward_bg"
                        android:enabled="true"
                        android:gravity="bottom|center_horizontal"
                        android:paddingBottom="2dp"
                        android:text="@string/claim"
                        android:textColor="@color/btn_text_color" />
                </RelativeLayout>
            </RelativeLayout>

            <RelativeLayout
                android:layout_weight="3"
                android:layout_width="match_parent"
                android:layout_height="match_parent" >

                <ImageView
                    android:id="@+id/right_down"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:scaleType="fitXY"
                     />

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_centerHorizontal="true"
                    android:layout_marginBottom="21dp"
                    android:gravity="center_vertical"
                    android:orientation="horizontal" >

                    <EditText
                        android:id="@+id/edittext"
                        android:layout_width="wrap_content"
                        android:layout_height="36.5dp"
                        android:layout_marginRight="22.5dp"
                        android:background="@drawable/edite_hint"
                        android:paddingLeft="10dp"
                        android:textColor="@color/edit_text_color" />

                    <Button
                        android:id="@+id/confirm"
                        android:layout_width="wrap_content"
                        android:layout_height="30dp"
                        android:background="@drawable/btn_confirm_bg"
                        android:enabled="false"
                        android:paddingBottom="2dp"
                        android:text="@string/verify"
                        android:textColor="@color/btn_confirm_text_color" />
                </LinearLayout>
            </RelativeLayout>
        </LinearLayout>
    </LinearLayout>
    <!-- 中间指示 -->

    <ImageView
        android:id="@+id/middle_instructions"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="210dp"
        android:layout_marginTop="101dp"
        android:scaleType="fitXY"
        android:src="@drawable/middle_instructions" />
    <!-- 关闭按钮 -->

    <ImageView
        android:id="@+id/close_image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:src="@drawable/close_image" />

</RelativeLayout>