desc:背光调节
parent
efb3442a3c
commit
be267a3d7f
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@color/_2A4284_30" />
|
||||||
|
<corners
|
||||||
|
android:bottomRightRadius="0dp"
|
||||||
|
android:bottomLeftRadius="@dimen/_20dp"
|
||||||
|
android:topLeftRadius="0dp"
|
||||||
|
android:topRightRadius="0dp"/>
|
||||||
|
</shape>
|
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@color/_2A4284" />
|
||||||
|
<corners
|
||||||
|
android:bottomRightRadius="@dimen/_20dp"
|
||||||
|
android:bottomLeftRadius="0dp"
|
||||||
|
android:topLeftRadius="0dp"
|
||||||
|
android:topRightRadius="0dp"/>
|
||||||
|
</shape>
|
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<!--定义seekbar滑动条的底色-->
|
||||||
|
<item android:id="@android:id/background">
|
||||||
|
<shape>
|
||||||
|
<corners android:radius="@dimen/_20dp" />
|
||||||
|
<gradient
|
||||||
|
android:angle="270"
|
||||||
|
android:centerColor="@color/_505971"
|
||||||
|
android:centerY="0.75"
|
||||||
|
android:endColor="@color/_505971"
|
||||||
|
android:startColor="@color/_505971" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
<!--定义seekbar滑动条进度颜色-->
|
||||||
|
<item android:id="@android:id/progress">
|
||||||
|
<clip>
|
||||||
|
<shape>
|
||||||
|
<corners android:radius="@dimen/_20dp" />
|
||||||
|
<solid android:color="@color/white" />
|
||||||
|
</shape>
|
||||||
|
</clip>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
@ -1,7 +1,60 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="@dimen/_960dp"
|
||||||
|
android:layout_height="@dimen/_511dp"
|
||||||
|
android:layout_marginTop="@dimen/_201dp"
|
||||||
|
android:background="@drawable/warn_setting_btn_bg">
|
||||||
|
|
||||||
|
<SeekBar
|
||||||
|
android:id="@+id/sb_light"
|
||||||
|
style="@style/LightSeekbarStyle"
|
||||||
|
android:layout_width="@dimen/_630dp"
|
||||||
|
android:layout_height="@dimen/_100dp"
|
||||||
|
android:layout_marginStart="@dimen/_140dp"
|
||||||
|
android:layout_marginTop="@dimen/_160dp"
|
||||||
|
android:max="255"
|
||||||
|
android:min="0"
|
||||||
|
android:padding="0dp"
|
||||||
|
android:progress="20" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_light"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_marginTop="@dimen/_185dp"
|
||||||
|
android:layout_marginEnd="@dimen/_132dp"
|
||||||
|
android:text="55%"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_36dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_cancel"
|
||||||
|
android:layout_width="@dimen/_480dp"
|
||||||
|
android:layout_height="@dimen/_81dp"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:background="@drawable/cancel_btn_bg"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/cancel"
|
||||||
|
android:textColor="@color/white_30"
|
||||||
|
android:textSize="@dimen/_36dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_confirm"
|
||||||
|
android:layout_width="@dimen/_480dp"
|
||||||
|
android:layout_height="@dimen/_81dp"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:background="@drawable/confirm_btn_bg"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/confirm"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_36dp" />
|
||||||
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in New Issue