Allow settings preference title to span over multiple lines.
- add singleLineTitle=false to SettingsPreference style, so that it will not confined the title to a single line. - remove the custom multi line title from DividerPreference and MasterSwitchPreference. Change-Id: I5a78d2cd6ac00c4482e252b0789fd2d265bd9adf Fix: 34886787 Test: manual
This commit is contained in:
@@ -136,7 +136,6 @@
|
||||
<declare-styleable name="DividerPreference">
|
||||
<attr name="allowDividerAbove" format="boolean" />
|
||||
<attr name="allowDividerBelow" format="boolean" />
|
||||
<attr name="multiLine" format="boolean" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- For GesturePreference -->
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
<style name="SettingsPreference">
|
||||
<item name="allowDividerAbove">false</item>
|
||||
<item name="allowDividerBelow">true</item>
|
||||
<item name="singleLineTitle">false</item>
|
||||
<item name="android:layout">@layout/preference_material_settings</item>
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user