FIxed bug with drawer items not fill parent
This commit is contained in:
parent
c6a327fe1d
commit
4613a2a48c
3 changed files with 5 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
</FrameLayout>
|
||||
<ListView android:id="@+id/left_drawer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:choiceMode="singleChoice"
|
||||
|
|
|
@ -67,5 +67,7 @@
|
|||
<color name="shadow_color">#33888888</color>
|
||||
<color name="sherpafy_selection">#ff33b5e5</color>
|
||||
<color name="sherpafy_add_text">#b9b9b9</color>
|
||||
|
||||
<color name="dark_drawer_bg_color">#303030</color>
|
||||
|
||||
</resources>
|
|
@ -739,9 +739,9 @@ public class MapActivityActions implements DialogProvider {
|
|||
mDrawerList.setAdapter(listAdapter);
|
||||
|
||||
if (getMyApplication().getSettings().isLightContentMenu()){
|
||||
mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.color_white));
|
||||
mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.shadow_color));
|
||||
} else {
|
||||
mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.color_black));
|
||||
mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.dark_drawer_bg_color));
|
||||
}
|
||||
mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
||||
|
||||
|
|
Loading…
Reference in a new issue