Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** |
| 5 | ** Copyright 2012, The Android Open Source Project |
| 6 | ** |
| 7 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | ** you may not use this file except in compliance with the License. |
| 9 | ** You may obtain a copy of the License at |
| 10 | ** |
| 11 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | ** |
| 13 | ** Unless required by applicable law or agreed to in writing, software |
| 14 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | ** See the License for the specific language governing permissions and |
| 17 | ** limitations under the License. |
| 18 | */ |
| 19 | --> |
| 20 | <!-- TODO: Remove paddingRight, layout_marginLeft, layout_marginRight for API version 17+ --> |
| 21 | <LinearLayout |
| 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 24 | android:gravity="center_vertical" |
| 25 | android:paddingRight="?android:attr/scrollbarSize" |
| 26 | android:paddingEnd="?android:attr/scrollbarSize" |
| 27 | android:background="?android:attr/selectableItemBackground" |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:layout_marginLeft="15dip" |
| 31 | android:layout_marginStart="15dip" |
| 32 | android:layout_marginRight="6dip" |
| 33 | android:layout_marginEnd="6dip" |
| 34 | android:layout_marginTop="6dip" |
| 35 | android:layout_marginBottom="6dip" |
| 36 | android:layout_weight="1"> |
| 37 | |
| 38 | <LinearLayout |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:layout_weight="1" |
| 42 | android:orientation="vertical"> |
| 43 | |
| 44 | <TextView |
Adam Lesinski | 753d43a | 2014-06-09 17:04:49 -0700 | [diff] [blame] | 45 | android:id="@android:id/title" |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 46 | android:layout_marginLeft="5dip" |
| 47 | android:layout_marginStart="5dip" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:singleLine="true" |
| 51 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 52 | android:ellipsize="marquee" |
| 53 | android:fadingEdge="horizontal" /> |
| 54 | |
Jean Chalard | ab0c66b | 2013-04-24 20:31:39 +0900 | [diff] [blame] | 55 | <FrameLayout |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 56 | android:layout_width="match_parent" |
| 57 | android:layout_height="wrap_content" |
Jean Chalard | b15e822 | 2013-05-01 18:45:24 +0900 | [diff] [blame] | 58 | android:layout_marginStart="5dip" |
| 59 | android:layout_marginLeft="5dip"> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 60 | |
Jean Chalard | ab0c66b | 2013-04-24 20:31:39 +0900 | [diff] [blame] | 61 | <TextView |
Adam Lesinski | 753d43a | 2014-06-09 17:04:49 -0700 | [diff] [blame] | 62 | android:id="@android:id/summary" |
Jean Chalard | ab0c66b | 2013-04-24 20:31:39 +0900 | [diff] [blame] | 63 | android:layout_width="match_parent" |
| 64 | android:layout_height="wrap_content" |
| 65 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 66 | android:textColor="?android:attr/textColorSecondary" |
| 67 | android:maxLines="1" /> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 68 | |
Jean Chalard | fc26033 | 2013-04-24 20:56:06 +0900 | [diff] [blame] | 69 | <com.android.inputmethod.dictionarypack.DictionaryDownloadProgressBar |
Jean Chalard | ab0c66b | 2013-04-24 20:31:39 +0900 | [diff] [blame] | 70 | android:id="@+id/dictionary_line_progress_bar" |
| 71 | style="@android:style/Widget.Holo.ProgressBar.Horizontal" |
| 72 | android:layout_width="match_parent" |
| 73 | android:layout_height="match_parent" |
| 74 | android:gravity="center" /> |
| 75 | |
| 76 | </FrameLayout> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 77 | </LinearLayout> |
| 78 | |
Jean Chalard | 2cf450f | 2013-04-24 14:48:29 +0900 | [diff] [blame] | 79 | <com.android.inputmethod.dictionarypack.ButtonSwitcher |
Adam Lesinski | 753d43a | 2014-06-09 17:04:49 -0700 | [diff] [blame] | 80 | android:id="@+id/wordlist_button_switcher" |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 81 | android:layout_weight="0" |
Jean Chalard | 7eff677 | 2013-04-30 17:54:09 +0900 | [diff] [blame] | 82 | android:layout_marginStart="13dip" |
| 83 | android:layout_marginLeft="13dip" |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 84 | android:layout_width="wrap_content" |
Jean Chalard | 2cf450f | 2013-04-24 14:48:29 +0900 | [diff] [blame] | 85 | android:layout_height="wrap_content"> |
| 86 | <Button |
Adam Lesinski | 753d43a | 2014-06-09 17:04:49 -0700 | [diff] [blame] | 87 | android:id="@+id/dict_install_button" |
Jean Chalard | 2cf450f | 2013-04-24 14:48:29 +0900 | [diff] [blame] | 88 | android:layout_width="wrap_content" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:layout_gravity="right|center_vertical" |
| 91 | android:singleLine="true" |
| 92 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 93 | android:text="@string/install_dict" /> |
Jean Chalard | 2d72590 | 2013-04-24 14:55:21 +0900 | [diff] [blame] | 94 | <Button |
Adam Lesinski | 753d43a | 2014-06-09 17:04:49 -0700 | [diff] [blame] | 95 | android:id="@+id/dict_cancel_button" |
Jean Chalard | 2d72590 | 2013-04-24 14:55:21 +0900 | [diff] [blame] | 96 | android:layout_width="wrap_content" |
| 97 | android:layout_height="wrap_content" |
| 98 | android:layout_gravity="right|center_vertical" |
| 99 | android:singleLine="true" |
| 100 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 101 | android:text="@string/cancel_download_dict" /> |
| 102 | <Button |
Adam Lesinski | 753d43a | 2014-06-09 17:04:49 -0700 | [diff] [blame] | 103 | android:id="@+id/dict_delete_button" |
Jean Chalard | 2d72590 | 2013-04-24 14:55:21 +0900 | [diff] [blame] | 104 | android:layout_width="wrap_content" |
| 105 | android:layout_height="wrap_content" |
| 106 | android:layout_gravity="right|center_vertical" |
| 107 | android:singleLine="true" |
| 108 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 109 | android:text="@string/delete_dict" /> |
Jean Chalard | 2cf450f | 2013-04-24 14:48:29 +0900 | [diff] [blame] | 110 | </com.android.inputmethod.dictionarypack.ButtonSwitcher> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 111 | </LinearLayout> |