diff options
author | 2012-09-05 15:34:51 +0900 | |
---|---|---|
committer | 2012-09-05 20:38:00 +0900 | |
commit | e8c6d5a480987a1b5d8c3455512f7d75c8fe1de4 (patch) | |
tree | 938ce8ffab9d41d82ad022fdb6a548de1e0f36ff /java/res/layout | |
parent | 2a2b5edc21c9bbea0ee172baf4b90053ceff98b5 (diff) | |
download | latinime-e8c6d5a480987a1b5d8c3455512f7d75c8fe1de4.tar.gz latinime-e8c6d5a480987a1b5d8c3455512f7d75c8fe1de4.tar.xz latinime-e8c6d5a480987a1b5d8c3455512f7d75c8fe1de4.zip |
Utilize StateListDrawable for key preview background
Change-Id: I268550a185701caecefc27ebaec40fb2c940d883
Diffstat (limited to 'java/res/layout')
-rw-r--r-- | java/res/layout/key_preview.xml | 6 | ||||
-rw-r--r-- | java/res/layout/key_preview_ics.xml | 27 |
2 files changed, 30 insertions, 3 deletions
diff --git a/java/res/layout/key_preview.xml b/java/res/layout/key_preview.xml index 6ed892e28..2fcd0c4dd 100644 --- a/java/res/layout/key_preview.xml +++ b/java/res/layout/key_preview.xml @@ -20,8 +20,8 @@ <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" - android:layout_height="80dp" - android:textSize="40dp" + android:layout_height="wrap_content" + android:background="@drawable/keyboard_key_feedback" android:minWidth="32dp" android:gravity="center" - /> +/> diff --git a/java/res/layout/key_preview_ics.xml b/java/res/layout/key_preview_ics.xml new file mode 100644 index 000000000..222e8846c --- /dev/null +++ b/java/res/layout/key_preview_ics.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2012, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/keyboard_key_feedback_ics" + android:minWidth="32dp" + android:gravity="center" +/> |