本文整理汇总了C#中ListView.SetPadding方法的典型用法代码示例。如果您正苦于以下问题:C# ListView.SetPadding方法的具体用法?C# ListView.SetPadding怎么用?C# ListView.SetPadding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListView
的用法示例。
在下文中一共展示了ListView.SetPadding方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IdentityProviderListRefreshCompleted
private void IdentityProviderListRefreshCompleted(object sender, GetIdentityProviderListEventArgs e)
{
var handler = new Handler(Context.MainLooper); //We need to update on UI thread.
handler.Post(() =>
{
if (null == e.Error)
{
_identityProviderList = new ListView(Context)
{
LayoutParameters =
new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent,
ViewGroup.LayoutParams.FillParent)
};
_identityProviderList.SetPadding(10, 0, 0, 0);
_identityProviderList.ItemClick += OnIdentityProviderListOnItemClick;
_identityProviderList.Divider = null;
AddView(_identityProviderList);
if (_identityProviderAdapter == null)
_identityProviderAdapter = new IdentityProviderAdapter(Context);
_identityProviderList.Adapter = _identityProviderAdapter;
_identityProviderAdapter.IdentityProviders = e.Result;
PostInvalidate();
HideProgressDialog();
}
else
{
HideProgressDialog();
ShowAlertDialog("Oh no!", "An error occured with the message:\n" + e.Error.Message);
}
});
}