diff options
author | Alexander Zatsepin <az@mapswithme.com> | 2018-04-23 19:20:08 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-04-25 15:38:50 +0300 |
commit | 2fde0194fe4aca205fe8ee287bae381cbdeee891 (patch) | |
tree | 1afab10e49a5af2bb8c988997e9a56d7f7bcfb3d /android/res | |
parent | ae527f4ef7b26757df4f90634912035d6a7f8076 (diff) |
[android] Fixed local expert item ui in discovery
Diffstat (limited to 'android/res')
-rw-r--r-- | android/res/layout/item_discovery_expert.xml | 76 |
1 files changed, 41 insertions, 35 deletions
diff --git a/android/res/layout/item_discovery_expert.xml b/android/res/layout/item_discovery_expert.xml index a3b93086ca..9a504077a9 100644 --- a/android/res/layout/item_discovery_expert.xml +++ b/android/res/layout/item_discovery_expert.xml @@ -15,41 +15,47 @@ android:layout_width="@dimen/gallery_product_width" android:layout_height="wrap_content" android:minHeight="@dimen/discovery_expert_item_min_height"> - <ImageView - android:id="@+id/avatar" - android:layout_width="80dp" - android:layout_height="80dp" - android:layout_gravity="center_horizontal" - android:scaleType="centerCrop" - android:layout_marginTop="@dimen/margin_half_plus"/> - <TextView - android:id="@+id/name" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:layout_marginTop="@dimen/margin_half_plus" - android:layout_marginStart="@dimen/margin_base_plus_quarter" - android:layout_marginEnd="@dimen/margin_base_plus_quarter" - style="@style/MwmWidget.Discovery.Item.Title" - android:maxLines="1" - android:minLines="1" - android:textAppearance="@style/MwmTextAppearance.Discovery.Item.Title" - tools:text="Irina Severintseva"/> - <com.mapswithme.maps.widget.RatingView - android:id="@+id/ratingView" - android:layout_width="wrap_content" - android:layout_marginTop="@dimen/margin_eighth" - android:layout_marginBottom="@dimen/margin_half" - android:layout_height="@dimen/rating_view_height_small" - android:paddingLeft="@dimen/margin_quarter_plus" - android:paddingStart="@dimen/margin_quarter_plus" - android:paddingRight="@dimen/margin_quarter_plus" - android:paddingEnd="@dimen/margin_quarter_plus" - android:paddingTop="@dimen/margin_quarter" - android:paddingBottom="@dimen/margin_quarter" - android:layout_gravity="center_horizontal" - android:textSize="@dimen/text_size_body_4" - tools:visibility="visible"/> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="vertical"> + <ImageView + android:id="@+id/avatar" + android:layout_width="80dp" + android:layout_height="80dp" + android:layout_gravity="center_horizontal" + android:scaleType="centerCrop" + android:layout_marginTop="@dimen/margin_half_plus"/> + <TextView + android:id="@+id/name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_marginTop="@dimen/margin_half_plus" + android:layout_marginStart="@dimen/margin_base_plus_quarter" + android:layout_marginEnd="@dimen/margin_base_plus_quarter" + style="@style/MwmWidget.Discovery.Item.Title" + android:maxLines="1" + android:minLines="1" + android:textAppearance="@style/MwmTextAppearance.Discovery.Item.Title" + tools:text="Irina Severintseva"/> + <com.mapswithme.maps.widget.RatingView + android:id="@+id/ratingView" + android:layout_width="wrap_content" + android:layout_marginTop="@dimen/margin_eighth" + android:layout_marginBottom="@dimen/margin_half" + android:layout_height="@dimen/rating_view_height_small" + android:paddingLeft="@dimen/margin_quarter_plus" + android:paddingStart="@dimen/margin_quarter_plus" + android:paddingRight="@dimen/margin_quarter_plus" + android:paddingEnd="@dimen/margin_quarter_plus" + android:paddingTop="@dimen/margin_quarter" + android:paddingBottom="@dimen/margin_quarter" + android:layout_gravity="center_horizontal" + android:textSize="@dimen/text_size_body_4" + tools:visibility="visible"/> + </LinearLayout> <include layout="@layout/item_discovery_button"/> </LinearLayout> </android.support.v7.widget.CardView> |