fix: 修改自动采集的bug
This commit is contained in:
6
app/src/main/res/drawable/round_bg_gray.xml
Normal file
6
app/src/main/res/drawable/round_bg_gray.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/colorGrays"/>
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/round_bg_white.xml
Normal file
6
app/src/main/res/drawable/round_bg_white.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/white"/>
|
||||
</shape>
|
||||
14
app/src/main/res/drawable/selector_round_bg.xml
Normal file
14
app/src/main/res/drawable/selector_round_bg.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/round_bg_gray"/> <!-- pressed -->
|
||||
<item android:state_focused="true"
|
||||
android:drawable="@drawable/round_bg_gray"/> <!-- focused -->
|
||||
<item android:state_selected="true"
|
||||
android:drawable="@drawable/round_bg_gray"/>
|
||||
<item android:state_checked="true"
|
||||
android:drawable="@drawable/round_bg_gray"/>
|
||||
<item android:state_enabled="false"
|
||||
android:drawable="@drawable/round_bg_gray"/>
|
||||
<item android:drawable="@drawable/round_bg_white" /> <!-- default -->
|
||||
</selector>
|
||||
@@ -43,12 +43,13 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_view"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="157dp"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="50dp"
|
||||
android:background="@android:color/transparent"
|
||||
app:layout_constraintHeight_default="percent"
|
||||
app:layout_constraintHeight_percent="0.4"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintWidth_default="percent"
|
||||
app:layout_constraintWidth_percent="0.4" />
|
||||
|
||||
@@ -117,7 +118,9 @@
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:src="@mipmap/mine_location"
|
||||
android:background="@drawable/selector_round_bg"
|
||||
android:src="@mipmap/location_auto_pic"
|
||||
android:padding="8dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintLeft_toLeftOf="@id/iv_zoom_del"
|
||||
app:layout_constraintTop_toBottomOf="@id/iv_zoom_del" />
|
||||
@@ -138,6 +141,7 @@
|
||||
android:id="@+id/btn_setting"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:text="设置"
|
||||
android:layout_marginTop="@dimen/default_widget_padding"
|
||||
app:layout_constraintTop_toBottomOf="@id/btn_switch"
|
||||
@@ -146,6 +150,7 @@
|
||||
<Switch
|
||||
android:id="@+id/location_switch"
|
||||
android:text="启用定位"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
|
||||
@@ -92,7 +92,6 @@
|
||||
android:background="@drawable/atlas_selector"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/iv_zoom_del"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_zoom_add" />
|
||||
|
||||
@@ -102,7 +101,6 @@
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@mipmap/submit"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/iv_refrish"
|
||||
app:layout_constraintEnd_toEndOf="@+id/cb_map_type"
|
||||
app:layout_constraintLeft_toLeftOf="@id/cb_map_type"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_zoom_del" />
|
||||
@@ -112,19 +110,20 @@
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@mipmap/filter"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/iv_location"
|
||||
app:layout_constraintLeft_toLeftOf="@id/cb_map_type"
|
||||
app:layout_constraintLeft_toLeftOf="@id/iv_submit"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_refrish" />
|
||||
|
||||
<Button
|
||||
<ImageView
|
||||
android:id="@+id/iv_auto_match_road"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@mipmap/auto_camera"
|
||||
android:background="@drawable/selector_round_bg"
|
||||
android:text="道路自动匹配"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"/>
|
||||
android:visibility="gone"
|
||||
android:padding="8dp"
|
||||
app:layout_constraintLeft_toLeftOf="@id/iv_submit"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_location"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_zoom_add"
|
||||
|
||||
BIN
app/src/main/res/mipmap-xxhdpi/auto_camera.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/auto_camera.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/location_auto_pic.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/location_auto_pic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Reference in New Issue
Block a user