Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d0f0d2c authored by Amith Yamasani's avatar Amith Yamasani
Browse files

No frame and margins for dialog style preference screens.

Bug: 3246757
parent 41e7e6f9
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -30,18 +30,14 @@


        <LinearLayout
        <LinearLayout
            android:id="@+id/headers"
            android:id="@+id/headers"
            style="?attr/preferencePanelStyle"
            android:orientation="vertical"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_height="match_parent"
            android:layout_marginRight="@dimen/preference_screen_side_margin"
            android:layout_marginLeft="@dimen/preference_screen_side_margin"
            android:layout_marginTop="48dp"
            android:layout_marginBottom="48dp"
            android:paddingLeft="32dip"
            android:paddingLeft="32dip"
            android:paddingRight="32dip"
            android:paddingRight="32dip"
            android:paddingTop="32dip"
            android:paddingTop="32dip"
            android:paddingBottom="32dip"
            android:paddingBottom="32dip" >
            android:background="?attr/preferencePanelBackground">


            <ListView android:id="@android:id/list"
            <ListView android:id="@android:id/list"
                android:layout_width="match_parent"
                android:layout_width="match_parent"
+2 −0
Original line number Original line Diff line number Diff line
@@ -19,9 +19,11 @@
<resources>
<resources>
    <style name="Theme.Holo.DialogWhenLarge"
    <style name="Theme.Holo.DialogWhenLarge"
            parent="@android:style/Theme.Holo.Dialog">
            parent="@android:style/Theme.Holo.Dialog">
        <item name="preferencePanelStyle">@style/PreferencePanel.Dialog</item>
    </style>
    </style>
    <style name="Theme.Holo.DialogWhenLarge.NoActionBar"
    <style name="Theme.Holo.DialogWhenLarge.NoActionBar"
            parent="@android:style/Theme.Holo.Dialog.NoActionBar">
            parent="@android:style/Theme.Holo.Dialog.NoActionBar">
        <item name="preferencePanelStyle">@style/PreferencePanel.Dialog</item>
    </style>
    </style>
    <style name="Theme.Holo.Light.DialogWhenLarge"
    <style name="Theme.Holo.Light.DialogWhenLarge"
            parent="@android:style/Theme.Holo.Light.Dialog">
            parent="@android:style/Theme.Holo.Light.Dialog">
+8 −0
Original line number Original line Diff line number Diff line
@@ -34,5 +34,13 @@
    <style name="TextAppearance.StatusBar.EventContent.Title">
    <style name="TextAppearance.StatusBar.EventContent.Title">
        <item name="android:textColor">?android:attr/textColorPrimary</item>
        <item name="android:textColor">?android:attr/textColorPrimary</item>
    </style>
    </style>

    <style name="PreferencePanel">
        <item name="android:layout_marginLeft">@dimen/preference_screen_side_margin</item>
        <item name="android:layout_marginRight">@dimen/preference_screen_side_margin</item>
        <item name="android:layout_marginTop">48dip</item>
        <item name="android:layout_marginBottom">48dip</item>
        <item name="android:background">?attr/preferencePanelBackground</item>
    </style>
</resources>
</resources>
+2 −0
Original line number Original line Diff line number Diff line
@@ -606,6 +606,8 @@
        <attr name="preferenceLayoutChild" format="reference" />
        <attr name="preferenceLayoutChild" format="reference" />
        <!-- Preference panel background -->
        <!-- Preference panel background -->
        <attr name="preferencePanelBackground" format="reference" />
        <attr name="preferencePanelBackground" format="reference" />
        <!-- Preference panel style -->
        <attr name="preferencePanelStyle" format="reference" />


        <!-- ============================ -->
        <!-- ============================ -->
        <!-- Text selection handle styles -->
        <!-- Text selection handle styles -->
+14 −0
Original line number Original line Diff line number Diff line
@@ -915,6 +915,20 @@
        <item name="android:widgetLayout">@android:layout/preference_dialog</item>
        <item name="android:widgetLayout">@android:layout/preference_dialog</item>
    </style>
    </style>


    <!-- No margins or background by default. Could be different for x-large screens -->
    <style name="PreferencePanel">
    </style>

    <!-- The attributes are overridden here because the x-large or large resources may have
         changed the margins and background in the parent PreferencePanel style. -->
    <style name="PreferencePanel.Dialog">
        <item name="android:layout_marginLeft">0dip</item>
        <item name="android:layout_marginRight">0dip</item>
        <item name="android:layout_marginTop">0dip</item>
        <item name="android:layout_marginBottom">0dip</item>
        <item name="android:background">@null</item>
    </style>

    <!-- Other Misc Styles -->
    <!-- Other Misc Styles -->
    <eat-comment />
    <eat-comment />


Loading