Implemented colored refresh indicator for ListView pull-to-refresh (#2961)
authorGerald Versluis <github@geraldversluis.nl>
Thu, 29 Nov 2018 12:57:57 +0000 (13:57 +0100)
committerRui Marinho <me@ruimarinho.net>
Thu, 29 Nov 2018 12:57:57 +0000 (12:57 +0000)
commit0d08fd8254089449043f653236c910dd8371cbbe
treeb24aabfd489c18196a5722560a2f6c24dd10d090
parent43eb6b37db1776e950a254f185b9080cffacc98d
 Implemented colored refresh indicator for ListView pull-to-refresh (#2961)

* Implemented colored spinner for ListView pull-to-refresh

* Added back default spinner color

* Renamed away from "spinner" and did some default value magic

Color.Default reinstated, but also added the default black color in the iOS `UpdateRefreshControlColor` method. Seeing this also happens for the seperator color this is something that is necessary. If not, the spinner is invisible.

* Implemented default color on iOS and right property name on Android

For iOS, when the new `RefreshControlColor` has the default color, the `TintColor` for iOS is set to null, causing the color to be the default one.

Forgot to refactor the new name in the Android renderer, whoops

* Reinstated coloring on listview gallry page

* Implemented colored spinner for ListView pull-to-refresh

* Added back default spinner color

* Renamed away from "spinner" and did some default value magic

Color.Default reinstated, but also added the default black color in the iOS `UpdateRefreshControlColor` method. Seeing this also happens for the seperator color this is something that is necessary. If not, the spinner is invisible.

* Implemented default color on iOS and right property name on Android

For iOS, when the new `RefreshControlColor` has the default color, the `TintColor` for iOS is set to null, causing the color to be the default one.

Forgot to refactor the new name in the Android renderer, whoops

* Reinstated coloring on listview gallry page

* Added documentation for new property

* Fixed merge boo-boos
Xamarin.Forms.Controls/CoreGalleryPages/ListViewCoreGalleryPage.cs
Xamarin.Forms.Core/ListView.cs
Xamarin.Forms.CustomAttributes/TestAttributes.cs
Xamarin.Forms.Platform.Android/Renderers/ListViewRenderer.cs
Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
docs/Xamarin.Forms.Core/Xamarin.Forms/ListView.xml [new file with mode: 0644]