首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何更改PreferenceActivity xml样式/主题

如何更改PreferenceActivity xml样式/主题
EN

Stack Overflow用户
提问于 2013-11-21 09:52:25
回答 1查看 1.3K关注 0票数 0

改变背景颜色,分隔色等.Settings.xml

代码语言:javascript
运行
复制
In manifest,
        <activity
        android:name="package.Settings"
        android:screenOrientation="portrait" 
        android:theme="@style/settingslist_row" >
    </activity>

 @Style
 <style name="settingslist_row">
    <item name="android:divider">#FF0000</item>
    <item name="android:textColorSecondary">#87CEEB</item>
    <item name="android:dividerHeight">2dp</item>       
</style>

我的问题是分色不起作用

#FF0000 0000

EN

回答 1

Stack Overflow用户

发布于 2013-11-21 09:58:48

这是我的应用程序布局

代码语言:javascript
运行
复制
<PreferenceCategory android:title="Wallpaper Settings" >

    <PreferenceScreen
        android:key="aliveWallpaperList"
        android:layout="@layout/custom_preferece_layout"
        android:summary="Select your live wallpaper"
        android:title="Video Menu" >
    </PreferenceScreen>

    <Preference
        android:key="download_all_videos_button"
        android:layout="@layout/custom_preferece_layout"
        android:summary="Download all videos in one step"
        android:title="Download all" />

    <!--<CheckBoxPreference
        android:defaultValue="false"
        android:key="RapidCheck"
        android:layout="@layout/custom_preferece_layout"
        android:summary="Turns off server-check.Great once all videos are downloaded"
        android:title="Rapid Video Menu" />

    --><PreferenceScreen
        android:layout="@layout/custom_preferece_layout"
        android:summary="If you have a promo code, enter it here"
        android:title="Promo Code" >

        <intent
            android:targetClass="com.alivewallpaper.free.promocode.PromoCodeVerificationActivity"
            android:targetPackage="com.alivewallpaper.free" />
    </PreferenceScreen>

    <PreferenceScreen
        android:key="addPreference"
        android:layout="@layout/custom_preferece_layout"
        android:summary="Remove ads and get bonus videos and features"
        android:title="Remove Advertising" >
    </PreferenceScreen>
    <PreferenceScreen
        android:key="License"
        android:layout="@layout/custom_preferece_layout"
        android:summary="Terms of use"
        android:title="License " >
    </PreferenceScreen><!--
    <PreferenceScreen
        android:key="freezeWallpaper"
        android:layout="@layout/custom_preferece_layout"
        android:summary="Freeze the video wallpaper"
        android:title="Freeze" >
    </PreferenceScreen>
--></PreferenceCategory>

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20117526

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档