How do I center my action bar title?

Ngọc Trâm

New member
How do I center my action bar title?
Answer
How to centre align action bar title in android?
  1. Step 2 − Add the following code to res/layout/activity_main.xml. xml version=”1.0″ encoding=”utf-8″?>
  2. Step 3 − Add the following code to src/MainActivity.java import android. ActionBar; import android. …
  3. Step 4 − Add the following code to androidManifest.xml
21 авг. 2019 г.
 

Tìm kiếm

Back
Top