调整左侧布局和右侧顶部布局

This commit is contained in:
tongchenfei
2020-07-16 16:55:03 +08:00
parent b5d321f138
commit 4445f32b29
33 changed files with 488 additions and 37 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -39,132 +39,132 @@
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_block_up"
android:text="拥堵"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
android:textColor="#fff"
app:layout_constraintHorizontal_chainStyle="spread_inside"
android:gravity="center"
app:layout_constraintTop_toBottomOf="@+id/btn_share_title"
app:layout_constraintRight_toLeftOf="@+id/tvTrafficCheck"
app:layout_constraintLeft_toLeftOf="@+id/vBg"
android:layout_marginStart="@dimen/dp_116"
android:layout_marginTop="@dimen/dp_78"
android:drawablePadding="@dimen/dp_30" />
android:layout_marginStart="@dimen/share_module_btn_margin_left_right"
android:layout_marginTop="@dimen/share_module_first_btn_margin_top"
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvTrafficCheck"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_traffic_check"
android:text="交通检查"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
android:textColor="#fff"
android:gravity="center"
app:layout_constraintTop_toTopOf="@+id/tvBlock"
app:layout_constraintLeft_toRightOf="@id/tvBlock"
app:layout_constraintRight_toLeftOf="@+id/tvClosure"
android:drawablePadding="@dimen/dp_30" />
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvClosure"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_road_closure"
android:text="封路"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
app:layout_constraintTop_toTopOf="@+id/tvBlock"
app:layout_constraintLeft_toRightOf="@+id/tvTrafficCheck"
app:layout_constraintRight_toLeftOf="@+id/tvAccident"
android:textColor="#fff"
android:gravity="center"
android:drawablePadding="@dimen/dp_30" />
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvAccident"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_accident"
android:text="事故"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
app:layout_constraintTop_toTopOf="@+id/tvBlock"
app:layout_constraintLeft_toRightOf="@+id/tvClosure"
app:layout_constraintRight_toLeftOf="@+id/tvConstruction"
android:textColor="#fff"
android:gravity="center"
android:drawablePadding="@dimen/dp_30" />
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvConstruction"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_road_construction"
android:text="施工"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
app:layout_constraintTop_toTopOf="@+id/tvBlock"
app:layout_constraintLeft_toRightOf="@+id/tvAccident"
app:layout_constraintRight_toRightOf="@+id/vBg"
android:layout_marginEnd="@dimen/dp_116"
android:layout_marginEnd="@dimen/share_module_btn_margin_left_right"
android:textColor="#fff"
android:gravity="center"
android:drawablePadding="@dimen/dp_30" />
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvRealTimeTraffic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_real_time_traffic"
android:text="实时路况"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
android:textColor="#fff"
android:gravity="center"
app:layout_constraintTop_toBottomOf="@+id/tvBlock"
app:layout_constraintLeft_toLeftOf="@+id/tvBlock"
android:layout_marginTop="@dimen/dp_62"
android:drawablePadding="@dimen/dp_30" />
android:layout_marginTop="@dimen/share_module_sec_btn_margin_top"
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvSeekHelp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_seek_help"
android:text="故障求助"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
android:textColor="#fff"
android:gravity="center"
app:layout_constraintTop_toBottomOf="@+id/tvTrafficCheck"
app:layout_constraintLeft_toLeftOf="@+id/tvTrafficCheck"
android:layout_marginTop="@dimen/dp_62"
android:drawablePadding="@dimen/dp_30" />
android:layout_marginTop="@dimen/share_module_sec_btn_margin_top"
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvStagnantWater"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_stagnant_water"
android:text="道路积水"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
android:textColor="#fff"
android:gravity="center"
app:layout_constraintTop_toBottomOf="@+id/tvClosure"
app:layout_constraintLeft_toLeftOf="@+id/tvClosure"
android:layout_marginTop="@dimen/dp_62"
android:drawablePadding="@dimen/dp_30" />
android:layout_marginTop="@dimen/share_module_sec_btn_margin_top"
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvRoadIcy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_road_icy"
android:text="道路结冰"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
android:textColor="#fff"
app:layout_constraintTop_toBottomOf="@+id/tvAccident"
app:layout_constraintLeft_toLeftOf="@+id/tvAccident"
android:layout_marginTop="@dimen/dp_62"
android:layout_marginTop="@dimen/share_module_sec_btn_margin_top"
android:gravity="center"
android:drawablePadding="@dimen/dp_30" />
android:drawablePadding="@dimen/share_module_drawable_padding" />
<TextView
android:id="@+id/tvDenseFog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/share_dense_fog"
android:text="浓雾"
android:textSize="@dimen/dp_32"
android:textSize="@dimen/share_module_btn_text_size"
android:textColor="#fff"
app:layout_constraintTop_toBottomOf="@+id/tvConstruction"
app:layout_constraintLeft_toLeftOf="@+id/tvConstruction"
android:layout_marginTop="@dimen/dp_62"
android:layout_marginTop="@dimen/share_module_sec_btn_margin_top"
android:gravity="center"
android:drawablePadding="@dimen/dp_30" />
android:drawablePadding="@dimen/share_module_drawable_padding" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="share_module_width">1318px</dimen>
<dimen name="share_module_height">727px</dimen>
<dimen name="share_module_margin_top">64px</dimen>
<dimen name="share_module_title_margin_top">51px</dimen>
<dimen name="share_module_first_margin_left">200px</dimen>
<dimen name="share_module_margin_left">210px</dimen>
<dimen name="share_module_tv_margin_top">30px</dimen>
<dimen name="share_module_image_width">160px</dimen>
<dimen name="share_module_image_width_second">198px</dimen>
<dimen name="share_module_bottom_margin_top">55px</dimen>
<dimen name="share_module_first_btn_margin_top">70px</dimen>
<dimen name="share_module_sec_btn_margin_top">56px</dimen>
<dimen name="share_module_drawable_padding">27px</dimen>
<dimen name="share_module_btn_margin_left_right">105px</dimen>
<!--字体-->
<dimen name="share_module_title_content">36px</dimen>
<dimen name="share_module_item">32px</dimen>
<dimen name="share_module_bottom_size">28px</dimen>
<dimen name="share_module_btn_text_size">28px</dimen>
</resources>

View File

@@ -10,11 +10,16 @@
<dimen name="share_module_image_width">160px</dimen>
<dimen name="share_module_image_width_second">198px</dimen>
<dimen name="share_module_bottom_margin_top">55px</dimen>
<dimen name="share_module_first_btn_margin_top">78px</dimen>
<dimen name="share_module_sec_btn_margin_top">62px</dimen>
<dimen name="share_module_drawable_padding">30px</dimen>
<dimen name="share_module_btn_margin_left_right">116px</dimen>
<!--字体-->
<dimen name="share_module_title_content">40px</dimen>
<dimen name="share_module_item">32px</dimen>
<dimen name="share_module_bottom_size">28px</dimen>
<dimen name="share_module_btn_text_size">32px</dimen>
</resources>

View File

@@ -11,10 +11,15 @@
<dimen name="share_module_image_width">85px</dimen>
<dimen name="share_module_image_width_second">110px</dimen>
<dimen name="share_module_bottom_margin_top">28px</dimen>
<dimen name="share_module_first_btn_margin_top">42.6px</dimen>
<dimen name="share_module_sec_btn_margin_top">34px</dimen>
<dimen name="share_module_drawable_padding">16.4px</dimen>
<dimen name="share_module_btn_margin_left_right">63.4px</dimen>
<!--字体-->
<dimen name="share_module_title_content">22px</dimen>
<dimen name="share_module_item">18px</dimen>
<dimen name="share_module_bottom_size">15px</dimen>
<dimen name="share_module_btn_text_size">17.5px</dimen>
</resources>