fixed incorrect font size of some items on the Settings screen
This commit is contained in:
parent
5705be0d80
commit
76099862e5
4 changed files with 6 additions and 5 deletions
|
|
@ -7,6 +7,7 @@ import androidx.preference.PreferenceCategory;
|
|||
import java.util.ArrayList;
|
||||
|
||||
import io.github.sspanak.tt9.R;
|
||||
import io.github.sspanak.tt9.preferences.custom.PreferencePlainText;
|
||||
|
||||
class DeletableWordsList {
|
||||
static final String NAME = "delete_words_list";
|
||||
|
|
@ -39,9 +40,8 @@ class DeletableWordsList {
|
|||
|
||||
void addNoResult(boolean noSearchTerm) {
|
||||
if (item != null) {
|
||||
Preference pref = new Preference(item.getContext());
|
||||
Preference pref = new PreferencePlainText(item.getContext());
|
||||
pref.setSummary(noSearchTerm ? "--" : item.getContext().getString(R.string.delete_words_no_result));
|
||||
pref.setLayoutResource(R.layout.pref_text);
|
||||
item.addPreference(pref);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:labelFor="@id/input_text_input_field"
|
||||
android:text="?android:title" />
|
||||
android:text="?android:title"
|
||||
android:textSize="@dimen/pref_large_summary_size"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_text_input_field"
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@
|
|||
android:id="@android:id/summary"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:minHeight="@dimen/preferences_text_min_height"/>
|
||||
android:minHeight="@dimen/preferences_text_min_height" />
|
||||
</LinearLayout>
|
||||
|
|
|
|||
|
|
@ -11,5 +11,5 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:minHeight="@dimen/preferences_text_min_height"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView" />
|
||||
android:textSize="@dimen/pref_large_summary_size" />
|
||||
</LinearLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue