<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/game_title">
I've a preference screen for my app for which I've added the title. When the app gets opened in split screen and resized to different size in window, the title is disappearing when the width present is smaller.
Tried adding,
android:layout_height="wrap_content"
android:layout_width="wrap_content"
property to the PreferenceScreen but it didn't help. Some help would be appreciated.
Like in this answer, you can create a custom layout for the
PreferenceScreenand apply it withandroid:layoutattributepreference_title.xml layout
And create different versions of
res/values/dimen.xmlfile to have variable value of the title text size (@dimen/preference_title) that are proportional to possible screen widths .. typically you'll have different versionsvaluesdirectory, for instance for a screen width of w600dp, you'll havevalues-w600dpdirectory.