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

Different behavior on Android & iOS of css style classes since 7.x to 8.x of nativescript-ui-listview #1473

Open con-cis opened 3 years ago

con-cis commented 3 years ago

Tell us about the problem

When I change the background-color via style class attribute in the view xml within a RadListView, the background only changes on iOS correctly.

This behavior occurs since version update of nativescript-ui-listview to 8.x.

On Android I have to set it via a workaround via style attribute.

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.

  1. Start the application ..
  2. Load ListView to tiles with Editions + meta
  3. Download an Edition via tap or delete an Edition via longPress

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

in the line with the android:style workaround in the view.xml file:

<StackLayout orientation="vertical" android:height="230" class="{{ data.editions[0].meta.downloaded, data.editions[0].meta.downloaded === true ? 'tile': 'tile not-downloaded'}}" android:style="{{ data.editions[0].meta.downloaded, data.editions[0].meta.downloaded === true ? 'background-color: #fdf047;': 'background-color: #fffadb;'}}" tap="onNewestEditionTap" longPress="onNewestEditionLongTap">

the app.css with the style class:

.tile {
  background-color: #fdf047;
  padding: 20;
  min-height: 200;
  border-width: 0 10 10 0;
  border-color: white;
}
.not-downloaded {
  background-color: #fffadb;
}