UI fix
This commit is contained in:
parent
d8c315c87f
commit
c557dec4d0
2 changed files with 5 additions and 29 deletions
|
@ -29,29 +29,14 @@
|
|||
android:textStyle="bold"
|
||||
tools:text="Hiking symbols overlay"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="-8dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:layout_marginTop="12dp"
|
||||
android:textSize="@dimen/default_list_text_size"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dropDownIcon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_action_arrow_drop_down"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
|
|
|
@ -859,15 +859,6 @@ public class ConfigureMapMenu {
|
|||
TextView title = (TextView) spinnerView.findViewById(R.id.title);
|
||||
final Spinner spinner = (Spinner) spinnerView.findViewById(R.id.spinner);
|
||||
TextView description = (TextView) spinnerView.findViewById(R.id.description);
|
||||
ImageView dropDownIcon = (ImageView) spinnerView.findViewById(R.id.dropDownIcon);
|
||||
dropDownIcon.setImageDrawable(
|
||||
app.getIconsCache().getIcon(R.drawable.ic_action_arrow_drop_down, app.getSettings().isLightContent()));
|
||||
dropDownIcon.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
spinner.performClick();
|
||||
}
|
||||
});
|
||||
|
||||
title.setText(p.getName());
|
||||
description.setText(p.getDescription());
|
||||
|
|
Loading…
Reference in a new issue