feat : 房間背景定制功能

This commit is contained in:
eggmanQQQ
2024-11-06 15:26:48 +08:00
parent 32359831b5
commit 6df69e6e57
43 changed files with 936 additions and 208 deletions

View File

@@ -5,7 +5,11 @@ import android.content.Context
import android.content.res.TypedArray
import android.graphics.drawable.Drawable
import android.util.TypedValue
import androidx.annotation.*
import androidx.annotation.AttrRes
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.annotation.LayoutRes
import androidx.annotation.StringRes
import androidx.core.content.ContextCompat
import androidx.core.content.res.ResourcesCompat
import androidx.fragment.app.Fragment
@@ -80,6 +84,13 @@ fun Int.getString(vararg : Any): String {
return AppUtils.getApp().getString(this,vararg)
}
/**
* *any 使用 *来展开数组
*/
fun Int.getString(vararg any : Any): String {
return AppUtils.getApp().getString(this,*any)
}
fun Int.getDimension(): Float {
return AppUtils.getApp().resources.getDimension(this)
}