Fix layout issues

This commit is contained in:
Victor Shcherb 2014-10-26 00:18:36 +02:00
parent ccad661057
commit 1c7c644e06
4 changed files with 7 additions and 14 deletions

View file

@ -4,15 +4,9 @@
android:insetRight="15dp" >
<shape
android:shape="line" >
<stroke
android:dashGap="1dp"
android:dashWidth="1.5dp"
android:width="1dp"
android:color="#FF404040" />
<size android:height="1dp" />
android:shape="line"
android:height="1px"
android:color="#FF404040">
</shape>
</inset>

View file

@ -10,9 +10,7 @@
<LinearLayout android:layout_width="0dp"
android:layout_weight="1"
android:orientation="horizontal"
android:layout_height="32dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
android:layout_height="48dp">
<TextView android:id="@+id/title"
android:textSize="18sp"
android:layout_width="wrap_content"

View file

@ -284,13 +284,14 @@ public class ContextMenuAdapter {
ch.setOnCheckedChangeListener(null);
ch.setVisibility(View.VISIBLE);
ch.setChecked(selectedList.get(position) > 0);
final ArrayAdapter<String> la = this;
ch.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
OnContextMenuClick ca = getClickAdapter(position);
if(ca != null) {
ca.onContextMenuClick(null, getElementId(position), position, isChecked);
ca.onContextMenuClick(la, getElementId(position), position, isChecked);
}
}
});

View file

@ -768,7 +768,7 @@ public class MapActivityActions implements DialogProvider {
final ArrayAdapter<?> listAdapter =
cm.createListAdapter(mapActivity, getMyApplication().getSettings().isLightContentMenu());
mDrawerList.setAdapter(listAdapter);
mDrawerList.setDivider(mapActivity.getResources().getDrawable(R.drawable.drawer_shadow));
mDrawerList.setDivider(mapActivity.getResources().getDrawable(R.drawable.drawer_divider));
mDrawerList.setBackgroundColor(cm.getBackgroundColor(mapActivity, getMyApplication().getSettings().isLightContentMenu()));
mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {