recharge_view_landscape.xml 17.8 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center">

        <LinearLayout
            android:layout_width="600dp"
            android:layout_height="320dp"
            android:layout_gravity="center_horizontal"
            android:background="@drawable/main_card_bg"
            android:minHeight="300dp"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingTop="8dp"
                android:paddingBottom="8dp"
                android:weightSum="5">

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:paddingLeft="12dp"
                    android:paddingRight="12dp">

                    <ImageButton
                        android:id="@+id/back_btn"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="?android:attr/selectableItemBackgroundBorderless"
                        android:padding="4dp"
                        android:src="@drawable/ic_back" />
                </LinearLayout>

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="3"
                    android:text="平台币充值"
                    android:textAlignment="center"
                    android:textColor="@android:color/black"
                    android:textSize="18sp" />

                <Space
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:orientation="horizontal">

                <GridLayout
                    android:id="@+id/amounts_gl"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:columnCount="3"
                    android:orientation="horizontal"
                    android:paddingLeft="4dp"
                    android:paddingRight="4dp"
                    android:paddingTop="4dp"
                    android:paddingBottom="4dp">

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="10" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="20" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="50" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="100" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="200" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="500" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="1000" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="2000" />

                    <Button
                        style="@style/rechargeAmountButton"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:text="5000" />

                    <LinearLayout
                        android:layout_columnSpan="3"
                        android:layout_columnWeight="1"
                        android:layout_marginLeft="4dp"
                        android:layout_marginRight="4dp"
                        android:orientation="vertical"
                        android:paddingTop="4dp">

                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:background="@drawable/recharge_input_bg"
                            android:orientation="horizontal"
                            android:paddingLeft="8dp"
                            android:paddingRight="8dp"
                            android:paddingTop="8dp"
                            android:paddingBottom="8dp">

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="自定义金额"
                                android:textColor="@android:color/black" />

                            <EditText
                                android:id="@+id/amount_et"
                                android:layout_width="0dp"
                                android:layout_height="wrap_content"
                                android:layout_marginLeft="12dp"
                                android:layout_weight="1"
                                android:background="@android:color/transparent"
                                android:inputType="number" />
                        </LinearLayout>

                        <TextView
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:text=" 说明:1平台币=1元,可在游戏中购买道具时使用! "
                            android:textColor="#9e9e9e"
                            android:textSize="12sp" />
                    </LinearLayout>

                    <FrameLayout
                        android:layout_columnSpan="3"
                        android:layout_columnWeight="1"
                        android:paddingLeft="12dp"
                        android:paddingRight="12dp"
                        android:paddingTop="8dp"
                        android:paddingBottom="8dp">

                        <Button
                            android:id="@+id/recharge_btn"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:paddingTop="8dp"
                            android:paddingBottom="8dp"
                            android:text="立即充值"
                            android:textSize="16sp" />
                    </FrameLayout>

                </GridLayout>

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="vertical"
                    android:paddingLeft="12dp"
                    android:paddingRight="12dp"
                    android:paddingTop="16dp"
                    android:paddingBottom="16dp">

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="20dp"
                        android:gravity="center_vertical"
                        android:orientation="horizontal">

                        <View
                            android:layout_width="2dp"
                            android:layout_height="match_parent"
                            android:layout_marginTop="1dp"
                            android:layout_marginBottom="1dp"
                            android:background="#c75831" />

                        <TextView
                            android:layout_width="0dp"
                            android:layout_height="match_parent"
                            android:layout_marginLeft="4dp"
                            android:layout_weight="1"
                            android:text="使用第三方平台支付"
                            android:textColor="@android:color/black"
                            android:textSize="15sp" />
                    </LinearLayout>

                    <ListView
                        android:id="@+id/payment_types_lv"
                        android:layout_width="match_parent"
                        android:layout_height="0dp"
                        android:paddingTop="4dp"
                        android:paddingBottom="4dp"
                        android:layout_weight="1" />

<!--                    <LinearLayout-->
<!--                        android:id="@+id/payment_alipay_view"-->
<!--                        android:layout_width="match_parent"-->
<!--                        android:layout_height="0dp"-->
<!--                        android:layout_weight="1"-->
<!--                        android:background="?android:attr/listChoiceBackgroundIndicator"-->
<!--                        android:clickable="true"-->
<!--                        android:focusable="true"-->
<!--                        android:gravity="center_vertical"-->
<!--                        android:orientation="horizontal"-->
<!--                        android:paddingLeft="4dp"-->
<!--                        android:paddingRight="4dp">-->

<!--                        <ImageView-->
<!--                            android:layout_width="24dp"-->
<!--                            android:layout_height="24dp"-->
<!--                            android:src="@drawable/ic_alipay" />-->

<!--                        <TextView-->
<!--                            android:layout_width="0dp"-->
<!--                            android:layout_height="wrap_content"-->
<!--                            android:layout_marginLeft="12dp"-->
<!--                            android:layout_weight="1"-->
<!--                            android:text="支付宝" />-->

<!--                        <ImageView-->
<!--                            android:layout_width="16dp"-->
<!--                            android:layout_height="16dp"-->
<!--                            android:src="@drawable/recharge_payment_type_checkbox_selector" />-->
<!--                    </LinearLayout>-->

<!--                    <View-->
<!--                        android:layout_width="match_parent"-->
<!--                        android:layout_height="1dp"-->
<!--                        android:background="#1f000000" />-->

<!--                    <LinearLayout-->
<!--                        android:id="@+id/payment_wechat_view"-->
<!--                        android:layout_width="match_parent"-->
<!--                        android:layout_height="0dp"-->
<!--                        android:layout_weight="1"-->
<!--                        android:background="?android:attr/listChoiceBackgroundIndicator"-->
<!--                        android:clickable="true"-->
<!--                        android:focusable="true"-->
<!--                        android:gravity="center_vertical"-->
<!--                        android:orientation="horizontal"-->
<!--                        android:paddingLeft="4dp"-->
<!--                        android:paddingRight="4dp">-->

<!--                        <ImageView-->
<!--                            android:layout_width="24dp"-->
<!--                            android:layout_height="24dp"-->
<!--                            android:src="@drawable/ic_weixin" />-->

<!--                        <TextView-->
<!--                            android:layout_width="0dp"-->
<!--                            android:layout_height="wrap_content"-->
<!--                            android:layout_marginLeft="12dp"-->
<!--                            android:layout_weight="1"-->
<!--                            android:text="微信支付" />-->

<!--                        <ImageView-->
<!--                            android:layout_width="16dp"-->
<!--                            android:layout_height="16dp"-->
<!--                            android:src="@drawable/recharge_payment_type_checkbox_selector" />-->
<!--                    </LinearLayout>-->

<!--                    <View-->
<!--                        android:layout_width="match_parent"-->
<!--                        android:layout_height="1dp"-->
<!--                        android:background="#1f000000" />-->

<!--                    <LinearLayout-->
<!--                        android:id="@+id/payment_alipay_qrcode_view"-->
<!--                        android:layout_width="match_parent"-->
<!--                        android:layout_height="0dp"-->
<!--                        android:layout_weight="1"-->
<!--                        android:background="?android:attr/listChoiceBackgroundIndicator"-->
<!--                        android:clickable="true"-->
<!--                        android:focusable="true"-->
<!--                        android:gravity="center_vertical"-->
<!--                        android:orientation="horizontal"-->
<!--                        android:paddingLeft="4dp"-->
<!--                        android:paddingRight="4dp">-->

<!--                        <ImageView-->
<!--                            android:layout_width="24dp"-->
<!--                            android:layout_height="24dp"-->
<!--                            android:src="@drawable/ic_alipay" />-->

<!--                        <TextView-->
<!--                            android:layout_width="0dp"-->
<!--                            android:layout_height="wrap_content"-->
<!--                            android:layout_marginLeft="12dp"-->
<!--                            android:layout_weight="1"-->
<!--                            android:text="支付宝扫码" />-->

<!--                        <ImageView-->
<!--                            android:layout_width="16dp"-->
<!--                            android:layout_height="16dp"-->
<!--                            android:src="@drawable/recharge_payment_type_checkbox_selector" />-->
<!--                    </LinearLayout>-->

<!--                    <View-->
<!--                        android:layout_width="match_parent"-->
<!--                        android:layout_height="1dp"-->
<!--                        android:background="#1f000000" />-->

<!--                    <LinearLayout-->
<!--                        android:id="@+id/payment_wechat_qrcode_view"-->
<!--                        android:layout_width="match_parent"-->
<!--                        android:layout_height="0dp"-->
<!--                        android:layout_weight="1"-->
<!--                        android:background="?android:attr/listChoiceBackgroundIndicator"-->
<!--                        android:clickable="true"-->
<!--                        android:focusable="true"-->
<!--                        android:gravity="center_vertical"-->
<!--                        android:orientation="horizontal"-->
<!--                        android:paddingLeft="4dp"-->
<!--                        android:paddingRight="4dp">-->

<!--                        <ImageView-->
<!--                            android:layout_width="24dp"-->
<!--                            android:layout_height="24dp"-->
<!--                            android:src="@drawable/ic_weixin" />-->

<!--                        <TextView-->
<!--                            android:layout_width="0dp"-->
<!--                            android:layout_height="wrap_content"-->
<!--                            android:layout_marginLeft="12dp"-->
<!--                            android:layout_weight="1"-->
<!--                            android:text="微信扫码" />-->

<!--                        <ImageView-->
<!--                            android:layout_width="16dp"-->
<!--                            android:layout_height="16dp"-->
<!--                            android:src="@drawable/recharge_payment_type_checkbox_selector" />-->
<!--                    </LinearLayout>-->
                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
    </ScrollView>
</FrameLayout>