I have a class that extends EditTextPreference, and I use it in my own layout, for example:
<com.app.MyEditTextPreference
android:key="@string/key"
android:title="@string/title"
android:summary="@string/summary"
android:dialogTitle="@string/title"
android:dialogMessage="@string/message"
android:layout="@layout/preference_edittext"/>
My application theme inherits from Theme.AppCompat.Light.DarkActionBar, and I changed the text size values:
<style name="TextAppearance.Small">
<item name="android:textSize">18sp</item>
</style>
However, when the settings dialog is displayed, the message size is different from the one I defined in my style.
So, how to set the size of the text of the dialog message?
EDIT
I copied the dialog layout from sdk:
<LinearLayout
android:id="@+android:id/edittext_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="20dp"
android:orientation="vertical">
<TextView
android:id="@android:id/message"
android:layout_marginBottom="48dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:textColor="?android:attr/textColorSecondary"
style="@style/TextAppearance.Small" />
</LinearLayout>
However, I get a build error Resource is not publicin the line android:id="@+android:id/edittext_container".
And if I change it to "@*android:id/edittext_container", the edit text is no longer displayed.
Is there an easy way to just change the message text?