refactor(view): 将SwitchButton迁移至项目内部
This commit is contained in:
@@ -203,7 +203,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.suke.widget.SwitchButton
|
||||
<com.ttstd.dialer.view.SwitchButton
|
||||
android:id="@+id/sb_emergency"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -240,7 +240,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.suke.widget.SwitchButton
|
||||
<com.ttstd.dialer.view.SwitchButton
|
||||
android:id="@+id/sb_show"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -278,7 +278,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.suke.widget.SwitchButton
|
||||
<com.ttstd.dialer.view.SwitchButton
|
||||
android:id="@+id/sb_pinned"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.suke.widget.SwitchButton
|
||||
<com.ttstd.dialer.view.SwitchButton
|
||||
android:id="@+id/sb_emergency"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -245,7 +245,7 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.suke.widget.SwitchButton
|
||||
<com.ttstd.dialer.view.SwitchButton
|
||||
android:id="@+id/sb_show"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<com.suke.widget.SwitchButton
|
||||
<com.ttstd.dialer.view.SwitchButton
|
||||
android:id="@+id/switch_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
29
app/src/main/res/values/switch_button_attrs.xml
Normal file
29
app/src/main/res/values/switch_button_attrs.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="SwitchButton">
|
||||
<attr name="sb_shadow_radius" format="reference|dimension"/>
|
||||
<attr name="sb_shadow_offset" format="reference|dimension"/>
|
||||
<attr name="sb_shadow_color" format="reference|color"/>
|
||||
<attr name="sb_uncheck_color" format="reference|color"/>
|
||||
<attr name="sb_checked_color" format="reference|color"/>
|
||||
|
||||
<attr name="sb_border_width" format="reference|dimension"/>
|
||||
<attr name="sb_checkline_color" format="reference|color"/>
|
||||
<attr name="sb_checkline_width" format="reference|dimension"/>
|
||||
<attr name="sb_uncheckcircle_color" format="reference|color"/>
|
||||
<attr name="sb_uncheckcircle_width" format="reference|dimension"/>
|
||||
<attr name="sb_uncheckcircle_radius" format="reference|dimension"/>
|
||||
|
||||
<attr name="sb_checked" format="reference|boolean"/>
|
||||
<attr name="sb_shadow_effect" format="reference|boolean"/>
|
||||
<attr name="sb_effect_duration" format="reference|integer"/>
|
||||
<attr name="sb_button_color" format="reference|color"/>
|
||||
<attr name="sb_show_indicator" format="reference|boolean"/>
|
||||
<attr name="sb_background" format="reference|color"/>
|
||||
<attr name="sb_enable_effect" format="reference|boolean"/>
|
||||
|
||||
<attr name="sb_checkedbutton_color" format="reference|color"/>
|
||||
<attr name="sb_uncheckbutton_color" format="reference|color"/>
|
||||
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user