android - textSize in Radio Buttons doesn't follow defined style -


in layout there 2 styles defined 2 different elements: headline (upper) , radio buttons. both should have textsize of 30sp in sw600dp , wider layouts; how looks in styles: <item name="android:textsize">30sp</item>.

in meantime, like:

enter image description here

how can make radio button text become bigger?

edit: adding styles & code of both elements.

1a. headline code:

<textview                 android:id="@+id/question"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_marginright="10dp"                 android:layout_marginend="10dp"                 android:text="@string/q1_question"                 style="@style/headlinetextview"/> 

1b. headline style:

-- parent:

<style name="textviewparent">     <item name="android:typeface">sans</item>     <item name="android:textcolor">@color/darkest_gray</item> </style> 

-- child:

<style name="headlinetextview" parent="textviewparent">     <item name="android:layout_width">wrap_content</item>     <item name="android:layout_height">wrap_content</item>     <item name="android:layout_marginright">0dp</item>     <item name="android:textstyle">italic</item>     <item name="android:textsize">30sp</item>     <item name="android:textcolor">@color/darkest_gray</item>     <item name="android:layout_gravity">center_vertical</item>     <item name="android:layout_marginleft">40dp</item> </style> 

2a. radio button code:

<radiobutton                 android:id="@+id/qf2e_radio_ans0"                 android:text="@string/desc_flag_0"                 style="@style/quizradiobutton" /> 

2b. radio button style:

-- no-parent:

<style name="quizradiobutton">         <item name="android:layout_height">match_parent</item>         <item name="android:minheight">40dp</item>         <item name="android:layout_width">wrap_content</item>         <item name="android:textcolor">@color/darkest_gray</item>         <item name="android:textsize">30sp</item>         <item name="android:layout_marginbottom">20dp</item> </style> 

the buttons grouped under radiogroup.

it idea make standard widget's styles inherit standard styles. example, radio button style should like:

<style name="quizradiobutton" parent="@android:style/widget.compoundbutton.radiobutton"> 

once that, textsize attribute work.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -