微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

xml


phone_recharge.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white1"
android:orientation="vertical" >


<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/titlebar_bg"
android:orientation="horizontal" >


<Button
android:id="@+id/registerBackBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/btn_back_selector" />


<TextView
android:id="@+id/registerTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="充话费"
android:textColor="@color/white"
android:textSize="24sp" />
</RelativeLayout>


<EditText
android:id="@+id/rechargePhoneNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:background="@drawable/common_input"
android:hint=" 请输入手机号码"
android:inputType="phone"
android:maxLength="11"
android:textSize="15sp" />


<RelativeLayout
android:id="@+id/rechargeAmount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp" >


<TextView
android:id="@+id/chooseRechargeAmount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="@drawable/common_input"
android:gravity="center_vertical"
android:hint=" 请选择充值金额"
android:textSize="15sp" />


<TextView
android:id="@+id/price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="19dp"
android:gravity="center_vertical"
android:text="售价9.9元"
android:textSize="12sp" />
</RelativeLayout>


<ImageView
android:id="@+id/shortDivider"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />


<RadioGroup
android:id="@+id/radioGroupRechargeAmount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@drawable/common_input"
android:gravity="center_horizontal"
android:orientation="horizontal" >


<RadioButton
android:id="@+id/radioBtn10"
android:layout_width="20dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/btn_radio_selector"
android:button="@null" />


<TextView
android:id="@+id/tv10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="8dp"
android:text="10元" />


<RadioButton
android:id="@+id/radioBtn20"
android:layout_width="20dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="60dp"
android:background="@drawable/btn_radio_selector"
android:button="@null" />


<TextView
android:id="@+id/tv20"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="8dp"
android:text="20元" />


<RadioButton
android:id="@+id/radioBtn30"
android:layout_width="20dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="60dp"
android:background="@drawable/btn_radio_selector"
android:button="@null" />


<TextView
android:id="@+id/tv30"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="8dp"
android:text="30元" />
</RadioGroup>


</LinearLayout>




btn_back_selector.xml


<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">


<item android:drawable="@drawable/back_btn" android:state_pressed="false"></item>
<item android:drawable="@drawable/back_btn_focus" android:state_pressed="true"></item>


</selector>


btn_radio_selector.xml


<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">


<item android:drawable="@drawable/radio_btn" android:state_checked="false"></item>
<item android:drawable="@drawable/radio_btn_focus" android:state_checked="true"></item>


</selector>



colors.xml


<?xml version="1.0" encoding="utf-8"?> <resources> <color name="red">#ff0000</color> <color name="bg_gray">#ececec</color> <color name="white">#ffffff</color> <color name="white1">#f4f4f4</color> <color name="blue">#12448b</color> <color name="orange">#ea7d16</color> <color name="black">#333333</color> <color name="green">#3b7a02</color> </resources>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。