Commit 0de94da4 authored by Grigory Fedorov's avatar Grigory Fedorov

BaseListEditor: "add" icon added.

parent 6833d659
......@@ -118,6 +118,7 @@ public abstract class BaseListEditor<T> extends ManagedListActivity implements
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
menu.add(0, OPTION_MENU_ADD_ID, 0, getString(getAddTextResourceId()))
.setIcon(R.drawable.ic_add_white_24dp)
.setIntent(getAddIntent())
.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
return true;
......
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/action_add"
android:title="Add"
android:orderInCategory="105"
android:showAsAction="always"
android:icon="@drawable/ic_add_white_24dp"/>
</menu>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<ListPreference
android:title="@string/interface_theme"
android:key="@string/interface_theme_key"
android:entries="@array/interface_theme_entries"
android:entryValues="@array/interface_theme_entryvalues"
android:defaultValue="@string/interface_theme_default"
/>
<ListPreference
android:title="@string/interface_smiles"
android:key="@string/interface_smiles_key"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment