Added status bar color and space for floating button at dashboard
This commit is contained in:
parent
51de6682fd
commit
e28e69544a
2 changed files with 12 additions and 3 deletions
|
@ -8,7 +8,6 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="60dp"
|
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
|
@ -81,6 +80,11 @@
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!--To make sure that floating button is always visible-->
|
||||||
|
<View android:layout_width="match_parent"
|
||||||
|
android:layout_height="76dp"
|
||||||
|
android:orientation="vertical"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</net.osmand.plus.dashboard.NotifyingScrollView>
|
</net.osmand.plus.dashboard.NotifyingScrollView>
|
|
@ -2,7 +2,9 @@ package net.osmand.plus.dashboard;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
|
import android.graphics.Color;
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v7.app.ActionBar;
|
import android.support.v7.app.ActionBar;
|
||||||
import android.support.v7.app.ActionBarActivity;
|
import android.support.v7.app.ActionBarActivity;
|
||||||
|
@ -31,8 +33,11 @@ public class DashAudioVideoNotesActivity extends ActionBarActivity {
|
||||||
setContentView(R.layout.editing_poi_filter);
|
setContentView(R.layout.editing_poi_filter);
|
||||||
|
|
||||||
plugin = OsmandPlugin.getEnabledPlugin(AudioVideoNotesPlugin.class);
|
plugin = OsmandPlugin.getEnabledPlugin(AudioVideoNotesPlugin.class);
|
||||||
|
int c = getResources().getColor(R.color.actionbar_color);
|
||||||
ColorDrawable color = new ColorDrawable(getResources().getColor(R.color.actionbar_color));
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
|
||||||
|
getWindow().setStatusBarColor(c);
|
||||||
|
}
|
||||||
|
ColorDrawable color = new ColorDrawable(c);
|
||||||
ActionBar actionBar = getSupportActionBar();
|
ActionBar actionBar = getSupportActionBar();
|
||||||
actionBar.setTitle(R.string.audionotes_plugin_name);
|
actionBar.setTitle(R.string.audionotes_plugin_name);
|
||||||
actionBar.setBackgroundDrawable(color);
|
actionBar.setBackgroundDrawable(color);
|
||||||
|
|
Loading…
Reference in a new issue