mobile-sdk-android icon indicating copy to clipboard operation
mobile-sdk-android copied to clipboard

Seems not working with Custom view with custom attributes

Open SwiftyWang opened this issue 11 months ago • 2 comments

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!

SwiftyWang avatar Mar 20 '24 04:03 SwiftyWang

Hi @SwiftyWang, what version of the SDK are you using?

andrii-bodnar avatar Mar 21 '24 13:03 andrii-bodnar

Hi @SwiftyWang, what version of the SDK are you using?

I upgraded to the latest version but the issue still exists. Screenshot 2024-03-22 at 16 29 50 Not sure if it is related to this limitation? if yes any workaround?

SwiftyWang avatar Mar 22 '24 04:03 SwiftyWang