I have a custom view and get the text from XML:
The code slice is here:
<com.example.CustomView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:customTag="@string/hello_world" />
val typedArray = context.obtainStyledAttributes(attrs, R.styleable.CustomView, 0, 0)
tag = typedArray.getText(R.styleable.CustomView_customTag) ?: ""
The tag does not use the latest translation.
Is it a bug or caused by using the outdated SDK version? Waiting for your response, Thank you!
I have a custom view and get the text from XML:
The code slice is here:
The tag does not use the latest translation.
Is it a bug or caused by using the outdated SDK version? Waiting for your response, Thank you!