Add icon to map
|
|
@ -2,6 +2,7 @@ package fr.free.nrw.commons.nearby;
|
|||
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.FragmentTransaction;
|
||||
import android.util.Log;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
|
|
@ -45,6 +46,9 @@ public class NearbyActivity extends BaseActivity {
|
|||
case R.id.action_refresh:
|
||||
refreshView();
|
||||
return true;
|
||||
case R.id.action_map:
|
||||
Log.d("Nearby","map is clicked");
|
||||
return true;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
|
|
|||
BIN
app/src/main/res/drawable-hdpi/ic_map_black_24dp.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
app/src/main/res/drawable-hdpi/ic_map_white_24dp.png
Normal file
|
After Width: | Height: | Size: 317 B |
BIN
app/src/main/res/drawable-mdpi/ic_map_black_24dp.png
Normal file
|
After Width: | Height: | Size: 222 B |
BIN
app/src/main/res/drawable-mdpi/ic_map_white_24dp.png
Normal file
|
After Width: | Height: | Size: 231 B |
BIN
app/src/main/res/drawable-xhdpi/ic_map_black_24dp.png
Normal file
|
After Width: | Height: | Size: 363 B |
BIN
app/src/main/res/drawable-xhdpi/ic_map_white_24dp.png
Normal file
|
After Width: | Height: | Size: 373 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_map_black_24dp.png
Normal file
|
After Width: | Height: | Size: 513 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_map_white_24dp.png
Normal file
|
After Width: | Height: | Size: 528 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_map_black_24dp.png
Normal file
|
After Width: | Height: | Size: 667 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_map_white_24dp.png
Normal file
|
After Width: | Height: | Size: 678 B |
|
|
@ -2,6 +2,14 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_map"
|
||||
android:title="@string/refresh_button"
|
||||
android:icon="@drawable/ic_map_white_24dp"
|
||||
android:orderInCategory="1"
|
||||
app:showAsAction="ifRoom"
|
||||
/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_refresh"
|
||||
android:title="@string/refresh_button"
|
||||
|
|
|
|||