Android: How to make the text size of Borderless button same as that of TextView -
in following 2 images, there 4 widgets in horizontal linear layout:
- a
textview
textresults:
- a
borderless button
textmy cat
- a
view
hack "vertical separator" - a
borderless button
textmy dog
two questions:
results:
in first 1 bold because used<b>
tag around in string resources file. used<strong>
tag in second one, not make bold.i did read that
strong
has semantic meaning, may screen reader blind people read in different tone, blind people. but visually, should bold, isn't it?i want text in
button
s of same sizetextview
. believe need text size oftextview
(or default size in android system? or "default size" on user's device? :s ) insp
(becausesp
scaled user's font preference) and set text size of button same that? how can that?
can in xml? or possible programatically? , how?
use android:textstyle="bold" bold text , android:textsize="12sp" change text size of button in xml.
Comments
Post a Comment