Updated slide menu

This commit is contained in:
Denis 2014-08-06 14:06:36 +03:00
parent 12b6fce65c
commit d27d299271
2 changed files with 7 additions and 3 deletions

View file

@ -14,11 +14,10 @@
</FrameLayout>
<ListView android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:choiceMode="singleChoice"
android:divider="@drawable/divider"
android:dividerHeight="1px"
android:background="@color/color_white"/>
android:dividerHeight="1px"/>
</android.support.v4.widget.DrawerLayout>

View file

@ -738,6 +738,11 @@ public class MapActivityActions implements DialogProvider {
}
mDrawerList.setAdapter(listAdapter);
if (getMyApplication().getSettings().isLightContentMenu()){
mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.color_white));
} else {
mDrawerList.setBackgroundColor(mapActivity.getResources().getColor(R.color.color_black));
}
mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override