diff options
author | 2013-04-24 14:48:29 +0900 | |
---|---|---|
committer | 2013-04-25 12:25:25 +0900 | |
commit | 2cf450f48283bcf1452cb717b7ae3a9f0c729105 (patch) | |
tree | e23fc72c4380e40938a4ab0bf96cf83b5cede16b /java/res | |
parent | e91387e281869cb93abb46720b7a80098946d80f (diff) | |
download | latinime-2cf450f48283bcf1452cb717b7ae3a9f0c729105.tar.gz latinime-2cf450f48283bcf1452cb717b7ae3a9f0c729105.tar.xz latinime-2cf450f48283bcf1452cb717b7ae3a9f0c729105.zip |
[PB6] Encapsulate the buttons into a view
Handling buttons directly in the preference causes large
problems of code readability and interface. It's better to
have a class to manage the buttons and their animations
separately. This is feature-equivalent, and mostly
delegates stuff for now.
Bug: 7600384
Change-Id: Ia8da0ec68ffac84fc1d65e1760539a87a73fa776
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/layout/dictionary_line.xml | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/java/res/layout/dictionary_line.xml b/java/res/layout/dictionary_line.xml index a8d15ab73..9eeea697e 100644 --- a/java/res/layout/dictionary_line.xml +++ b/java/res/layout/dictionary_line.xml @@ -71,14 +71,18 @@ </LinearLayout> - <Button - android:id="@+android:id/wordlist_button" + <com.android.inputmethod.dictionarypack.ButtonSwitcher + android:id="@+android:id/wordlist_button_switcher" android:layout_weight="0" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="right|center_vertical" - android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceMedium" - android:text="@string/install_dict" /> - + android:layout_height="wrap_content"> + <Button + android:id="@+android:id/dict_install_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right|center_vertical" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/install_dict" /> + </com.android.inputmethod.dictionarypack.ButtonSwitcher> </LinearLayout> |