Files
android_development/samples/AutofillKeyboard/res/values/styles.xml
Svet Ganov f34c6275f1 Update the sample keyboard to showcase scroll, clip, toggle
The keyboard now showcases how one can implement a suggestion
strip with some pinned suggestions on the left and the right
of the strip and the strip suggestions are scrollable and well
as clipped to the scroll are's bounds. Also this showcases
how to toggle the layering of the suggestions to temporary
amimate on top of them. Fun, fun fun :)

bug:1234567

Change-Id: I7f2a6ea148de31be7cd0f13f56d72f6e5246a5f8
2020-04-08 03:10:53 +00:00

96 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2019, 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.
*/
-->
<resources>
<style name="KeyboardArea">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">bottom</item>
<item name="android:orientation">vertical</item>
<item name="android:gravity">bottom</item>
</style>
<style name="KeyboardRow">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">@dimen/keyboard_row_height</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">#FFFFFFFF</item>
</style>
<style name="PinnedSuggestionArea">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">@dimen/keyboard_header_height</item>
<item name="android:layout_weight">0</item>
<item name="android:background">@color/suggestion_strip_background</item>
</style>
<style name="KeyboardRow.Header">
<item name="android:layout_height">@dimen/keyboard_header_height</item>
<item name="android:background">@android:color/transparent</item>
</style>
<style name="SoftKey">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:gravity">center</item>
<item name="android:textColor">#FF000000</item>
<item name="android:textSize">@dimen/text_size_normal</item>
</style>
<style name="SoftKey.Function">
<item name="android:textColor">#FF333333</item>
</style>
<style name="SoftKey.Function.Text">
<item name="android:textColor">#FF333333</item>
<item name="android:textSize">@dimen/text_size_symbol</item>
</style>
<style name="SoftKey.Space">
<item name="android:layout_weight">5</item>
<item name="android:textColor">#FF333333</item>
</style>
<style name="YellowText" parent="@android:style/TextAppearance">
<item name="android:textColor">#FFFF00</item>
<item name="android:background">#88FF00FF</item>
<!-- This theme will be invalid -->
<item name="android:fontFamily">@font/just_another_hand</item>
</style>
<style name="GreenText" parent="@android:style/TextAppearance">
<item name="android:textColor">#00FF00</item>
<item name="android:fontFamily">monospace</item>
</style>
<style name="PinkBackground">
<item name="android:background">#33FF00FF</item>
</style>
<style name="YellowTheme" parent="@style/Theme.AutofillInlineSuggestion">
<item name="autofillInlineSuggestionTitle">@style/YellowText</item>
<item name="autofillInlineSuggestionSubtitle">@style/YellowText</item>
</style>
<style name="GreenTheme" parent="@style/Theme.AutofillInlineSuggestion">
<item name="autofillInlineSuggestionChip">@style/PinkBackground</item>
<item name="autofillInlineSuggestionTitle">@style/GreenText</item>
<item name="autofillInlineSuggestionSubtitle">@style/GreenText</item>
</style>
</resources>