feat : 房間背景定制功能
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user