Updated on 2026-08-14
This commit is contained in:
parent
3e65b44408
commit
6d91b2e30b
9 changed files with 338 additions and 31 deletions
|
|
@ -41,6 +41,10 @@ fun View.getString(@StringRes id: Int): String {
|
|||
return context.getString(id)
|
||||
}
|
||||
|
||||
fun View.getString(@StringRes id: Int, vararg formatArgs: String): String {
|
||||
return context.getString(id, *formatArgs)
|
||||
}
|
||||
|
||||
fun View.getResourceName(): String {
|
||||
return try {
|
||||
resources.getResourceEntryName(id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue