This commit is contained in:
Alexey Kulish 2016-10-13 17:02:46 +03:00
parent d8c315c87f
commit c557dec4d0
2 changed files with 5 additions and 29 deletions

View file

@ -29,28 +29,13 @@
android:textStyle="bold" android:textStyle="bold"
tools:text="Hiking symbols overlay"/> tools:text="Hiking symbols overlay"/>
<LinearLayout <Spinner
android:id="@+id/spinner"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:orientation="horizontal"> android:layout_marginLeft="-8dp"
android:layout_marginTop="12dp"
<Spinner android:textSize="@dimen/default_list_text_size"/>
android:id="@+id/spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="-8dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:background="@null"
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 <View
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -859,15 +859,6 @@ public class ConfigureMapMenu {
TextView title = (TextView) spinnerView.findViewById(R.id.title); TextView title = (TextView) spinnerView.findViewById(R.id.title);
final Spinner spinner = (Spinner) spinnerView.findViewById(R.id.spinner); final Spinner spinner = (Spinner) spinnerView.findViewById(R.id.spinner);
TextView description = (TextView) spinnerView.findViewById(R.id.description); 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()); title.setText(p.getName());
description.setText(p.getDescription()); description.setText(p.getDescription());