Format xml code; revert margin change
This commit is contained in:
parent
54c4d136ff
commit
39086e9edb
2 changed files with 25 additions and 28 deletions
|
@ -1,46 +1,46 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/widget_bg"
|
android:id="@+id/widget_bg"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/btn_left_round"
|
android:background="@drawable/btn_left_round"
|
||||||
android:minWidth="@dimen/map_minwidth_widget"
|
android:minWidth="@dimen/map_minwidth_widget"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal" >
|
android:layout_gravity="center_horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/widget_top_icon_text"
|
android:id="@+id/widget_top_icon_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:gravity="center"
|
|
||||||
android:layout_marginTop="2dp"
|
android:layout_marginTop="2dp"
|
||||||
|
android:gravity="center"
|
||||||
android:textColor="@color/color_black"
|
android:textColor="@color/color_black"
|
||||||
android:textSize="@dimen/map_widget_text_size"
|
android:textSize="@dimen/map_widget_text_size"
|
||||||
android:visibility="gone" />
|
android:visibility="gone"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/widget_top_icon"
|
android:id="@+id/widget_top_icon"
|
||||||
android:layout_width="@dimen/map_widget_image"
|
android:layout_width="@dimen/map_widget_image"
|
||||||
android:layout_height="@dimen/map_widget_image"
|
android:layout_height="@dimen/map_widget_image"
|
||||||
android:layout_marginTop="2dp"
|
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="2dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:src="@drawable/ic_action_test_light"
|
android:src="@drawable/ic_action_test_light"
|
||||||
android:visibility="gone" />
|
android:visibility="gone"/>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/widget_bottom_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/map_widget_height"
|
android:layout_height="@dimen/map_widget_height"
|
||||||
android:id="@+id/widget_bottom_layout"
|
android:orientation="horizontal">
|
||||||
|
|
||||||
android:orientation="horizontal" >
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/widget_icon"
|
android:id="@+id/widget_icon"
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
android:layout_marginLeft="@dimen/map_widget_icon_margin"
|
android:layout_marginLeft="@dimen/map_widget_icon_margin"
|
||||||
android:layout_marginRight="@dimen/map_widget_icon_margin"
|
android:layout_marginRight="@dimen/map_widget_icon_margin"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:src="@drawable/ic_action_test_light" />
|
android:src="@drawable/ic_action_test_light"/>
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
android:layout_marginBottom="@dimen/map_widget_text_bottom_margin"
|
android:layout_marginBottom="@dimen/map_widget_text_bottom_margin"
|
||||||
android:layout_marginLeft="@dimen/map_widget_icon_margin"
|
android:layout_marginLeft="@dimen/map_widget_icon_margin"
|
||||||
android:layout_marginRight="@dimen/map_widget_icon_margin"
|
android:layout_marginRight="@dimen/map_widget_icon_margin"
|
||||||
android:layout_weight="1" >
|
android:layout_weight="1">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/widget_text_shadow"
|
android:id="@+id/widget_text_shadow"
|
||||||
|
@ -67,11 +67,10 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:singleLine="true"
|
|
||||||
android:minWidth="10dp"
|
android:minWidth="10dp"
|
||||||
tools:text="1048"
|
|
||||||
android:textColor="@color/color_white"
|
android:textColor="@color/color_white"
|
||||||
android:textSize="@dimen/map_widget_text_size" />
|
android:textSize="@dimen/map_widget_text_size"
|
||||||
|
tools:text="1048"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/widget_text"
|
android:id="@+id/widget_text"
|
||||||
|
@ -79,11 +78,10 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:singleLine="true"
|
|
||||||
android:minWidth="10dp"
|
android:minWidth="10dp"
|
||||||
tools:text="1048"
|
|
||||||
android:textColor="@color/color_black"
|
android:textColor="@color/color_black"
|
||||||
android:textSize="@dimen/map_widget_text_size" />
|
android:textSize="@dimen/map_widget_text_size"
|
||||||
|
tools:text="1048"/>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
|
@ -92,28 +90,27 @@
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:layout_marginBottom="@dimen/map_widget_text_small_bottom_margin"
|
android:layout_marginBottom="@dimen/map_widget_text_small_bottom_margin"
|
||||||
android:layout_marginLeft="4dp"
|
android:layout_marginLeft="4dp"
|
||||||
android:layout_marginRight="4dp" >
|
android:layout_marginRight="4dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/widget_text_small_shadow"
|
android:id="@+id/widget_text_small_shadow"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:singleLine="true"
|
|
||||||
tools:text="km"
|
|
||||||
android:textColor="@color/color_white"
|
android:textColor="@color/color_white"
|
||||||
android:textSize="@dimen/map_widget_text_size_small" />
|
android:textSize="@dimen/map_widget_text_size_small"
|
||||||
|
tools:text="km"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/widget_text_small"
|
android:id="@+id/widget_text_small"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:singleLine="true"
|
|
||||||
tools:text="km"
|
|
||||||
android:textColor="@color/color_black"
|
android:textColor="@color/color_black"
|
||||||
android:textSize="@dimen/map_widget_text_size_small" />
|
android:textSize="@dimen/map_widget_text_size_small"
|
||||||
|
tools:text="km"/>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -104,7 +104,7 @@
|
||||||
<dimen name="map_button_text_size">18sp</dimen>
|
<dimen name="map_button_text_size">18sp</dimen>
|
||||||
<dimen name="map_alarm_text_size">25sp</dimen>
|
<dimen name="map_alarm_text_size">25sp</dimen>
|
||||||
<dimen name="map_widget_text_bottom_margin">1sp</dimen>
|
<dimen name="map_widget_text_bottom_margin">1sp</dimen>
|
||||||
<dimen name="map_widget_text_small_bottom_margin">2sp</dimen>
|
<dimen name="map_widget_text_small_bottom_margin">3sp</dimen>
|
||||||
<dimen name="map_widget_icon_margin">2dp</dimen>
|
<dimen name="map_widget_icon_margin">2dp</dimen>
|
||||||
|
|
||||||
<dimen name="dash_margin">2dp</dimen>
|
<dimen name="dash_margin">2dp</dimen>
|
||||||
|
|
Loading…
Reference in a new issue