新接入FaceUnity美颜SDK
This commit is contained in:
6
FaceUnity/src/main/res/color/bottom_radio_color.xml
Normal file
6
FaceUnity/src/main/res/color/bottom_radio_color.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/main_color" android:state_checked="true" />
|
||||
<item android:color="@color/main_color" android:state_selected="true" />
|
||||
<item android:color="@android:color/white" />
|
||||
</selector>
|
||||
20
FaceUnity/src/main/res/color/dsb_progress_color_list.xml
Normal file
20
FaceUnity/src/main/res/color/dsb_progress_color_list.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) Gustavo Claramunt (AnderWeb) 2014.
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/dsb_disabled_color" android:state_enabled="false" />
|
||||
<item android:color="@color/dsb_progress_color" />
|
||||
</selector>
|
||||
22
FaceUnity/src/main/res/color/dsb_ripple_color_list.xml
Normal file
22
FaceUnity/src/main/res/color/dsb_ripple_color_list.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) Gustavo Claramunt (AnderWeb) 2014.
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/dsb_disabled_color" android:state_enabled="false" />
|
||||
<item android:color="@color/dsb_ripple_color_focused" android:state_focused="true" />
|
||||
<item android:color="@color/dsb_ripple_color_pressed" android:state_pressed="true" />
|
||||
<item android:color="@color/dsb_ripple_color_focused" />
|
||||
</selector>
|
||||
20
FaceUnity/src/main/res/color/dsb_track_color_list.xml
Normal file
20
FaceUnity/src/main/res/color/dsb_track_color_list.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) Gustavo Claramunt (AnderWeb) 2014.
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/dsb_disabled_color" android:state_enabled="false" />
|
||||
<item android:color="@color/dsb_track_color" />
|
||||
</selector>
|
||||
20
FaceUnity/src/main/res/color/tv_main_color_selector.xml
Normal file
20
FaceUnity/src/main/res/color/tv_main_color_selector.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) Gustavo Claramunt (AnderWeb) 2014.
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/main_color" android:state_selected="true" />
|
||||
<item android:color="@color/main_color_c5c5c5" />
|
||||
</selector>
|
||||
5
FaceUnity/src/main/res/drawable/bg_confirm_dialog.xml
Normal file
5
FaceUnity/src/main/res/drawable/bg_confirm_dialog.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="10dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners
|
||||
android:bottomLeftRadius="10dp"
|
||||
android:bottomRightRadius="10dp" />
|
||||
<gradient
|
||||
android:endColor="#682EB8"
|
||||
android:startColor="#7D219E" />
|
||||
</shape>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/bg_shape_oval_theme" android:state_selected="true" />
|
||||
<item android:drawable="@color/transparent" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/bg_shape_rect_theme" android:state_selected="true" />
|
||||
<item android:drawable="@color/transparent" />
|
||||
</selector>
|
||||
8
FaceUnity/src/main/res/drawable/bg_radio_group.xml
Normal file
8
FaceUnity/src/main/res/drawable/bg_radio_group.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="4dp" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
11
FaceUnity/src/main/res/drawable/bg_radio_left.xml
Normal file
11
FaceUnity/src/main/res/drawable/bg_radio_left.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners
|
||||
android:bottomLeftRadius="4dp"
|
||||
android:topLeftRadius="4dp" />
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
11
FaceUnity/src/main/res/drawable/bg_radio_left_check.xml
Normal file
11
FaceUnity/src/main/res/drawable/bg_radio_left_check.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners
|
||||
android:bottomLeftRadius="4dp"
|
||||
android:topLeftRadius="4dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/bg_radio_left_check" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/bg_radio_left" />
|
||||
</selector>
|
||||
21
FaceUnity/src/main/res/drawable/bg_radio_middle.xml
Normal file
21
FaceUnity/src/main/res/drawable/bg_radio_middle.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_checked="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<layer-list >
|
||||
<item
|
||||
android:left="-1dp" >
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
</item>
|
||||
</selector>
|
||||
14
FaceUnity/src/main/res/drawable/bg_radio_right.xml
Normal file
14
FaceUnity/src/main/res/drawable/bg_radio_right.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:left="-1dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners
|
||||
android:bottomRightRadius="4dp"
|
||||
android:topRightRadius="4dp" />
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
11
FaceUnity/src/main/res/drawable/bg_radio_right_check.xml
Normal file
11
FaceUnity/src/main/res/drawable/bg_radio_right_check.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners
|
||||
android:bottomRightRadius="4dp"
|
||||
android:topRightRadius="4dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/bg_radio_right_check" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/bg_radio_right" />
|
||||
</selector>
|
||||
20
FaceUnity/src/main/res/drawable/bg_seek_bar.xml
Normal file
20
FaceUnity/src/main/res/drawable/bg_seek_bar.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@android:id/background"
|
||||
android:drawable="@mipmap/bg_live_seek_bar_light" />
|
||||
<item android:id="@android:id/secondaryProgress">
|
||||
<clip>
|
||||
<shape>
|
||||
<solid android:color="#00FFFFFF" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<solid android:color="#00FFFFFF" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
8
FaceUnity/src/main/res/drawable/bg_shape_oval_theme.xml
Normal file
8
FaceUnity/src/main/res/drawable/bg_shape_oval_theme.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<stroke
|
||||
android:width="3dp"
|
||||
android:color="@color/main_color" />
|
||||
<solid android:color="@android:color/transparent" />
|
||||
</shape>
|
||||
8
FaceUnity/src/main/res/drawable/bg_shape_rect_theme.xml
Normal file
8
FaceUnity/src/main/res/drawable/bg_shape_rect_theme.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="3dp" />
|
||||
<stroke
|
||||
android:width="2dp"
|
||||
android:color="@color/main_color" />
|
||||
</shape>
|
||||
6
FaceUnity/src/main/res/drawable/bg_toast_more.xml
Normal file
6
FaceUnity/src/main/res/drawable/bg_toast_more.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="rectangle">
|
||||
<solid android:color="#BD050F14" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_angle_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_angle_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_angle_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_angle_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_cheek_bones_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_cheek_bones_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_cheek_bones_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_cheek_bones_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_chin_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_chin_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_chin_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_chin_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_distance_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_distance_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_distance_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_distance_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_enlarge_eye_level_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_enlarge_eye_level_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_enlarge_eye_level_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_enlarge_eye_level_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_cheekthin_level_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_cheekthin_level_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_cheekthin_level_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_cheekthin_level_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_little_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_little_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_little_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_little_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_narrow_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_narrow_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_narrow_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_narrow_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_short_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_short_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_short_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_short_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_v_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_v_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_v_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_face_v_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_forehead_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_forehead_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_forehead_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_forehead_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_lower_jaw_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_lower_jaw_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_lower_jaw_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_lower_jaw_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_mouth_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_mouth_bones_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_mouth_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_mouth_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_open_eyes_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_open_eyes_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_open_eyes_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_open_eyes_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_proboscis_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_proboscis_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_proboscis_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_proboscis_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_round_eye_level_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_round_eye_level_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_round_eye_level_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_round_eye_level_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_shrinking_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_shrinking_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_shrinking_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_shrinking_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_smile_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_smile_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_smile_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_smile_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_thin_nose_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_thin_nose_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_thin_nose_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_thin_nose_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_buffing_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_buffing_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_buffing_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_buffing_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_color_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_color_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_color_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_color_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_dark_circles_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_dark_circles_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_dark_circles_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_dark_circles_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_eyes_bright_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_eyes_bright_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_eyes_bright_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_eyes_bright_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_red_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_red_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_red_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_red_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_sharpen_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_sharpen_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_sharpen_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_sharpen_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_teeth_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_teeth_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_teeth_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_teeth_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_wrinkle_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_wrinkle_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_beauty_box_wrinkle_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_beauty_box_wrinkle_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_hip_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_hip_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_hip_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_hip_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_little_head_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_little_head_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_little_head_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_little_head_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_shoulder_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_shoulder_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_shoulder_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_shoulder_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_slimming_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_slimming_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_slimming_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_slimming_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_stovepipe_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_stovepipe_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_stovepipe_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_stovepipe_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_thin_leg_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_thin_leg_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_thin_leg_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_thin_leg_open_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_waist_close_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_waist_close_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/icon_body_waist_open_checked" android:state_selected="true" />
|
||||
<item android:drawable="@mipmap/icon_body_waist_open_normal" />
|
||||
</selector>
|
||||
54
FaceUnity/src/main/res/layout/dialog_confirm.xml
Normal file
54
FaceUnity/src/main/res/layout/dialog_confirm.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="281dp"
|
||||
android:layout_height="147dp"
|
||||
android:background="@drawable/bg_confirm_dialog">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="39dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/dialog_confirm_delete"
|
||||
android:textColor="@color/btn_live_photo_text"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="265dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="97dp"
|
||||
android:background="@color/divider_line_color"
|
||||
android:layout_centerHorizontal="true"/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_marginBottom="7dp"
|
||||
android:background="@color/divider_line_color"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_alignParentBottom="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cancel"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="48dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/cancel"
|
||||
android:textColor="@color/btn_live_photo_text"
|
||||
android:textSize="16sp"
|
||||
android:layout_alignParentBottom="true"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_confirm"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="48dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/confirm"
|
||||
android:textColor="@color/main_color"
|
||||
android:textSize="16sp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
98
FaceUnity/src/main/res/layout/layout_body_beauty_control.xml
Normal file
98
FaceUnity/src/main/res/layout/layout_body_beauty_control.xml
Normal file
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/cyt_main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/switch_compat"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/x20"
|
||||
android:layout_marginBottom="@dimen/x20"
|
||||
android:checked="true"
|
||||
android:theme="@style/SwitchCompat"
|
||||
android:layout_marginStart="@dimen/x10" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x268"
|
||||
android:background="#BD050F14"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.yunbao.faceunity.seekbar.DiscreteSeekBar
|
||||
android:id="@+id/seek_bar"
|
||||
android:layout_width="@dimen/x528"
|
||||
android:layout_height="@dimen/x48"
|
||||
android:layout_marginTop="@dimen/x24"
|
||||
android:layout_marginBottom="@dimen/x16"
|
||||
app:dsb_indicatorColor="@color/main_color"
|
||||
app:dsb_indicatorElevation="0dp"
|
||||
app:dsb_indicatorPopupEnabled="true"
|
||||
app:dsb_max="100"
|
||||
app:dsb_min="0"
|
||||
app:dsb_progressColor="@color/main_color"
|
||||
app:dsb_rippleColor="@color/main_color"
|
||||
app:dsb_scrubberHeight="@dimen/x4"
|
||||
app:dsb_thumbSize="@dimen/x32"
|
||||
app:dsb_trackBaseHeight="@dimen/x16"
|
||||
app:dsb_trackColor="@color/colorWhite"
|
||||
app:dsb_trackHeight="@dimen/x4"
|
||||
app:dsb_value="0" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x180"
|
||||
android:layout_gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lyt_beauty_recover"
|
||||
android:layout_width="@dimen/x132"
|
||||
android:layout_height="@dimen/x180"
|
||||
android:layout_gravity="bottom"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_beauty_recover"
|
||||
android:layout_width="@dimen/x88"
|
||||
android:layout_height="@dimen/x88"
|
||||
android:layout_marginBottom="@dimen/x18"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/icon_control_recover" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_beauty_recover"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="@dimen/x30"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/recover"
|
||||
android:textColor="@color/tv_main_color_selector"
|
||||
android:textSize="@dimen/text_size_20" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/iv_line"
|
||||
android:layout_width="@dimen/x1"
|
||||
android:layout_height="@dimen/x40"
|
||||
android:layout_marginTop="@dimen/x40"
|
||||
android:background="@color/divider_line_color" />
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x180" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
7
FaceUnity/src/main/res/layout/layout_effect_control.xml
Normal file
7
FaceUnity/src/main/res/layout/layout_effect_control.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x172"
|
||||
android:background="@color/primary_list"
|
||||
android:padding="@dimen/x16" />
|
||||
146
FaceUnity/src/main/res/layout/layout_face_beauty_control.xml
Normal file
146
FaceUnity/src/main/res/layout/layout_face_beauty_control.xml
Normal file
@@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/switch_compat"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/x20"
|
||||
android:layout_marginBottom="@dimen/x20"
|
||||
android:checked="true"
|
||||
android:theme="@style/SwitchCompat"
|
||||
android:layout_marginLeft="@dimen/x10" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/fyt_bottom_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/primary_list"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.yunbao.faceunity.seekbar.DiscreteSeekBar
|
||||
android:id="@+id/seek_bar"
|
||||
android:layout_width="@dimen/x528"
|
||||
android:layout_height="@dimen/x48"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/x24"
|
||||
android:layout_marginBottom="@dimen/x15"
|
||||
app:dsb_indicatorColor="@color/main_color"
|
||||
app:dsb_indicatorElevation="0dp"
|
||||
app:dsb_indicatorPopupEnabled="true"
|
||||
app:dsb_max="100"
|
||||
app:dsb_min="0"
|
||||
app:dsb_progressColor="@color/main_color"
|
||||
app:dsb_rippleColor="@color/main_color"
|
||||
app:dsb_scrubberHeight="@dimen/x4"
|
||||
app:dsb_thumbSize="@dimen/x32"
|
||||
app:dsb_trackBaseHeight="@dimen/x16"
|
||||
app:dsb_trackColor="@color/colorWhite"
|
||||
app:dsb_trackHeight="@dimen/x4"
|
||||
app:dsb_value="0" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x180"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lyt_beauty_recover"
|
||||
android:layout_width="@dimen/x132"
|
||||
android:layout_height="@dimen/x180"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_beauty_recover"
|
||||
android:layout_width="@dimen/x88"
|
||||
android:layout_height="@dimen/x88"
|
||||
android:layout_marginBottom="@dimen/x18"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/icon_control_recover" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_beauty_recover"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginBottom="@dimen/x30"
|
||||
android:text="@string/recover"
|
||||
android:textColor="@color/tv_main_color_selector"
|
||||
android:textSize="@dimen/text_size_20" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:id="@+id/iv_line"
|
||||
android:layout_width="@dimen/x1"
|
||||
android:layout_height="@dimen/x40"
|
||||
android:layout_marginTop="@dimen/x24"
|
||||
android:background="@color/divider_line_color" />
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x180"
|
||||
android:layout_gravity="bottom" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x1"
|
||||
android:background="@color/divider_line_color" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckGroup
|
||||
android:id="@+id/beauty_radio_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x98"
|
||||
android:background="@color/primary_list"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckBoxCompat
|
||||
android:id="@+id/beauty_radio_skin_beauty"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty_radio_skin_beauty"
|
||||
android:textColor="@color/bottom_radio_color"
|
||||
android:textSize="@dimen/text_size_26"/>
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckBoxCompat
|
||||
android:id="@+id/beauty_radio_face_shape"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty_radio_face_shape"
|
||||
android:textColor="@color/bottom_radio_color"
|
||||
android:textSize="@dimen/text_size_26"/>
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckBoxCompat
|
||||
android:id="@+id/beauty_radio_filter"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty_radio_filter"
|
||||
android:textColor="@color/bottom_radio_color"
|
||||
android:textSize="@dimen/text_size_26" />
|
||||
</com.yunbao.faceunity.checkbox.CheckGroup>
|
||||
</LinearLayout>
|
||||
109
FaceUnity/src/main/res/layout/layout_faceunity.xml
Normal file
109
FaceUnity/src/main/res/layout/layout_faceunity.xml
Normal file
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
|
||||
<com.yunbao.faceunity.control.BodyBeautyControlView
|
||||
android:id="@+id/control_body"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.yunbao.faceunity.control.FaceBeautyControlView
|
||||
android:id="@+id/control_beauty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom" />
|
||||
|
||||
<com.yunbao.faceunity.control.MakeupControlView
|
||||
android:id="@+id/control_makeup"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.yunbao.faceunity.control.PropControlView
|
||||
android:id="@+id/control_prop"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:visibility="gone" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x1"
|
||||
android:background="@color/primary_list"
|
||||
android:src="@color/divider_line_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckGroup
|
||||
android:id="@+id/group_function"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x98"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/primary_list"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckBoxCompat
|
||||
android:id="@+id/radio_beauty"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/home_function_name_beauty"
|
||||
android:textColor="@color/bottom_radio_color"
|
||||
android:textSize="@dimen/text_size_26" />
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckBoxCompat
|
||||
android:id="@+id/radio_sticker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/home_function_name_sticker"
|
||||
android:textColor="@color/bottom_radio_color"
|
||||
android:textSize="@dimen/text_size_26" />
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckBoxCompat
|
||||
android:id="@+id/radio_makeup"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/home_function_name_makeup"
|
||||
android:textColor="@color/bottom_radio_color"
|
||||
android:textSize="@dimen/text_size_26" />
|
||||
|
||||
<com.yunbao.faceunity.checkbox.CheckBoxCompat
|
||||
android:id="@+id/radio_body"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/transparent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/home_function_name_beauty_body"
|
||||
android:textColor="@color/bottom_radio_color"
|
||||
android:textSize="@dimen/text_size_26" />
|
||||
|
||||
</com.yunbao.faceunity.checkbox.CheckGroup>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
36
FaceUnity/src/main/res/layout/layout_make_up_control.xml
Normal file
36
FaceUnity/src/main/res/layout/layout_make_up_control.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x290"
|
||||
android:background="@color/primary_list"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.yunbao.faceunity.seekbar.DiscreteSeekBar
|
||||
android:id="@+id/seek_bar"
|
||||
android:layout_width="@dimen/x528"
|
||||
android:layout_height="@dimen/x48"
|
||||
android:layout_marginTop="@dimen/x24"
|
||||
android:layout_marginBottom="@dimen/x38"
|
||||
android:visibility="invisible"
|
||||
app:dsb_indicatorColor="@color/main_color"
|
||||
app:dsb_indicatorElevation="0dp"
|
||||
app:dsb_indicatorPopupEnabled="true"
|
||||
app:dsb_max="100"
|
||||
app:dsb_min="0"
|
||||
app:dsb_progressColor="@color/main_color"
|
||||
app:dsb_rippleColor="@color/main_color"
|
||||
app:dsb_scrubberHeight="@dimen/x4"
|
||||
app:dsb_thumbSize="@dimen/x32"
|
||||
app:dsb_trackBaseHeight="@dimen/x16"
|
||||
app:dsb_trackColor="@color/colorWhite"
|
||||
app:dsb_trackHeight="@dimen/x4"
|
||||
app:dsb_value="0" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/x180" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/x140"
|
||||
android:layout_height="@dimen/x140"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/x10">
|
||||
|
||||
<com.yunbao.faceunity.widget.CircleImageView
|
||||
android:id="@+id/iv_control"
|
||||
android:layout_width="@dimen/x120"
|
||||
android:layout_height="@dimen/x120"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/bg_control_oval_selector"
|
||||
android:padding="@dimen/x6" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/x138"
|
||||
android:layout_height="@dimen/x116">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_control"
|
||||
android:layout_width="@dimen/x116"
|
||||
android:layout_height="@dimen/x116"
|
||||
android:background="@drawable/bg_control_square_selector"
|
||||
android:padding="@dimen/x4"
|
||||
android:scaleType="centerInside" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/x132"
|
||||
android:layout_height="@dimen/x180"
|
||||
android:gravity="center_horizontal|bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_control"
|
||||
android:layout_width="@dimen/x88"
|
||||
android:layout_height="@dimen/x88"
|
||||
android:layout_marginBottom="@dimen/x18"
|
||||
android:scaleType="centerInside" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_control"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginBottom="@dimen/x30"
|
||||
android:text="@string/recover"
|
||||
android:textColor="@color/tv_main_color_selector"
|
||||
android:textSize="@dimen/text_size_20" />
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/x138"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_height="@dimen/x180">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_control"
|
||||
android:layout_width="@dimen/x108"
|
||||
android:layout_height="@dimen/x108"
|
||||
android:layout_marginBottom="@dimen/x16"
|
||||
android:background="@drawable/bg_control_square_selector"
|
||||
android:padding="@dimen/x4"
|
||||
android:scaleType="centerInside" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_control"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/x40"
|
||||
android:layout_marginBottom="@dimen/x16"
|
||||
android:textColor="@color/tv_main_color_selector"
|
||||
android:textSize="@dimen/text_size_20" />
|
||||
|
||||
</LinearLayout>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 422 B |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user