feat: home

This commit is contained in:
2025-11-18 15:24:16 +08:00
parent e5d17bc970
commit 699bc11c25
27 changed files with 671 additions and 30 deletions
@@ -0,0 +1,12 @@
package com.yuanxuan.rokid.extension
import android.content.res.Resources
import android.util.TypedValue
fun Number.dpToPx(): Float {
return TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
this.toFloat(),
Resources.getSystem().displayMetrics
)
}