diff options
author | 2010-12-06 21:26:38 +0900 | |
---|---|---|
committer | 2010-12-08 16:55:36 +0900 | |
commit | e49bd1c43acad08f103b38430a8bbcba23f325b3 (patch) | |
tree | 8c4cee6b9ab4340ff73b0ebf2ff151bbacab921b /java/res/drawable | |
parent | ada7ad2b0d0e0f1c908104fd4c7b6fda8ceab87f (diff) | |
download | latinime-e49bd1c43acad08f103b38430a8bbcba23f325b3.tar.gz latinime-e49bd1c43acad08f103b38430a8bbcba23f325b3.tar.xz latinime-e49bd1c43acad08f103b38430a8bbcba23f325b3.zip |
Implement CandidateView using HorizontalScrollView
This change re-implements CandidateView using HorizontalScrollView and
customized Button, so that the candidate strip can be flingable.
This change also introduces the following features.
- Highlighting candidate strip and space bar is configurable by
@bool/config_candidate_highlight_enabled.
- Candidate strip can be centered with left/right padding if
@dimen/candidate_strip_padding size is greater than 0.
- Candidate text size is configurable by @dimen/candidate_text_size.
Bug: 1575885
Bug: 3230726
Change-Id: Iedf78ff31bc9f2f6291a8e8fb7faa0e6b961dd6d
Diffstat (limited to 'java/res/drawable')
-rw-r--r-- | java/res/drawable/btn_candidate.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/java/res/drawable/btn_candidate.xml b/java/res/drawable/btn_candidate.xml new file mode 100644 index 000000000..b0c1c3038 --- /dev/null +++ b/java/res/drawable/btn_candidate.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2010, 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. +*/ +--> + +<selector + xmlns:android="http://schemas.android.com/apk/res/android" +> + <item + android:state_pressed="true" + android:drawable="@drawable/btn_candidate_pressed" /> + <item + android:drawable="@drawable/btn_candidate_normal" /> +</selector> |