]> gitweb.fperrin.net Git - Dictionary.git/blob - res/layout/dictionary_manager_row.xml
Accessibility fixes: set description for flag images.
[Dictionary.git] / res / layout / dictionary_manager_row.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:tools="http://schemas.android.com/tools"
4     android:layout_width="match_parent"
5     android:layout_height="match_parent"
6     android:orientation="vertical" >
7
8     <LinearLayout
9         android:layout_width="match_parent"
10         android:layout_height="wrap_content"
11         android:orientation="horizontal" >
12
13         <LinearLayout
14             android:id="@+id/dictionaryLauncherButtons"
15             android:layout_width="wrap_content"
16             android:layout_height="wrap_content"
17             android:orientation="horizontal"
18             android:paddingRight="5dip" >
19             <Button android:layout_width="60dip" android:layout_height="40dip" />
20             <ImageButton android:layout_width="60dip" android:layout_height="40dip"
21                 android:contentDescription="first language"
22                 tools:ignore="HardcodedText" />
23             <Button android:layout_width="60dip" android:layout_height="40dip" />
24             <ImageButton android:layout_width="60dip" android:layout_height="40dip"
25                 android:contentDescription="second language"
26                 tools:ignore="HardcodedText" />
27         </LinearLayout>
28
29         <!--
30         http://stackoverflow.com/questions/11243867/android-last-line-of-textview-cut-off
31          -->
32         <TextView
33             android:id="@+id/dictionaryName"
34             android:layout_width="0dp"
35             android:layout_height="wrap_content"
36             android:layout_weight="1"
37             android:text="English-German"
38             android:textAppearance="?android:attr/textAppearanceMedium"
39             android:layout_gravity="center_vertical"
40             tools:ignore="HardcodedText" />
41
42         <Button
43             android:id="@+id/downloadButton"
44             android:layout_width="wrap_content"
45             android:layout_height="wrap_content"
46             android:drawableRight="@drawable/ic_action_download"
47             android:textAppearance="?android:attr/textAppearanceSmall"
48             android:text="@string/downloadButton" />
49     </LinearLayout>
50
51     <TextView
52         android:id="@+id/dictionaryDetails"
53         android:layout_width="fill_parent"
54         android:layout_height="0dip"
55         android:layout_weight="1"
56         android:text="@string/indexInfo"
57         android:textAppearance="?android:attr/textAppearanceSmall"
58         tools:ignore="HardcodedText" />
59
60 </LinearLayout>