[skip ci] feat: new settings UI
This commit is contained in:
parent
91d1d2cf1d
commit
cd3bb20afd
11 changed files with 170 additions and 209 deletions
|
@ -1,8 +1,8 @@
|
|||
package ani.dantotsu.settings
|
||||
|
||||
import android.view.ViewGroup
|
||||
import ani.dantotsu.databinding.ItemSettingsBinding
|
||||
import ani.dantotsu.databinding.ItemSettingsSwitchBinding
|
||||
import java.lang.reflect.Array
|
||||
|
||||
data class Settings(
|
||||
val type: Int,
|
||||
|
@ -14,5 +14,6 @@ data class Settings(
|
|||
var isChecked : Boolean = false,
|
||||
val switch: ((isChecked:Boolean , view: ItemSettingsSwitchBinding ) -> Unit)? = null,
|
||||
val isVisible: Boolean = true,
|
||||
val isActivity: Boolean = false
|
||||
val isActivity: Boolean = false,
|
||||
val attach:((ViewGroup) -> Unit)? = null
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue