Small markers widget UI fix

This commit is contained in:
Alexey Kulish 2016-02-13 15:47:38 +03:00
parent 38199e23ab
commit 0dc09e1554
2 changed files with 13 additions and 12 deletions

View file

@ -257,7 +257,7 @@
android:layout_height="30dp"
android:src="@drawable/map_arrow_to_destination"/>
<LinearLayout
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -270,24 +270,25 @@
android:id="@+id/map_marker_dist_2nd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textSize="@dimen/default_list_text_size_large"
android:text="500 m"
android:textColor="@color/color_white"
android:text="500 m"/>
android:textSize="@dimen/default_list_text_size_large"
android:textStyle="bold"/>
<TextView
android:id="@+id/map_marker_address_2nd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/marker_top_2nd_line_color"
android:maxLines="1"
android:layout_marginTop="2dp"
android:layout_alignBaseline="@+id/map_marker_dist_2nd"
android:layout_toRightOf="@+id/map_marker_dist_2nd"
android:ellipsize="end"
android:textStyle="bold"
android:textSize="@dimen/default_desc_text_size"
android:text=" - Dmitrievskaya st., 45"/>
android:maxLines="1"
android:text=" • Dmitr"
android:textColor="@color/marker_top_2nd_line_color"
android:textSize="@dimen/default_list_text_size"
android:textStyle="bold"/>
</LinearLayout>
</RelativeLayout>
<ImageButton
android:id="@+id/marker_btn_ok_2dn"

View file

@ -195,7 +195,7 @@ public class MapMarkersWidget {
descr = pd.getName();
}
if (!firstLine && !isLandscapeLayout()) {
descr = " " + descr;
descr = " " + descr;
}
addressText.setText(descr);