Merge branch 'master' of gitlab.navinfo.com:CollectVehicle/OneMapQS

This commit is contained in:
xiaoyan 2023-04-25 17:58:46 +08:00
commit 8559e4f616
50 changed files with 100 additions and 72 deletions

View File

@ -30,6 +30,21 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
} }
signingConfigs {
debug {
storeFile file('D:/WrokSpace/OneMapQS/fastmap.keystore')
storePassword "navinfo"
keyAlias "fastmap"
keyPassword "navinfo"
}
}
dexOptions {
jumboMode = true
javaMaxHeapSize "4096M"
}
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11

View File

@ -714,38 +714,38 @@ public class CommonDialog extends Dialog implements SurfaceHolder.Callback, IVid
if (indexClentCamera == 2) if (indexClentCamera == 2)
resId = R.id.main_activity_camera2; resId = R.id.main_activity_camera2;
Drawable drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a0); Drawable drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a0);
ShareUtil shareUtil = new ShareUtil(context, indexClentCamera); ShareUtil shareUtil = new ShareUtil(context, indexClentCamera);
//0为录像模式 //0为录像模式
if (shareUtil.getTakeCameraMode() == 0) { if (shareUtil.getTakeCameraMode() == 0) {
switch (statusType) { switch (statusType) {
case 0: case 0:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a0); drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a0);
break; break;
case 1: case 1:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a1); drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a1);
break; break;
case 2: case 2:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a2); drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a2);
break; break;
case 3: case 3:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a3); drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a3);
break; break;
} }
} else { } else {
switch (statusType) { switch (statusType) {
case 0: case 0:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_take_photo_a0); drawable = context.getResources().getDrawable(R.drawable.icon_page_take_photo_a0);
break; break;
case 1: case 1:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_take_photo_a1); drawable = context.getResources().getDrawable(R.drawable.icon_page_take_photo_a1);
break; break;
case 2: case 2:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_take_photo_a2); drawable = context.getResources().getDrawable(R.drawable.icon_page_take_photo_a2);
break; break;
case 3: case 3:
drawable = context.getResources().getDrawable(R.mipmap.icon_page_take_photo_a3); drawable = context.getResources().getDrawable(R.drawable.icon_page_take_photo_a3);
break; break;
} }
} }
@ -1597,9 +1597,9 @@ public class CommonDialog extends Dialog implements SurfaceHolder.Callback, IVid
} }
private void setmImgViewImageDrawable(int type) { private void setmImgViewImageDrawable(int type) {
Drawable drawable = getContext().getResources().getDrawable(R.mipmap.icon_camera_img); Drawable drawable = getContext().getResources().getDrawable(R.drawable.icon_camera_img);
if (type == 1) if (type == 1)
drawable = getContext().getResources().getDrawable(R.mipmap.icon_camera_take_photo_img); drawable = getContext().getResources().getDrawable(R.drawable.icon_camera_take_photo_img);
if (mImgView != null) if (mImgView != null)
mImgView.setImageDrawable(drawable); mImgView.setImageDrawable(drawable);

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@mipmap/icon_camera_on"> <item android:state_checked="true" android:drawable="@drawable/icon_camera_on">
</item> </item>
<item android:state_selected="true" android:drawable="@mipmap/icon_camera_on"> <item android:state_selected="true" android:drawable="@drawable/icon_camera_on">
</item> </item>
<item android:drawable="@mipmap/icon_camera_off"> <item android:drawable="@drawable/icon_camera_off">
</item> </item>
</selector> </selector>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@mipmap/record_select"> <item android:state_checked="true" android:drawable="@drawable/record_select">
</item> </item>
<item android:state_selected="true" android:drawable="@mipmap/record_select"> <item android:state_selected="true" android:drawable="@drawable/record_select">
</item> </item>
<item android:drawable="@mipmap/takephoto_select"> <item android:drawable="@drawable/takephoto_select">
</item> </item>
</selector> </selector>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:state_enabled="true" android:drawable="@mipmap/icon_camera_start"> <item android:state_checked="true" android:state_enabled="true" android:drawable="@drawable/icon_camera_start">
</item> </item>
<item android:state_selected="true" android:state_enabled="true" android:drawable="@mipmap/icon_camera_start"> <item android:state_selected="true" android:state_enabled="true" android:drawable="@drawable/icon_camera_start">
</item> </item>
<item android:state_enabled="false" android:drawable="@mipmap/icon_camera_start_disable"> <item android:state_enabled="false" android:drawable="@drawable/icon_camera_start_disable">
</item> </item>
<item android:drawable="@mipmap/icon_camera_end"> <item android:drawable="@drawable/icon_camera_end">
</item> </item>
</selector> </selector>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_camera_close_press" android:state_focused="true"></item> <item android:drawable="@drawable/icon_camera_close_press" android:state_focused="true"></item>
<item android:drawable="@mipmap/icon_camera_close_press" android:state_pressed="true"></item> <item android:drawable="@drawable/icon_camera_close_press" android:state_pressed="true"></item>
<item android:drawable="@mipmap/icon_camera_close_press" android:state_selected="true"></item> <item android:drawable="@drawable/icon_camera_close_press" android:state_selected="true"></item>
<item android:drawable="@mipmap/icon_camera_close_press" android:state_checked="true"></item> <item android:drawable="@drawable/icon_camera_close_press" android:state_checked="true"></item>
<item android:drawable="@mipmap/icon_camera_close_normal"></item> <item android:drawable="@drawable/icon_camera_close_normal"></item>
</selector> </selector>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false">
<item android:drawable="@mipmap/icon_page_video_a3" android:duration="1000" /> <item android:drawable="@drawable/icon_page_video_a3" android:duration="1000" />
<item android:drawable="@mipmap/icon_page_video_a0" android:duration="1000" /> <item android:drawable="@drawable/icon_page_video_a0" android:duration="1000" />
<item android:drawable="@mipmap/icon_page_video_a3" android:duration="1000" /> <item android:drawable="@drawable/icon_page_video_a3" android:duration="1000" />
<item android:drawable="@mipmap/icon_page_video_a0" android:duration="1000" /> <item android:drawable="@drawable/icon_page_video_a0" android:duration="1000" />
</animation-list> </animation-list>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false">
<item android:drawable="@mipmap/icon_page_take_photo_a3" android:duration="1000" /> <item android:drawable="@drawable/icon_page_take_photo_a3" android:duration="1000" />
<item android:drawable="@mipmap/icon_page_take_photo_a3" android:duration="1000" /> <item android:drawable="@drawable/icon_page_take_photo_a3" android:duration="1000" />
<item android:drawable="@mipmap/icon_page_take_photo_a3" android:duration="1000" /> <item android:drawable="@drawable/icon_page_take_photo_a3" android:duration="1000" />
<item android:drawable="@mipmap/icon_page_take_photo_a0" android:duration="1000" /> <item android:drawable="@drawable/icon_page_take_photo_a0" android:duration="1000" />
</animation-list> </animation-list>

View File

@ -99,7 +99,7 @@
android:layout_marginLeft="160dp" android:layout_marginLeft="160dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:onClick="@{()->mainActivity.openCamera()}" android:onClick="@{()->mainActivity.openCamera()}"
android:src="@mipmap/icon_page_video_a1" android:src="@drawable/icon_page_video_a1"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />

View File

@ -21,7 +21,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/fl_layout" android:layout_below="@+id/fl_layout"
android:background="@color/white" android:background="@android:color/white"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="15dp" android:paddingBottom="15dp"
@ -43,7 +43,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:text="默认外设相机拍照" android:text="默认外设相机拍照"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textSize="15sp" /> android:textSize="@dimen/default_font_size" />
<CheckBox <CheckBox
android:id="@+id/select_camera" android:id="@+id/select_camera"
@ -81,7 +81,7 @@
android:layout_marginBottom="1dp" android:layout_marginBottom="1dp"
android:padding="@dimen/ten" android:padding="@dimen/ten"
android:text="一键连接" android:text="一键连接"
android:textSize="@dimen/card_title_font_2size" /> android:textSize="@dimen/default_font_size" />
</LinearLayout> </LinearLayout>
<FrameLayout <FrameLayout
@ -92,35 +92,23 @@
android:background="@color/bg_gray2"> android:background="@color/bg_gray2">
<CheckBox <SurfaceView
android:id="@+id/startorendtakepicture" android:id="@+id/video"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_gravity="bottom|center_horizontal" android:layout_centerInParent="true"
android:button="@drawable/chk_icon_camera_start_stop_xml" android:background="@color/bg_gray2"
android:checked="true" android:fitsSystemWindows="true"
android:enabled="false" /> android:visibility="gone" />
<CheckBox
android:id="@+id/takephoto_or_record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom"
android:layout_margin="10dp"
android:button="@drawable/chk_icon_camera_record_or_takephoto_xml"
android:checked="true"
android:paddingLeft="@dimen/five"
android:text="录像"
android:textColor="@color/white" />
<ImageView <ImageView
android:id="@+id/video_defalut" android:id="@+id/video_defalut"
android:layout_width="148.5dp" android:layout_width="148.5dp"
android:layout_height="@dimen/camear_dialog_iv_hight" android:layout_height="@dimen/camear_dialog_iv_hight"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/camear_dialog_iv_margin_top" android:layout_marginTop="@dimen/camear_dialog_iv_margin_top"
android:src="@mipmap/icon_camera_img" /> android:src="@drawable/icon_camera_img" />
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -134,7 +122,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginLeft="@dimen/five" android:layout_marginLeft="@dimen/five"
android:src="@mipmap/icon_camera_time" /> android:src="@drawable/icon_camera_time" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -147,14 +135,26 @@
</LinearLayout> </LinearLayout>
<SurfaceView <CheckBox
android:id="@+id/video" android:id="@+id/startorendtakepicture"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_centerInParent="true" android:layout_gravity="bottom|center_horizontal"
android:background="@color/bg_gray2" android:button="@drawable/chk_icon_camera_start_stop_xml"
android:fitsSystemWindows="true" android:checked="true"
android:visibility="gone" /> android:enabled="false" />
<CheckBox
android:id="@+id/takephoto_or_record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom"
android:layout_margin="10dp"
android:paddingLeft="@dimen/five"
android:textColor="@color/white"
android:text="录像"
android:button="@drawable/chk_icon_camera_record_or_takephoto_xml"
android:checked="true" />
</FrameLayout> </FrameLayout>
</RelativeLayout> </RelativeLayout>

View File

@ -8,16 +8,29 @@
<data android:mimeType="*/*"/> <data android:mimeType="*/*"/>
</intent> </intent>
</queries> </queries>
<!-- AK鉴权 -->
<meta-data
android:name="com.baidu.lbsapi.API_KEY"
android:value="IxQi4mZGTlfv6Z9M2GRdqn4KKRbOATUU" />
<!--<meta-data <!--<meta-data
android:name="com.baidu.lbsapi.API_KEY" android:name="com.baidu.lbsapi.API_KEY"
android:value="IxQi4mZGTlfv6Z9M2GRdqn4KKRbOATUU" />--><!--BMnHEAZ8Ypq44GOBf4UqENgvCmncfFU6--> android:value="IxQi4mZGTlfv6Z9M2GRdqn4KKRbOATUU" />--><!--BMnHEAZ8Ypq44GOBf4UqENgvCmncfFU6-->
<application <application
android:allowBackup="true" android:allowBackup="true"
android:networkSecurityConfig="@xml/network_security_config"> android:networkSecurityConfig="@xml/network_security_config">
<!-- AK鉴权 -->
<meta-data
android:name="com.baidu.lbsapi.API_KEY"
android:value="BMnHEAZ8Ypq44GOBf4UqENgvCmncfFU6" />
<service
android:name="com.baidu.location.f"
android:enabled="true"
android:process=":remote">
<intent-filter>
<action android:name="com.baidu.location.service_v2.2" />
</intent-filter>
</service>
</application> </application>
</manifest> </manifest>