mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21c449fd93
This avoids using "@android:style/TextAppearance" or "@android:style/{TextView,Button,EditText}" and avoids a crash on pre-Gingerbread devices.
125 lines
5.2 KiB
XML
125 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
<resources>
|
|
<style name="SyncLayout">
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">fill_parent</item>
|
|
</style>
|
|
<style name="SyncLayout.Vertical" parent="@style/SyncLayout">
|
|
<item name="android:orientation">vertical</item>
|
|
</style>
|
|
<style name="SyncLayout.Horizontal" parent="@style/SyncLayout">
|
|
<item name="android:orientation">horizontal</item>
|
|
</style>
|
|
|
|
<!-- TextView Styles -->
|
|
<style name="SyncTextFrame" parent="@style/TextAppearance">
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">fill_parent</item>
|
|
<item name="android:layout_gravity">center</item>
|
|
<item name="android:padding">@dimen/SyncSpace</item>
|
|
<item name="android:orientation">vertical</item>
|
|
</style>
|
|
<style name="SyncTextItem" parent="@style/TextAppearance.Medium">
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:textSize">15dp</item>
|
|
</style>
|
|
<style name="SyncTextError" parent="@style/SyncTextItem">
|
|
<item name="android:textSize">15dp</item>
|
|
<item name="android:visibility">gone</item>
|
|
</style>
|
|
<style name="SyncLinkItem" parent="@style/SyncTextItem">
|
|
<item name="android:clickable">true</item>
|
|
<item name="android:textColor">#0000EE</item>
|
|
</style>
|
|
<style name="SyncTextTitle" parent="@style/SyncTextItem">
|
|
<item name="android:layout_gravity">center_vertical</item>
|
|
<item name="android:paddingLeft">4dp</item>
|
|
<item name="android:gravity">left</item>
|
|
<item name="android:textSize">20dp</item>
|
|
</style>
|
|
<!-- EditView Styles -->
|
|
<style name="SyncEditItem" parent="@style/Widget.EditText">
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:singleLine">true</item>
|
|
<item name="android:inputType">text|textNoSuggestions</item>
|
|
</style>
|
|
<style name="SyncEditPin" parent="@style/SyncEditItem">
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:gravity">center_horizontal</item>
|
|
<item name="android:ems">4</item>
|
|
<item name="android:maxLength">4</item>
|
|
<item name="android:imeOptions">actionNext|flagNoExtractUi</item>
|
|
</style>
|
|
|
|
<!-- Theme Styles -->
|
|
<style name="SyncTheme" parent="@style/Gecko" />
|
|
|
|
<!-- Outer container: a container with top, middle, and bottom
|
|
content in it. -->
|
|
<style name="SyncContainer" parent="@style/SyncLayout.Vertical" />
|
|
|
|
<!-- Top title bar: a text view with the Sync icon to the left. -->
|
|
<style name="SyncTop">
|
|
<item name="android:textAppearance">@style/TextAppearance.Large</item>
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:gravity">center_vertical|left</item>
|
|
<item name="android:drawableLeft">@drawable/icon</item>
|
|
<item name="android:padding">4dp</item>
|
|
<item name="android:drawablePadding">4dp</item>
|
|
<item name="android:background">@android:drawable/bottom_bar</item>
|
|
</style>
|
|
|
|
<dimen name="SyncSpace">20dp</dimen>
|
|
|
|
<!-- Middle scroller: a scroll view with content in it. -->
|
|
<style name="SyncMiddle">
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">0dp</item>
|
|
<item name="android:layout_weight">1</item>
|
|
<item name="android:padding">@dimen/SyncSpace</item>
|
|
</style>
|
|
|
|
<!-- Bottom bar: a horizontal linear layout with buttons in it. -->
|
|
<style name="SyncBottom">
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_gravity">center</item>
|
|
<item name="android:gravity">center</item>
|
|
<item name="android:background">@android:drawable/bottom_bar</item>
|
|
</style>
|
|
|
|
<style name="SyncBottomContainer">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:divider">@android:drawable/divider_horizontal_bright</item>
|
|
<item name="android:showDividers">beginning</item>
|
|
<item name="android:orientation">vertical</item>
|
|
</style>
|
|
|
|
<style name="SyncButton" parent="@style/Widget.Button">
|
|
<item name="android:layout_width">fill_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_weight">1</item>
|
|
</style>
|
|
|
|
<!-- Text Display Styles -->
|
|
<style name="SyncPinText" parent="@style/Widget.TextView">
|
|
<item name="android:layout_width">130sp</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_gravity">center</item>
|
|
<item name="android:layout_marginBottom">5dp</item>
|
|
<item name="android:gravity">center</item>
|
|
<item name="android:background">@drawable/pin_background</item>
|
|
<item name="android:textColor">#000</item>
|
|
<item name="android:textSize">35sp</item>
|
|
<item name="android:text">@string/sync_pin_default</item>
|
|
</style>
|
|
</resources>
|