[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
Showing
- java/res/layout/dictionary_line.xml 12 additions, 8 deletionsjava/res/layout/dictionary_line.xml
- java/src/com/android/inputmethod/dictionarypack/ButtonSwitcher.java 69 additions, 0 deletions...om/android/inputmethod/dictionarypack/ButtonSwitcher.java
- java/src/com/android/inputmethod/dictionarypack/WordListPreference.java 10 additions, 28 deletions...ndroid/inputmethod/dictionarypack/WordListPreference.java
Please register or sign in to comment