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
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="60dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<fragment
|
||||
|
@ -81,6 +80,11 @@
|
|||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!--To make sure that floating button is always visible-->
|
||||
<View android:layout_width="match_parent"
|
||||
android:layout_height="76dp"
|
||||
android:orientation="vertical"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</net.osmand.plus.dashboard.NotifyingScrollView>
|
|
@ -2,7 +2,9 @@ package net.osmand.plus.dashboard;
|
|||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.ActionBar;
|
||||
import android.support.v7.app.ActionBarActivity;
|
||||
|
@ -31,8 +33,11 @@ public class DashAudioVideoNotesActivity extends ActionBarActivity {
|
|||
setContentView(R.layout.editing_poi_filter);
|
||||
|
||||
plugin = OsmandPlugin.getEnabledPlugin(AudioVideoNotesPlugin.class);
|
||||
|
||||
ColorDrawable color = new ColorDrawable(getResources().getColor(R.color.actionbar_color));
|
||||
int c = 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.setTitle(R.string.audionotes_plugin_name);
|
||||
actionBar.setBackgroundDrawable(color);
|
||||
|
|
Loading…
Reference in a new issue