androidx版本首次提交
This commit is contained in:
23
beauty/src/main/res/layout/item_list_filter.xml
Normal file
23
beauty/src/main/res/layout/item_list_filter.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="80dp"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/check_img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/icon_filter_selected"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
50
beauty/src/main/res/layout/item_list_tiezhi.xml
Normal file
50
beauty/src/main/res/layout/item_list_tiezhi.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="1dp"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.SquareImageView2
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:padding="5dp"
|
||||
android:scaleType="fitCenter"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/download"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_alignBottom="@id/img"
|
||||
android:layout_alignParentRight="true"
|
||||
android:src="@mipmap/icon_tiezhi_download"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/loading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_alignBottom="@id/img"
|
||||
android:layout_alignTop="@id/img"
|
||||
android:background="#80000000"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:indeterminateBehavior="repeat"
|
||||
android:indeterminateDrawable="@drawable/anim_loading"
|
||||
android:indeterminateOnly="true"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
398
beauty/src/main/res/layout/view_beauty.xml
Normal file
398
beauty/src/main/res/layout/view_beauty.xml
Normal file
@@ -0,0 +1,398 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
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="match_parent"
|
||||
>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/bg_black"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_beauty"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_beauty_shape"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty_shape"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_meng"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/meng"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_filter"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/filter"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_rock"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/shake"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_haha"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/haha"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</RadioGroup>
|
||||
|
||||
<View
|
||||
android:id="@+id/btn_hide"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@id/bottom"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group_beauty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="visible"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_baixi"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_meibai"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_skin_strength"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_mopi"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_hongrun"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_baohe"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_fengnen"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_fengnen"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group_beauty_shape"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_big_eye"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_big_eye"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_face"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_face"
|
||||
/>
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_face_strength"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/face_narrowing"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group_meng"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="180dp"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/tiezhi_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/group_filter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/filter_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/group_rock"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rock_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/group_haha"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_0"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:paddingTop="20dp"
|
||||
app:mr_top_drawable1="@mipmap/icon_none"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_1"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_1"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_2"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_2"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_3"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_3"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_3"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_4"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_4"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
413
beauty/src/main/res/layout/view_beauty360.xml
Normal file
413
beauty/src/main/res/layout/view_beauty360.xml
Normal file
@@ -0,0 +1,413 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
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="match_parent"
|
||||
>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/bg_black"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_beauty"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_beauty_shape"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty_shape"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_meng"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/tiezhi"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_filter"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/filter"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
|
||||
<View
|
||||
android:visibility="gone"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:visibility="gone"
|
||||
android:id="@+id/btn_rock"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/shake"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
|
||||
<View
|
||||
android:visibility="gone"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
|
||||
<RadioButton
|
||||
android:visibility="gone"
|
||||
android:id="@+id/btn_haha"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/haha"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</RadioGroup>
|
||||
|
||||
<View
|
||||
android:id="@+id/btn_hide"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@id/bottom"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group_beauty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_baixi"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_meibai2"
|
||||
/>
|
||||
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_hongrun"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_hongrun"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_fengnen"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_fengnen"
|
||||
/>
|
||||
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_skin_strength"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_strength"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group_beauty_shape"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_big_eye"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_big_eye"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_face"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_face"
|
||||
/>
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_face_strength"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
android:visibility="gone"
|
||||
app:text2="@string/beauty_face_strength"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group_meng"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="180dp"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/tiezhi_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/group_filter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:id="@+id/seek_filter_strength"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_face_strength"
|
||||
/>
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/filter_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/group_rock"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rock_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/group_haha"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_0"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:paddingTop="20dp"
|
||||
app:mr_top_drawable1="@mipmap/icon_none"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_1"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_1"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_2"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_2"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_3"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_3"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_3"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.MyRadioButton
|
||||
android:id="@+id/btn_haha_4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_haha"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="8dp"
|
||||
android:text="@string/haha_4"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
app:mr_top_drawable1="@mipmap/icon_record_haha_4"
|
||||
app:mr_top_drawableSize1="40dp"
|
||||
/>
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
147
beauty/src/main/res/layout/view_beauty_default.xml
Normal file
147
beauty/src/main/res/layout/view_beauty_default.xml
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
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="match_parent"
|
||||
>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/bg_black"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="0.7"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_beauty"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/beauty"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="0.7"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#969696"
|
||||
/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="0.7"
|
||||
/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_filter"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_beauty"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="@string/filter"
|
||||
android:textColor="@color/fg_btn_beauty"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="0.7"
|
||||
/>
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
<View
|
||||
android:id="@+id/btn_hide"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@id/bottom"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group_beauty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="visible"
|
||||
>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_baixi"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_meibai"
|
||||
/>
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_skin_strength"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_mopi"
|
||||
/>
|
||||
|
||||
|
||||
<com.yunbao.beauty.custom.TextSeekBar
|
||||
android:id="@+id/seek_hongrun"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:progressVal="0"
|
||||
app:text2="@string/beauty_hongrun"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/group_filter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/bottom"
|
||||
android:background="@color/bg_black"
|
||||
android:clickable="true"
|
||||
android:paddingBottom="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/filter_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
11
beauty/src/main/res/layout/view_item_list_beauty_filter.xml
Normal file
11
beauty/src/main/res/layout/view_item_list_beauty_filter.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp"
|
||||
/>
|
||||
36
beauty/src/main/res/layout/view_seek_group.xml
Normal file
36
beauty/src/main/res/layout/view_seek_group.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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="30dp"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:gravity="center"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/seekBar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:max="100"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/progressVal"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginRight="10dp"
|
||||
android:gravity="center"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user