|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="match_parent" |
| 7 | + app:layout_behavior="@string/appbar_scrolling_view_behavior" |
| 8 | + tools:context="com.eajy.materialdesigndemo.activity.DonateActivity" |
| 9 | + tools:showIn="@layout/activity_donate"> |
| 10 | + |
| 11 | + <LinearLayout |
| 12 | + android:layout_width="match_parent" |
| 13 | + android:layout_height="match_parent" |
| 14 | + android:layout_marginBottom="@dimen/activity_vertical_margin" |
| 15 | + android:layout_marginLeft="@dimen/activity_horizontal_margin" |
| 16 | + android:layout_marginRight="@dimen/activity_horizontal_margin" |
| 17 | + android:layout_marginTop="@dimen/activity_vertical_margin" |
| 18 | + android:orientation="vertical"> |
| 19 | + |
| 20 | + <RelativeLayout |
| 21 | + android:layout_width="match_parent" |
| 22 | + android:layout_height="wrap_content" |
| 23 | + android:layout_marginBottom="@dimen/text_margin" |
| 24 | + android:layout_marginTop="@dimen/text_margin"> |
| 25 | + |
| 26 | + <ImageView |
| 27 | + android:id="@+id/img_donate_low" |
| 28 | + android:layout_width="wrap_content" |
| 29 | + android:layout_height="wrap_content" |
| 30 | + android:layout_marginEnd="@dimen/text_margin" |
| 31 | + android:layout_centerVertical="true" |
| 32 | + android:src="@mipmap/ic_attach_money_black_24dp" |
| 33 | + android:tint="@color/colorAccent" /> |
| 34 | + |
| 35 | + <TextView |
| 36 | + android:layout_width="wrap_content" |
| 37 | + android:layout_height="wrap_content" |
| 38 | + android:layout_centerVertical="true" |
| 39 | + android:layout_marginStart="@dimen/text_margin" |
| 40 | + android:layout_toEndOf="@+id/img_donate_low" |
| 41 | + android:text="@string/donate_low" |
| 42 | + android:textColor="@color/colorAccent" |
| 43 | + android:textSize="16sp" /> |
| 44 | + |
| 45 | + <Button |
| 46 | + android:id="@+id/btn_donate_low" |
| 47 | + android:layout_width="wrap_content" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:layout_alignParentEnd="true" |
| 50 | + android:text="@string/activity_donate" /> |
| 51 | + </RelativeLayout> |
| 52 | + |
| 53 | + <RelativeLayout |
| 54 | + android:layout_width="match_parent" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:layout_marginBottom="@dimen/text_margin" |
| 57 | + android:layout_marginTop="@dimen/text_margin"> |
| 58 | + |
| 59 | + <ImageView |
| 60 | + android:id="@+id/img_donate_high" |
| 61 | + android:layout_width="wrap_content" |
| 62 | + android:layout_height="wrap_content" |
| 63 | + android:layout_marginEnd="@dimen/text_margin" |
| 64 | + android:layout_centerVertical="true" |
| 65 | + android:src="@mipmap/ic_attach_money_black_24dp" |
| 66 | + android:tint="@color/colorAccent" /> |
| 67 | + |
| 68 | + <TextView |
| 69 | + android:layout_width="wrap_content" |
| 70 | + android:layout_height="wrap_content" |
| 71 | + android:layout_centerVertical="true" |
| 72 | + android:layout_marginStart="@dimen/text_margin" |
| 73 | + android:layout_toEndOf="@+id/img_donate_high" |
| 74 | + android:text="@string/donate_high" |
| 75 | + android:textColor="@color/colorAccent" |
| 76 | + android:textSize="16sp" /> |
| 77 | + |
| 78 | + <Button |
| 79 | + android:id="@+id/btn_donate_high" |
| 80 | + android:layout_width="wrap_content" |
| 81 | + android:layout_height="wrap_content" |
| 82 | + android:layout_alignParentEnd="true" |
| 83 | + android:text="@string/activity_donate" /> |
| 84 | + </RelativeLayout> |
| 85 | + |
| 86 | + </LinearLayout> |
| 87 | +</android.support.v4.widget.NestedScrollView> |
0 commit comments