Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Default ActionBar Title Font Size?

Seems to be 17dip. Just want to confirm it if anyone knows the exact size.

like image 467
aimango Avatar asked Feb 03 '12 18:02

aimango


People also ask

What is default text size in Android?

The body text size in Material Design is 14sp. You should think of this as the normal font size, and basically everything else a variation on it. For instance, while 14sp is the default text size when the text can be quite long, when there's only a small modal with a bit of text, it's 16sp!

What is the ActionBar?

In Android applications, ActionBar is the element present at the top of the activity screen. It is a salient feature of a mobile application that has a consistent presence over all its activities. It provides a visual structure to the app and contains some of the frequently used elements for the users.

What is ActionBar in Android Studio?

The app bar, also known as the action bar, is one of the most important design elements in your app's activities, because it provides a visual structure and interactive elements that are familiar to users.


1 Answers

The short one…

$ grep ActionBar platforms/android-11/data/res/values/* leads to

styles.xml:

<style name="TextAppearance.Widget.ActionBar.Title"        parent="@android:style/TextAppearance.Medium"> </style>  <style name="TextAppearance.Widget.ActionBar.Subtitle"        parent="@android:style/TextAppearance.Small"> </style>  […]  <style name="TextAppearance.Medium">     <item name="android:textSize">18sp</item> </style>  <style name="TextAppearance.Small">     <item name="android:textSize">14sp</item>     <item name="android:textColor">?textColorSecondary</item> </style> 
like image 86
Renaud Avatar answered Sep 26 '22 18:09

Renaud