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
textviewtextresults: - a
borderless buttontextmy cat - a
viewhack "vertical separator" - a
borderless buttontextmy 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
stronghas semantic meaning, may screen reader blind people read in different tone, blind people. but visually, should bold, isn't it?i want text in
buttons of same sizetextview. believe need text size oftextview(or default size in android system? or "default size" on user's device? :s ) insp(becausespscaled 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