Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Yunitsky <yunik@mapswithme.com>2015-03-25 14:06:50 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:40:55 +0300
commitacf2072bed5a66009460a5ed8554d1408dd4c70f (patch)
treeec02c93f1853d17259d92ebcee3088621d5f2383 /android/res/layout
parentffbadcefcf6098e2a4a60f79dcac21beb4bffe15 (diff)
Direction fragment truncated text fix.
Diffstat (limited to 'android/res/layout')
-rw-r--r--android/res/layout/fragment_direction.xml80
1 files changed, 44 insertions, 36 deletions
diff --git a/android/res/layout/fragment_direction.xml b/android/res/layout/fragment_direction.xml
index de2f9ae474..2a3444d10a 100644
--- a/android/res/layout/fragment_direction.xml
+++ b/android/res/layout/fragment_direction.xml
@@ -4,49 +4,57 @@
android:layout_height="match_parent"
android:background="@color/semitransparent_black_dark"
android:orientation="vertical"
- android:paddingBottom="@dimen/margin_direction_top"
+ android:paddingBottom="@dimen/margin_direction_big"
android:paddingLeft="@dimen/margin_direction_left"
android:paddingRight="@dimen/margin_direction_left"
android:paddingTop="@dimen/margin_direction_top">
- <TextView
- android:id="@+id/tv__title"
- style="@style/DirectionTitle"
- android:layout_width="wrap_content"
+ <RelativeLayout
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_above="@+id/tv__subtitle"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="@dimen/margin_direction_small"
- android:textSize="@dimen/text_direction_title"/>
+ android:layout_centerInParent="true">
- <TextView
- android:id="@+id/tv__subtitle"
- style="@style/DirectionTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_above="@+id/av__direction"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="@dimen/margin_direction_big"
- android:layout_marginLeft="@dimen/margin_medium_and_half"
- android:layout_marginRight="@dimen/margin_medium_and_half"
- android:textColor="@color/semitransparent_white"
- android:textSize="@dimen/text_direction_subtitle"/>
+ <TextView
+ android:id="@+id/tv__title"
+ style="@style/DirectionTitle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_marginBottom="@dimen/margin_direction_small"
+ android:gravity="center_horizontal"
+ android:textSize="@dimen/text_direction_title"/>
- <com.mapswithme.maps.widget.ArrowView
- android:id="@+id/av__direction"
- android:src="@drawable/ic_direction"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"/>
+ <TextView
+ android:id="@+id/tv__subtitle"
+ style="@style/DirectionTitle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/tv__title"
+ android:layout_centerHorizontal="true"
+ android:layout_marginBottom="@dimen/margin_direction_small"
+ android:layout_marginLeft="@dimen/margin_medium_and_half"
+ android:layout_marginRight="@dimen/margin_medium_and_half"
+ android:textColor="@color/semitransparent_white"
+ android:textSize="@dimen/text_direction_subtitle"/>
- <TextView
- android:id="@+id/tv__straight_distance"
- style="@style/DirectionTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/av__direction"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="@dimen/margin_direction_big"
- android:textSize="@dimen/text_direction_dist"/>
+ <com.mapswithme.maps.widget.ArrowView
+ android:id="@+id/av__direction"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/tv__subtitle"
+ android:layout_centerHorizontal="true"
+ android:src="@drawable/ic_direction"/>
+
+ <TextView
+ android:id="@+id/tv__straight_distance"
+ style="@style/DirectionTitle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/av__direction"
+ android:layout_centerHorizontal="true"
+ android:layout_marginTop="@dimen/margin_direction_big"
+ android:textSize="@dimen/text_direction_dist"/>
+
+ </RelativeLayout>
</RelativeLayout> \ No newline at end of file