Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems not working with Custom view with custom attributes #241

Open
SwiftyWang opened this issue Mar 20, 2024 · 2 comments
Open

Seems not working with Custom view with custom attributes #241

SwiftyWang opened this issue Mar 20, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@SwiftyWang
Copy link

SwiftyWang commented Mar 20, 2024

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 SwiftyWang added the bug Something isn't working label Mar 20, 2024
@andrii-bodnar andrii-bodnar added the help wanted Extra attention is needed label Mar 21, 2024
@andrii-bodnar
Copy link
Member

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

@SwiftyWang
Copy link
Author

SwiftyWang commented Mar 22, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants