Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android custom Toolbar text button

I'm new and I have created a toolbar for my activity.

Is it possible to set a 'text button' instead of a res Image

I would like to have a clickable thing with 'new track' on it instead of a plus

xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/add"
    android:visible="true"
    android:title="@string/addsome"
    android:icon="@drawable/ic_plus"
    app:showAsAction="always">
</item>

Help would be great

like image 880
HothCoder Avatar asked Feb 08 '23 03:02

HothCoder


1 Answers

Just remove this line android:icon="@drawable/ic_plus".

like image 160
Masum Avatar answered Feb 11 '23 16:02

Masum