text-size

Text size of android design TabLayout tabs

北城以北 提交于 2019-11-26 12:04:40
问题 I have difficulties changing the text size of the tabs of design library tablayout (android.support.design.widget.TabLayout). I managed to change it by assigning tabTextAppearance in TabLayout app:tabTextAppearance=\"@style/MyTabLayoutTextAppearance\" the following style <style name=\"MyTabLayoutTextAppearance\" parent=\"TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse\"> <item name=\"android:textSize\">14sp</item> </style> but I have 2 side effects : 1) I lost the accent color of the

How to change the toolbar text size?

荒凉一梦 提交于 2019-11-26 11:57:19
问题 I want to change the size of text in Toolbar . Because in my application, Toolbar text has different sizes both for landscape and portrait mode. Is it possible to change the text size of text in Toolbar ? 回答1: Use app:titleTextAppearance: <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="?actionBarSize" android:id="@+id/toolbar" app

Text size and different android screen sizes

末鹿安然 提交于 2019-11-26 00:31:29
问题 I know, it was discussed already 1000 times, but I can\'t adjust the text size for different screen sizes. I try to use \'sp\' as size units in my custom style: <style name=\"CustumButtonStyle\" parent=\"@android:style/Widget.Button\"> ... <item name=\"android:textSize\">30sp</item> ... </style> In 2.7 QVGA it looks OK: But in 7in WSVGA it looks like this: I\'ve tried to use both \'sp\' and \'dp\' with the same result. Could you please explain how to make these buttons look the same on any

Inline elements shifting when made bold on hover

倾然丶 夕夏残阳落幕 提交于 2019-11-25 23:53:28
问题 I created a horizontal menu using a HTML lists and CSS. Everything works as it should except when you hover over the links. You see, I created a bold hover state for the links, and now the menu links shift because of the bold size difference. I encounter the same problem as this SitePoint post. However, the post does not have proper solution. I\'ve searched everywhere for a solution and can\'t find one. Surely I can\'t be the only one trying to do this. Does anyone have any ideas? P.S: I don\