|
Android example source code file (styles.xml)
The styles.xml Android example source code<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2007 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> <!-- Base application theme is the default theme. --> <style name="Theme" parent="android:Theme"> </style> <!-- Variation on our application theme that forces a plain text style. --> <style name="Theme.PlainText"> <item name="android:textAppearance">@style/TextAppearance.Theme.PlainText </style> <!-- Variation on our application theme that has a black background. --> <style name="Theme.Black"> <item name="android:windowBackground">@drawable/screen_background_black </style> <!-- A theme for a custom dialog appearance. Here we use an ugly custom frame. --> <style name="Theme.CustomDialog" parent="android:style/Theme.Dialog"> <item name="android:windowBackground">@drawable/filled_box </style> <!-- A theme that has a translucent background. Here we explicitly specify that this theme is to inherit from the system's translucent theme, which sets up various attributes correctly.. --> <style name="Theme.Translucent" parent="android:style/Theme.Translucent"> <item name="android:windowBackground">@drawable/translucent_background <item name="android:windowNoTitle">true <item name="android:colorForeground">#fff </style> <!-- Variation on our application theme that has a transparent background; this example completely removes the background, allowing the activity to decide how to composite. Also here we force the translucency ourself rather than making use of the built-in translucent theme. --> <style name="Theme.Transparent"> <item name="android:windowIsTranslucent">true <item name="android:windowAnimationStyle">@android:style/Animation.Translucent <item name="android:windowBackground">@drawable/transparent_background <item name="android:windowNoTitle">true <item name="android:colorForeground">#fff </style> <style name="TextAppearance.Theme.PlainText" parent="android:TextAppearance.Theme"> <item name="android:textStyle">normal </style> </resources> Other Android examples (source code examples)Here is a short list of links related to this Android styles.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.