Skip to content

Commit

Permalink
Text size fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRe1nk0 committed Jul 27, 2023
1 parent a2649bc commit 0317ad0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;

import android.os.Bundle;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
Expand Down Expand Up @@ -82,6 +83,7 @@ public View getCustomRadioButtonView(@NonNull SwitchPreferenceEx preference, boo

TextView textView = view.findViewById(R.id.text);
textView.setText(getSummary(preference, enabled));
textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimensionPixelSize(R.dimen.default_list_text_size));

int margin = getResources().getDimensionPixelSize(R.dimen.content_padding_small);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
Expand Down

0 comments on commit 0317ad0

Please sign in to comment.