Change result view: put kanji on top.
app/src/main/res/layout/layout_result.xml
| 1 | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + | xmlns:tools="http://schemas.android.com/tools" | |
| 3 | 4 | android:layout_width="match_parent" | |
| 4 | 5 | android:layout_height="wrap_content" | |
| 5 | 6 | xmlns:app="http://schemas.android.com/apk/res-auto" | |
| 6 | - | android:layout_marginBottom="32dp"> | |
| 7 | - | ||
| 8 | - | <se.fekete.furiganatextview.furiganaview.FuriganaTextView | |
| 9 | - | android:id="@+id/kanji_view" | |
| 10 | - | android:layout_width="wrap_content" | |
| 11 | - | android:layout_height="wrap_content" | |
| 12 | - | android:layout_gravity="center" | |
| 13 | - | android:layout_weight="0" | |
| 14 | - | android:layout_marginLeft="8dp" | |
| 15 | - | android:layout_marginStart="8dp" | |
| 16 | - | android:contentDescription="@string/kanji_description" | |
| 17 | - | android:textIsSelectable="true" | |
| 18 | - | app:contains_ruby_tags="true" | |
| 19 | - | android:textSize="@dimen/title_size" /> | |
| 20 | - | ||
| 21 | - | <TextView | |
| 22 | - | android:layout_width="wrap_content" | |
| 23 | - | android:layout_height="wrap_content" | |
| 24 | - | android:id="@+id/pitch_view" | |
| 25 | - | android:visibility="gone" | |
| 26 | - | android:layout_gravity="center" | |
| 27 | - | android:background="@drawable/ic_pitch_border" | |
| 28 | - | android:layout_margin="8dp" | |
| 29 | - | android:paddingBottom="4dp" | |
| 30 | - | android:paddingTop="4dp" | |
| 31 | - | android:paddingLeft="8dp" | |
| 32 | - | android:paddingRight="8dp" /> | |
| 7 | + | android:layout_marginBottom="32dp" | |
| 8 | + | android:orientation="vertical"> | |
| 33 | 9 | ||
| 34 | 10 | <LinearLayout | |
| 35 | 11 | android:layout_width="wrap_content" | |
| 36 | 12 | android:layout_height="wrap_content" | |
| 37 | 13 | android:layout_gravity="center" | |
| 38 | - | android:layout_weight="100" | |
| 39 | - | android:orientation="vertical"> | |
| 14 | + | android:orientation="horizontal"> | |
| 40 | 15 | ||
| 41 | - | <LinearLayout | |
| 42 | - | android:orientation="vertical" | |
| 43 | - | android:id="@+id/sense_view" | |
| 44 | - | android:layout_width="match_parent" | |
| 45 | - | android:layout_height="0dp" | |
| 46 | - | android:layout_weight="1"> | |
| 47 | 16 | ||
| 48 | - | </LinearLayout> | |
| 49 | - | ||
| 50 | - | <TextView | |
| 51 | - | android:id="@+id/additional_info_view" | |
| 17 | + | <se.fekete.furiganatextview.furiganaview.FuriganaTextView | |
| 18 | + | android:id="@+id/kanji_view" | |
| 52 | 19 | android:layout_width="match_parent" | |
| 53 | 20 | android:layout_height="wrap_content" | |
| 54 | - | android:layout_marginStart="8dp" | |
| 55 | 21 | android:layout_marginLeft="8dp" | |
| 56 | - | android:layout_marginTop="8dp" | |
| 57 | - | android:layout_marginEnd="8dp" | |
| 22 | + | android:layout_marginStart="8dp" | |
| 58 | 23 | android:layout_marginRight="8dp" | |
| 59 | - | android:textIsSelectable="true" /> | |
| 24 | + | android:layout_marginEnd="8dp" | |
| 25 | + | android:textAlignment="center" | |
| 26 | + | android:contentDescription="@string/kanji_description" | |
| 27 | + | android:textIsSelectable="true" | |
| 28 | + | app:contains_ruby_tags="true" | |
| 29 | + | android:textSize="@dimen/title_size" | |
| 30 | + | android:gravity="center_horizontal" /> | |
| 31 | + | ||
| 32 | + | <TextView | |
| 33 | + | android:layout_width="wrap_content" | |
| 34 | + | android:layout_height="wrap_content" | |
| 35 | + | android:id="@+id/pitch_view" | |
| 36 | + | android:visibility="gone" | |
| 37 | + | android:layout_gravity="center" | |
| 38 | + | android:background="@drawable/ic_pitch_border" | |
| 39 | + | android:layout_margin="8dp" | |
| 40 | + | android:paddingBottom="4dp" | |
| 41 | + | android:paddingTop="4dp" | |
| 42 | + | android:paddingLeft="8dp" | |
| 43 | + | android:paddingRight="8dp" /> | |
| 60 | 44 | </LinearLayout> | |
| 45 | + | ||
| 46 | + | <LinearLayout | |
| 47 | + | android:orientation="vertical" | |
| 48 | + | android:id="@+id/sense_view" | |
| 49 | + | android:layout_width="match_parent" | |
| 50 | + | android:layout_height="0dp" | |
| 51 | + | android:layout_weight="1"> | |
| 52 | + | ||
| 53 | + | </LinearLayout> | |
| 54 | + | ||
| 55 | + | <TextView | |
| 56 | + | android:id="@+id/additional_info_view" | |
| 57 | + | android:layout_width="match_parent" | |
| 58 | + | android:layout_height="wrap_content" | |
| 59 | + | android:layout_marginStart="8dp" | |
| 60 | + | android:layout_marginLeft="8dp" | |
| 61 | + | android:layout_marginTop="8dp" | |
| 62 | + | android:layout_marginEnd="8dp" | |
| 63 | + | android:layout_marginRight="8dp" | |
| 64 | + | android:textIsSelectable="true" /> | |
| 61 | 65 | </LinearLayout> | |
| 61 | 65 | = | |
| 62 | 66 | = | \ No newline at end of file |