Merge branch 'master' of gitlab.navinfo.com:CollectVehicle/OneMapQS
@ -30,6 +30,21 @@ android {
|
||||
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 {
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
|
@ -714,38 +714,38 @@ public class CommonDialog extends Dialog implements SurfaceHolder.Callback, IVid
|
||||
if (indexClentCamera == 2)
|
||||
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);
|
||||
//0为录像模式
|
||||
if (shareUtil.getTakeCameraMode() == 0) {
|
||||
switch (statusType) {
|
||||
case 0:
|
||||
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a0);
|
||||
drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a0);
|
||||
break;
|
||||
case 1:
|
||||
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a1);
|
||||
drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a1);
|
||||
break;
|
||||
case 2:
|
||||
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a2);
|
||||
drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a2);
|
||||
break;
|
||||
case 3:
|
||||
drawable = context.getResources().getDrawable(R.mipmap.icon_page_video_a3);
|
||||
drawable = context.getResources().getDrawable(R.drawable.icon_page_video_a3);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (statusType) {
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
@ -1597,9 +1597,9 @@ public class CommonDialog extends Dialog implements SurfaceHolder.Callback, IVid
|
||||
}
|
||||
|
||||
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)
|
||||
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)
|
||||
mImgView.setImageDrawable(drawable);
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_close_normal.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_close_press.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_end.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_img.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_off.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_on.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_start.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_start_disable.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_take_photo_img.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_camera_time.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_page_take_photo_a0.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_page_take_photo_a1.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_page_take_photo_a2.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_page_take_photo_a3.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_page_video_a1.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_page_video_a2.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
app/src/main/res/drawable-xxhdpi/icon_page_video_a3.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/res/drawable-xxhdpi/record_select.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-xxhdpi/takephoto_select.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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 android:state_selected="true" android:drawable="@mipmap/icon_camera_on">
|
||||
<item android:state_selected="true" android:drawable="@drawable/icon_camera_on">
|
||||
</item>
|
||||
<item android:drawable="@mipmap/icon_camera_off">
|
||||
<item android:drawable="@drawable/icon_camera_off">
|
||||
</item>
|
||||
</selector>
|
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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 android:state_selected="true" android:drawable="@mipmap/record_select">
|
||||
<item android:state_selected="true" android:drawable="@drawable/record_select">
|
||||
</item>
|
||||
<item android:drawable="@mipmap/takephoto_select">
|
||||
<item android:drawable="@drawable/takephoto_select">
|
||||
</item>
|
||||
</selector>
|
@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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 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 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 android:drawable="@mipmap/icon_camera_end">
|
||||
<item android:drawable="@drawable/icon_camera_end">
|
||||
</item>
|
||||
</selector>
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="@mipmap/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="@mipmap/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_press" android:state_focused="true"></item>
|
||||
<item android:drawable="@drawable/icon_camera_close_press" android:state_pressed="true"></item>
|
||||
<item android:drawable="@drawable/icon_camera_close_press" android:state_selected="true"></item>
|
||||
<item android:drawable="@drawable/icon_camera_close_press" android:state_checked="true"></item>
|
||||
<item android:drawable="@drawable/icon_camera_close_normal"></item>
|
||||
</selector>
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="@mipmap/icon_page_video_a0" android:duration="1000" />
|
||||
<item android:drawable="@mipmap/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_a3" android:duration="1000" />
|
||||
<item android:drawable="@drawable/icon_page_video_a0" android:duration="1000" />
|
||||
<item android:drawable="@drawable/icon_page_video_a3" android:duration="1000" />
|
||||
<item android:drawable="@drawable/icon_page_video_a0" android:duration="1000" />
|
||||
</animation-list>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="@mipmap/icon_page_take_photo_a3" android:duration="1000" />
|
||||
<item android:drawable="@mipmap/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_a3" android:duration="1000" />
|
||||
<item android:drawable="@drawable/icon_page_take_photo_a3" android:duration="1000" />
|
||||
<item android:drawable="@drawable/icon_page_take_photo_a3" android:duration="1000" />
|
||||
<item android:drawable="@drawable/icon_page_take_photo_a0" android:duration="1000" />
|
||||
</animation-list>
|
||||
|
@ -99,7 +99,7 @@
|
||||
android:layout_marginLeft="160dp"
|
||||
android:layout_marginTop="20dp"
|
||||
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_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/fl_layout"
|
||||
android:background="@color/white"
|
||||
android:background="@android:color/white"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
@ -43,7 +43,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:text="默认外设相机拍照"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="15sp" />
|
||||
android:textSize="@dimen/default_font_size" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/select_camera"
|
||||
@ -81,7 +81,7 @@
|
||||
android:layout_marginBottom="1dp"
|
||||
android:padding="@dimen/ten"
|
||||
android:text="一键连接"
|
||||
android:textSize="@dimen/card_title_font_2size" />
|
||||
android:textSize="@dimen/default_font_size" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
@ -92,35 +92,23 @@
|
||||
android:background="@color/bg_gray2">
|
||||
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/startorendtakepicture"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:button="@drawable/chk_icon_camera_start_stop_xml"
|
||||
android:checked="true"
|
||||
android:enabled="false" />
|
||||
<SurfaceView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@color/bg_gray2"
|
||||
android:fitsSystemWindows="true"
|
||||
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
|
||||
android:id="@+id/video_defalut"
|
||||
android:layout_width="148.5dp"
|
||||
android:layout_height="@dimen/camear_dialog_iv_hight"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/camear_dialog_iv_margin_top"
|
||||
android:src="@mipmap/icon_camera_img" />
|
||||
android:src="@drawable/icon_camera_img" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
@ -134,7 +122,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/five"
|
||||
android:src="@mipmap/icon_camera_time" />
|
||||
android:src="@drawable/icon_camera_time" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@ -147,14 +135,26 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<SurfaceView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@color/bg_gray2"
|
||||
android:fitsSystemWindows="true"
|
||||
android:visibility="gone" />
|
||||
<CheckBox
|
||||
android:id="@+id/startorendtakepicture"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:button="@drawable/chk_icon_camera_start_stop_xml"
|
||||
android:checked="true"
|
||||
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>
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -8,16 +8,29 @@
|
||||
<data android:mimeType="*/*"/>
|
||||
</intent>
|
||||
</queries>
|
||||
<!-- AK鉴权 -->
|
||||
<meta-data
|
||||
android:name="com.baidu.lbsapi.API_KEY"
|
||||
android:value="IxQi4mZGTlfv6Z9M2GRdqn4KKRbOATUU" />
|
||||
|
||||
|
||||
<!--<meta-data
|
||||
android:name="com.baidu.lbsapi.API_KEY"
|
||||
android:value="IxQi4mZGTlfv6Z9M2GRdqn4KKRbOATUU" />--><!--BMnHEAZ8Ypq44GOBf4UqENgvCmncfFU6-->
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
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>
|
||||
|
||||
</manifest>
|