Skip to content

Commit

Permalink
Feature align text (#81)
Browse files Browse the repository at this point in the history
* Align text in Action and Title item.

* misc update
  • Loading branch information
daniel-stoneuk authored Apr 15, 2018
1 parent 767d9b5 commit 4f8f7ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions library/src/main/res/layout/mal_material_about_action_item.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/mal_baseline_half"
android:paddingBottom="@dimen/mal_baseline_half"
android:orientation="horizontal">
android:paddingStart="8dp"
android:orientation="horizontal"
android:paddingLeft="8dp">

<ImageView
android:id="@+id/mal_item_image"
Expand Down Expand Up @@ -38,15 +41,18 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
android:textColor="?mal_color_primary" />
android:textColor="?mal_color_primary"
tools:text="Version" />

<TextView
android:id="@+id/mal_action_item_subtext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?mal_color_secondary"
android:visibility="gone" />
android:visibility="gone"
tools:visibility="visible"
tools:text="Current Version Of App" />
</LinearLayout>

</LinearLayout>
7 changes: 5 additions & 2 deletions library/src/main/res/layout/mal_material_about_title_item.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
Expand Down Expand Up @@ -40,7 +41,8 @@
android:layout_marginLeft="@dimen/mal_baseline_half"
android:layout_marginStart="@dimen/mal_baseline_half"
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
android:textColor="?mal_color_primary" />
android:textColor="?mal_color_primary"
tools:text="App Name" />

<TextView
android:id="@+id/mal_item_desc"
Expand All @@ -50,7 +52,8 @@
android:layout_marginStart="@dimen/mal_baseline_half"
android:layout_marginTop="-4dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="?mal_color_secondary" />
android:textColor="?mal_color_secondary"
tools:text="Copyright Me" />

</LinearLayout>

Expand Down

0 comments on commit 4f8f7ea

Please sign in to comment.