Set primaryDarkColor
This commit is contained in:
parent
db8d6e58c2
commit
bb480c6496
@ -18,6 +18,7 @@ import androidx.annotation.Nullable;
|
|||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.appcompat.widget.Toolbar;
|
import androidx.appcompat.widget.Toolbar;
|
||||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||||
|
import androidx.core.content.ContextCompat;
|
||||||
import androidx.drawerlayout.widget.DrawerLayout;
|
import androidx.drawerlayout.widget.DrawerLayout;
|
||||||
import androidx.lifecycle.ViewModelProviders;
|
import androidx.lifecycle.ViewModelProviders;
|
||||||
import androidx.paging.PagedList;
|
import androidx.paging.PagedList;
|
||||||
@ -405,6 +406,7 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou
|
|||||||
drawer.getDrawerLayout().setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
drawer.getDrawerLayout().setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
||||||
refreshLayout.setEnabled(false);
|
refreshLayout.setEnabled(false);
|
||||||
actionMode.getMenuInflater().inflate(R.menu.item_list_contextual_menu, menu);
|
actionMode.getMenuInflater().inflate(R.menu.item_list_contextual_menu, menu);
|
||||||
|
getWindow().setStatusBarColor(ContextCompat.getColor(this, R.color.primary_dark));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#0072bc</color>
|
<color name="colorPrimary">#0072bc</color>
|
||||||
<color name="colorPrimaryDark">#000000</color> <!-- #d7d7d7 -->
|
<color name="colorPrimaryDark">#00478b</color>
|
||||||
<color name="colorAccent">#0072bc</color>
|
<color name="colorAccent">#0072bc</color>
|
||||||
<color name="colorControlNormal">#d7d7d7</color>
|
<color name="colorControlNormal">#d7d7d7</color>
|
||||||
<color name="colorBackground">#fafafa</color>
|
<color name="colorBackground">#fafafa</color>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user