Giter Club home page Giter Club logo

Comments (9)

akexorcist avatar akexorcist commented on August 10, 2024 1

@tahaelsherif It's look like you already added the view in parent and that code called again after configuration changes. Please supporting the configuration changes in your app to solve this.

If my answer is not related to your issue. Please provide more information about that view.

from localization.

akexorcist avatar akexorcist commented on August 10, 2024 1

Please see https://developer.android.com/guide/topics/resources/runtime-changes

This also happen when screen size changed (rotate device). To make sure that problem is about configuration changes, not the library. Please try to open that activity and rotate the device (without android:configChanges attribute in Activity).

from localization.

akexorcist avatar akexorcist commented on August 10, 2024 1

@tahaelsherif Does not about your app support landscape or not. Just only enable screen orientation for test about your issue. There's many situation for config changes but screen orientation is easy to test.

from localization.

akexorcist avatar akexorcist commented on August 10, 2024 1

@tahaelsherif I thought that inflate(..., ..., container, false) is the normal one. Why do you use true? (Curious only)

from localization.

tahaelsherif avatar tahaelsherif commented on August 10, 2024

How do I support the configuration changes in my app ?
I'm using both of databinding and mvvm btw.

from localization.

tahaelsherif avatar tahaelsherif commented on August 10, 2024

All activities are portrait only :)

from localization.

tahaelsherif avatar tahaelsherif commented on August 10, 2024

Ok i will try to test as many usecases as i can and i will let you know.

from localization.

tahaelsherif avatar tahaelsherif commented on August 10, 2024

So finally it was not from your library the issue is caused by fragment inflating, the fragment was attached to the parent view.

This is the old one
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_buy_sell_list, container, true)

And then I changed it to this one
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_buy_sell_list, container, false)

And then everything was fixed anyway thank you for your time maybe you should mention this as a tip for your documentation.

from localization.

tahaelsherif avatar tahaelsherif commented on August 10, 2024

Yes it's supposed to be false by default but I changed it to true once for some testing and i forgot to returing it to false before i added your librray , so i didn't know that this was cuasing the problem

from localization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.