ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

RadListView Android: styling issues when manually switching the css theme #1373

Open felixkrautschuk opened 4 years ago

felixkrautschuk commented 4 years ago

Tell us about the problem

We offer about 20 different color themes for our app users and we try to switch the app theme using the nativescript-theme plugin.

This works for (nearly) all widgets I used in our app, except for RadListView on Android. Some items get the new styles after switching the theme, but not all and it changes while scrolling.

radlistview-android-theme-switch-issue

My observations:

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

I am not able to send a sample app, as the app would contain a private plugin from https://proplugins.org/

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Not possible

We are aware of the @nativescript/theme package and the .ns-light and .ns-dark classes, but switching from light to dark is just a simplified scenario for the demo app provided here. As I already mentioned, the user should be able to choose a theme from a list of about 20 items and this was working fine on a previous version of nativescript-ui-listview, so I hope we can get this already working feature back again on one of the next versions.

NathanaelA commented 4 years ago

Just a quick work around -- Setting the cells background color to transparent; should actually fix the issue.

felixkrautschuk commented 4 years ago

@NathanaelA thanks, indeed this helps. I also noticed that setting the item-selected-background-color property to any color value (except 'transparent') works, even if selection/multiselection is disabled for the RadListView component.