N
N
Neonoviiwolf2018-08-12 04:36:34
Android
Neonoviiwolf, 2018-08-12 04:36:34

How can I change the font size in the application header?

Kind
And how to change the font size in the title of the application? I change in styles, but there is no reaction, the current font picks up 5b6f8f0a25d82755554355.jpeg
small somehow looks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alterEgoChaos, 2018-08-13
@Neonoviiwolf

You can’t change the standard size in any way, you can just push the TextView into the Toolbar and set at least a color or a size for it.
Something like this:
android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?android:attr/actionBarSize"
android:background="@ color/white"
android:elevation="3dp"
app:contentInsetEnd="0dp"
app:contentInsetLeft="0dp"
app:contentInsetRight="0dp"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp"
app:titleTextColor= "@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/
and don't forget
getSupportActionBar().setDisplayShowTitleEnabled(false);
I can't paste the code here. I hope you understand))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question