Comments (9)
@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.
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.
@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.
@tahaelsherif I thought that inflate(..., ..., container, false)
is the normal one. Why do you use true
? (Curious only)
from localization.
How do I support the configuration changes in my app ?
I'm using both of databinding and mvvm btw.
from localization.
All activities are portrait only :)
from localization.
Ok i will try to test as many usecases as i can and i will let you know.
from localization.
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.
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)
- getDefaultLanguage should have access to a context.
- Cannot us setLanguage in PreferenceFragmentCompat HOT 2
- AppCompat's DayNight theme does not apply when toggle the dark mode in v1.2.10 HOT 1
- App crashes first time using web view after setting a new language in the application. HOT 11
- it is make hyper pay it online payment get way stop ! HOT 2
- LocalizationActivity >= 1.2.6 does not work with ViewPump
- ANR issue when getString() HOT 1
- App crashes when using WebView even after updating to v1.2.10 HOT 4
- In Activity, onConfigurationChanged function always return one orientation information while rotate the device. HOT 1
- Change Language from Fragment HOT 2
- Library doesn't work in Google Play Internal Testing HOT 1
- Version 1.2.10 - ClassCastException in specific devices (Lenovo, Asus) HOT 4
- Version 1.2.9 => Getting ANR issue in LocalizationActivityDelegate.kt file. HOT 5
- Not working in combination with dagger hilt HOT 3
- java.lang.RuntimeException: Using WebView from more than one process at once HOT 3
- Version 1.2.10 => Caused by android.os.BadParcelableException: ClassNotFoundException when unmarshalling: cf HOT 11
- call setLanguage inside Fragment
- Theme change not working HOT 1
- Crash on checkLocaleChange HOT 1
- Crash - Could not find an Application in the given context [ Android Hilt ] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localization.