diff options
author | Allan Wang <me@allanwang.ca> | 2017-11-22 12:49:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 12:49:56 -0500 |
commit | f619522bd805e0e090fe9d47ed7b23c4210c634d (patch) | |
tree | 1a1637dc498b7ad16cbabab1716aed343a9db954 /app/src/main/res/layout/view_badged_icon.xml | |
parent | f6499a8741b8234770ba61c003f8065da041cdfe (diff) | |
download | frost-f619522bd805e0e090fe9d47ed7b23c4210c634d.tar.gz frost-f619522bd805e0e090fe9d47ed7b23c4210c634d.tar.bz2 frost-f619522bd805e0e090fe9d47ed7b23c4210c634d.zip |
Fix/tab layout (#510)
* Test wrap content width
* Compute badge icon dimensions
* Reuse views
* Remove unnecessary color set
* Change image bound
* Set min
* Change dp
* Snapshot
* Hardcode dimensions
* Add min width
Diffstat (limited to 'app/src/main/res/layout/view_badged_icon.xml')
-rw-r--r-- | app/src/main/res/layout/view_badged_icon.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/res/layout/view_badged_icon.xml b/app/src/main/res/layout/view_badged_icon.xml index cc6b16cc..c64e7809 100644 --- a/app/src/main/res/layout/view_badged_icon.xml +++ b/app/src/main/res/layout/view_badged_icon.xml @@ -3,11 +3,12 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="50dp"> + android:layout_height="@dimen/tab_bar_height" + android:minWidth="@dimen/tab_bar_height"> <android.support.constraint.Guideline android:id="@+id/g_v_c" - android:layout_width="1dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" app:layout_constraintGuide_percent="0.5" @@ -17,7 +18,7 @@ <android.support.constraint.Guideline android:id="@+id/g_h_c" android:layout_width="wrap_content" - android:layout_height="1dp" + android:layout_height="wrap_content" android:orientation="horizontal" app:layout_constraintGuide_percent="0.5" tools:layout_editor_absoluteX="0dp" |