前言:话不多说,先上图
从上面的图片可以看出该界面由余额信息和流式布局的订单信息以及确认支付三部分组成,代码如下:
<RelativeLayout 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"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:id="@+id/rl_top" android:background="@drawable/text_bg" > <ImageView android:id="@+id/back" android:layout_marginTop="27dp" android:layout_width="wrap_content" android:layout_height="@dimen/dp_45" android:paddingLeft="@dimen/dp_15" android:src="@mipmap/back_white" /> <TextView android:id="@+id/tv" android:layout_width="match_parent" android:layout_height="@dimen/dp_72" android:gravity="center" android:paddingTop="27dp" android:text="我的钱包" android:textColor="@color/white" android:textSize="@dimen/text_14_sp" /> <TextView android:id="@+id/tv_ddjl" android:layout_width="wrap_content" android:layout_height="@dimen/dp_72" a