here deleted setting action bar and inserted my icon;while compile it shows default dropdown setting;i need to replace it with my icon and should be clickable.
Asked
Active
Viewed 54 times
1

Rahul
- 404
- 4
- 16
-
Changing name space from android to app ,if you are using the support libs can help. – Sanjeet A Nov 12 '15 at 09:46
-
When you click it,did it show your icon – tiny sunlight Nov 12 '15 at 09:47
-
can you explain me clearly! – Rahul Nov 12 '15 at 09:53
-
yes,i want remove the setting icon and replace my icon with clickable on right side – Rahul Nov 12 '15 at 09:59
-
Replace `android:showAsAction="always"` with `app:showAsAction="always"`. – skywall Nov 12 '15 at 10:04
2 Answers
0
This will work fine
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.example.loadimage.MainActivity" >
<item
android:id="@+id/icon_id"
android:orderInCategory="100"
android:icon="@drawable/youricon"
android:title="@string/action_settings"
app:showAsAction="always"/>

saeed
- 1,935
- 1
- 18
- 33