IAndroidRefreshCustomizer Interface
Namespace: DevExpress.Mobile.DataGrid.Theme
Assembly: DevExpress.Mobile.Grid.v18.2.dll
Declaration
public interface IAndroidRefreshCustomizer
Public Interface IAndroidRefreshCustomizer
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.
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.

To change the color of a refresh indicator, perform the steps below.
- Activate a grid's pull-to-refresh functionality. For this purpose, assign true to the GridControl.IsPullToRefreshEnabled property.
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.
- Apply the customization by calling the ThemeManager.RefreshTheme method.
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RefreshCustomizers.MainPage"
xmlns:dxGrid="clr-namespace:DevExpress.Mobile.DataGrid;assembly=DevExpress.Mobile.Grid.v15.2">
<ContentPage.Padding>
<OnPlatform x:TypeArguments="Thickness" iOS="0, 20, 0, 0" />
</ContentPage.Padding>
<dxGrid:GridControl x:Name="grid" ItemsSource="{Binding Orders}"
NewItemRowVisibility = "false"
SortMode = "Multiple" AutoFilterPanelVisibility="true"
IsPullToRefreshEnabled = "true" >
<dxGrid:GridControl.Columns>
<dxGrid:TextColumn FieldName="Product.Name" Caption = "Product" Width = "170"
SortOrder = "Descending" SortIndex = "0"/>
<dxGrid:NumberColumn FieldName="Product.UnitPrice" Caption = "Price" DisplayFormat="C0"/>
<dxGrid:NumberColumn FieldName="Quantity"
SortOrder = "Ascending" SortIndex = "1"/>
<dxGrid:NumberColumn FieldName="Total"
UnboundType="Integer" UnboundExpression="[Quantity] * [Product.UnitPrice]"
DisplayFormat="C0" IsReadOnly="True"/>
<dxGrid:DateColumn FieldName="Date" DisplayFormat="d" />
<dxGrid:SwitchColumn FieldName="Shipped"/>
</dxGrid:GridControl.Columns>
<dxGrid:GridControl.GroupSummaries>
<dxGrid:GridColumnSummary FieldName="Total" Type="Max"/>
</dxGrid:GridControl.GroupSummaries>
<dxGrid:GridControl.TotalSummaries>
<dxGrid:GridColumnSummary FieldName="Total" Type="Sum"
DisplayFormat= "Total: {0:C0}"/>
</dxGrid:GridControl.TotalSummaries>
</dxGrid:GridControl>
</ContentPage>
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
We are updating the DevExpress product documentation website and this page is part of our new experience. During this transition period, product documentation remains available in our previous format at documentation.devexpress.com. Learn More...