Tony Stank
Forum Veteran
Paano po mag change ng action bar?
Eto po sa ibang forum to e
This is very simple to accomplish
If you want to change it in code, call:
setTitle("My new title");
getActionBar().setIcon(R.drawable.my_icon);
And set the values to whatever you please.
Or, in the Android manifest XML file:
<activity android:name=".MyActivity"
android:icon="@drawable/my_icon"
android:label="My new title" />
To enable the back button in your app use:
getActionBar().setHomeButtonEnabled(true);
getActionBar().setDisplayHomeAsUpEnabled(true);
The code should all be placed in your onCreate so that the label/icon changing is transparent to the user, but in reality it can be called anywhere during the activity's lifecycle.
Pagbutihan mo po sa pag modYow. Thanks for this. Godbless

Saan iadd yan? Sa stylex xml ba or isingit sa isang xml file?<android.support.design.widget.AppBarLayout
android:background="your color.."
Or
</android.support.v7.widget.Toolbar>
android:background="your color.."
....
To add icon...
Simply
android:navigationIcon="your icon"
Sa xml...kung meron..Saan iadd yan? Sa stylex xml ba or isingit sa isang xml file?
Saan nga sa styles ba? Dameng xml ang android e saan ba ilalagay yanSa xml...kung meron..
Sa res folder...sa activty main..or sa toolbar..meron yan..basta my naka lagay na support action bar sa javaSaan nga sa styles ba? Dameng xml ang android e saan ba ilalagay yan
Ayun pala e hehe.. Try ko yan kaso mag error na dahil may action bar na eSa res folder...sa activty main..or sa toolbar..meron yan..basta my naka lagay na support action bar sa java
Meron ng ganyan yung app na minomod ko di ba mag doble?Setsupport actiobar(toolbar)..hindi yan mg error..
What color ang inaallow pag sa styles xml?Kung meron ganyan...sa xml niya my toolbar na code rin...doon mo change ang color..
Kung anu yung color sa color.xml mo..yan gamitin mo sa style...What color ang inaallow pag sa styles xml?
Di yata pwede di allowed ng styles xml yung rgb colors eKung anu yung color sa color.xml mo..yan gamitin mo sa style...
gusto ko matutunan yun