The requested page is not available for the requested platform. You are viewing the content for Default platform.

IAndroidRefreshCustomizer Interface

Defines classes that customize an Android refreshing bar.

Namespace: DevExpress.Mobile.DataGrid.Theme

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public interface IAndroidRefreshCustomizer
Public Interface IAndroidRefreshCustomizer

Remarks

To customize the color of the Android refreshing bar, use the IAndroidRefreshCustomizer.BarColor property of the object that implements the IAndroidRefreshCustomizer interface.

Examples

This example demonstrates how to customize a color of an indicator (icon or bar) shown when GridControl refreshes cell data.

Grid_RefreshingIndicators

To change the color of a refresh indicator, perform the steps below.

  1. Activate a grid's pull-to-refresh functionality. For this purpose, assign true to the GridControl.IsPullToRefreshEnabled property.
  2. Use the ThemeBase class's properties to access customizers used to change an indicator's color on different mobile platforms. In this example, the following customizers are used.

  3. Apply the customization by calling the ThemeManager.RefreshTheme method.
using System;
using System.Collections.Generic;
using Xamarin.Forms;
using DevExpress.Mobile.DataGrid;
using DevExpress.Mobile.DataGrid.Theme;

namespace RefreshCustomizers {    

    public partial class MainPage : ContentPage {

        public MainPage() {

            InitializeComponent();

            TestOrdersRepository model = new TestOrdersRepository();
            BindingContext = model;

            ThemeManager.Theme.AndroidRefreshCustomizer.BarColor = Color.Blue;
            ThemeManager.Theme.IOSRefreshCustomizer.RefreshColor = Color.Blue;

            ThemeManager.RefreshTheme();

        }
    }
}
See Also