diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-06 00:43:57 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-06 00:43:57 -0700 |
commit | c4e22f5512570d05178711ba90c28eb6dc288253 (patch) | |
tree | 520e84e0956ba886620328642814d3126a852d5d /app/src/main/res/layout | |
parent | 39a09a3ec1b62fe2c82bf1ad067515b1f974472b (diff) | |
download | frost-c4e22f5512570d05178711ba90c28eb6dc288253.tar.gz frost-c4e22f5512570d05178711ba90c28eb6dc288253.tar.bz2 frost-c4e22f5512570d05178711ba90c28eb6dc288253.zip |
Beautify accounts selector
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_selector.xml | 39 | ||||
-rw-r--r-- | app/src/main/res/layout/view_account.xml | 14 |
2 files changed, 32 insertions, 21 deletions
diff --git a/app/src/main/res/layout/activity_selector.xml b/app/src/main/res/layout/activity_selector.xml index f238d2ff..e7332925 100644 --- a/app/src/main/res/layout/activity_selector.xml +++ b/app/src/main/res/layout/activity_selector.xml @@ -4,17 +4,20 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginBottom="@dimen/activity_vertical_margin" - android:layout_marginEnd="@dimen/activity_horizontal_margin" - android:layout_marginStart="@dimen/activity_horizontal_margin" - android:layout_marginTop="@dimen/activity_vertical_margin"> + android:background="@color/facebook_blue" + android:paddingBottom="@dimen/activity_vertical_margin" + android:paddingEnd="@dimen/activity_horizontal_margin" + android:paddingStart="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin"> <android.support.v7.widget.AppCompatTextView android:id="@+id/text_select_account" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" + android:layout_marginTop="@dimen/activity_vertical_margin" android:text="@string/select_facebook_account" + android:textColor="@android:color/white" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" @@ -25,23 +28,25 @@ <android.support.v7.widget.RecyclerView android:id="@+id/selector_recycler" android:layout_width="wrap_content" - android:layout_height="0dp" + android:layout_height="wrap_content" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toStartOf="parent" + app:layout_constraintStart_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/text_select_account" + app:layout_constraintVertical_bias="0.3" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="0dp" /> - <android.support.v7.widget.AppCompatTextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:text="@string/select_facebook_account" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/selector_recycler" - tools:layout_editor_absoluteX="8dp" - tools:layout_editor_absoluteY="0dp" /> + <!--<android.support.v7.widget.AppCompatTextView--> + <!--android:layout_width="wrap_content"--> + <!--android:layout_height="wrap_content"--> + <!--android:layout_gravity="center_horizontal"--> + <!--android:text="@string/select_facebook_account"--> + <!--app:layout_constraintEnd_toEndOf="parent"--> + <!--app:layout_constraintHorizontal_bias="0.5"--> + <!--app:layout_constraintStart_toStartOf="parent"--> + <!--app:layout_constraintTop_toBottomOf="@id/selector_recycler"--> + <!--tools:layout_editor_absoluteX="8dp"--> + <!--tools:layout_editor_absoluteY="0dp" />--> </android.support.constraint.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/view_account.xml b/app/src/main/res/layout/view_account.xml index 676b46d6..92486184 100644 --- a/app/src/main/res/layout/view_account.xml +++ b/app/src/main/res/layout/view_account.xml @@ -7,12 +7,18 @@ <ImageView android:id="@+id/account_image" - android:layout_width="200dp" - android:layout_height="200dp" /> + android:layout_width="@dimen/account_image_size" + android:layout_height="@dimen/account_image_size" /> + + <android.support.v4.widget.Space + android:layout_width="1dp" + android:layout_height="20dp" /> <android.support.v7.widget.AppCompatTextView android:id="@+id/account_text" - android:layout_width="200dp" + android:layout_width="@dimen/account_image_size" android:layout_height="wrap_content" - android:maxLines="1" /> + android:maxLines="1" + android:textAlignment="center" + android:textColor="@android:color/white" /> </LinearLayout>
\ No newline at end of file |