aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/activity_publish_profile_picture.xml
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-01 00:20:38 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-01 13:22:42 +0200
commit2d6f14070469756aa76f0a087123c16504059510 (patch)
treefbe674fff1d40a1762e53162d625c6abc338d113 /src/main/res/layout/activity_publish_profile_picture.xml
parentb4be5f94d897455fa776a5d6d7018456ffb840de (diff)
use cards views in about and publish avatar activity
Diffstat (limited to 'src/main/res/layout/activity_publish_profile_picture.xml')
-rw-r--r--src/main/res/layout/activity_publish_profile_picture.xml66
1 files changed, 27 insertions, 39 deletions
diff --git a/src/main/res/layout/activity_publish_profile_picture.xml b/src/main/res/layout/activity_publish_profile_picture.xml
index c6339604c..ee587086b 100644
--- a/src/main/res/layout/activity_publish_profile_picture.xml
+++ b/src/main/res/layout/activity_publish_profile_picture.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/grey200">
+ android:background="?attr/color_background_secondary">
<ScrollView
android:layout_width="fill_parent"
@@ -11,33 +11,29 @@
android:layout_above="@+id/button_bar"
android:layout_alignParentTop="true">
- <LinearLayout
+ <android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical"
- android:gravity="center_horizontal">
+ android:layout_marginBottom="@dimen/activity_vertical_margin"
+ android:layout_marginLeft="@dimen/activity_horizontal_margin"
+ android:layout_marginRight="@dimen/activity_horizontal_margin"
+ android:layout_marginTop="@dimen/activity_vertical_margin">
<LinearLayout
- android:layout_width="fill_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_above="@+id/button_bar"
- android:layout_alignParentLeft="true"
- android:layout_alignParentRight="true"
- android:layout_below="@+id/secondary_hint"
- android:gravity="center_vertical"
- android:orientation="vertical"
- android:layout_marginRight="@dimen/activity_horizontal_margin"
- android:layout_marginLeft="@dimen/activity_horizontal_margin"
- android:layout_marginTop="@dimen/activity_vertical_margin"
- android:layout_marginBottom="@dimen/activity_vertical_margin"
- android:background="@drawable/infocard_border"
- android:padding="@dimen/card_padding_regular">
+ android:gravity="center_horizontal"
+ android:padding="@dimen/card_padding_regular"
+ android:orientation="vertical">
<LinearLayout
android:id="@+id/account_image_wrapper"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
+ android:layout_below="@+id/secondary_hint"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal">
@@ -47,7 +43,6 @@
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
- android:layout_marginBottom="16dp"
android:adjustViewBounds="true"
android:background="@drawable/message_border"
android:contentDescription="@string/account_image_description"
@@ -63,14 +58,10 @@
android:layout_height="wrap_content"
android:layout_below="@id/account_image_wrapper"
android:layout_centerHorizontal="true"
- android:text="@string/touch_to_choose_picture"
- android:textColor="@color/black54"
- android:layout_marginLeft="@dimen/activity_horizontal_margin"
- android:layout_marginRight="@dimen/activity_horizontal_margin"
- android:layout_marginTop="@dimen/activity_vertical_margin"
- android:layout_marginBottom="@dimen/activity_vertical_margin"
android:layout_gravity="center_horizontal"
- android:textAlignment="center" />
+ android:text="@string/touch_to_choose_picture"
+ android:textAlignment="center"
+ android:textColor="?attr/color_text_primary" />
<TextView
android:id="@+id/secondary_hint"
@@ -78,27 +69,24 @@
android:layout_height="wrap_content"
android:layout_below="@id/hint"
android:layout_centerHorizontal="true"
- android:text="@string/or_long_press_for_default"
- android:textColor="@color/black54"
- android:layout_marginBottom="@dimen/activity_vertical_margin"
- android:layout_marginTop="@dimen/activity_vertical_margin"
- android:layout_marginLeft="@dimen/activity_horizontal_margin"
- android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_gravity="center_horizontal"
- android:textAlignment="center" />
+ android:text="@string/or_long_press_for_default"
+ android:textAlignment="center"
+ android:textColor="?attr/color_text_secondary" />
<TextView
android:id="@+id/hint_or_warning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:minLines="3"
- android:textColor="@color/black87"
- android:textSize="?attr/TextSizeBody"
android:textAlignment="center"
- android:layout_gravity="center_horizontal" />
+ android:textColor="?attr/color_text_primary"
+ android:textSize="?attr/TextSizeBody" />
</LinearLayout>
- </LinearLayout>
+ </android.support.v7.widget.CardView>
+
</ScrollView>
<LinearLayout
@@ -120,10 +108,10 @@
<View
android:layout_width="1dp"
- android:layout_height="fill_parent"
+ android:layout_height="match_parent"
android:layout_marginBottom="7dp"
android:layout_marginTop="7dp"
- android:background="@color/black12" />
+ android:background="?attr/color_text_primary" />
<Button
android:id="@+id/publish_button"
@@ -133,7 +121,7 @@
android:layout_weight="1"
android:enabled="false"
android:text="@string/publish"
- android:textColor="@color/black54" />
+ android:textColor="?attr/color_text_primary" />
</LinearLayout>
</RelativeLayout>