From ecc6be7dd1452762a5b8054bef246f73116f2fc6 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Tue, 22 Dec 2015 15:09:11 +0300 Subject: [PATCH] [android] Fixed layout for search item. --- android/res/layout/item_search_result.xml | 132 ++++++++++++---------- 1 file changed, 70 insertions(+), 62 deletions(-) diff --git a/android/res/layout/item_search_result.xml b/android/res/layout/item_search_result.xml index f958fdfd09..f0fd9fdb30 100644 --- a/android/res/layout/item_search_result.xml +++ b/android/res/layout/item_search_result.xml @@ -1,71 +1,79 @@ + + + + + - + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_toLeftOf="@id/closed" + android:layout_toStartOf="@id/closed" + android:ellipsize="end" + android:maxLines="2" + android:textAppearance="@style/MwmTextAppearance.Body1" + tools:text="Long long title that wraps to multiple lines"/> + android:id="@+id/description" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_below="@id/title" + android:layout_marginTop="@dimen/margin_quarter" + android:layout_toLeftOf="@id/distance" + android:layout_toStartOf="@id/distance" + android:singleLine="true" + android:textAppearance="@style/MwmTextAppearance.Body3" + tools:text="Hotel \u2022 \u2605\u2605\u2605\u2605\u2605"/> - - - - + android:id="@+id/region" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_below="@id/description" + android:layout_marginTop="@dimen/margin_quarter" + android:layout_toLeftOf="@id/distance" + android:layout_toStartOf="@id/distance" + android:ellipsize="end" + android:singleLine="true" + android:textAppearance="@style/MwmTextAppearance.Body3" + tools:text="Russia, Moscow & Central, Moscow"/>