private View GetLoadMoreButton()
{
if (loadMoreLayout == null)
{
loadMoreLayout = new RelativeLayout(context);
var inflater = context.GetSystemService(Context.LayoutInflaterService) as LayoutInflater;
if (inflater != null)
inflater.Inflate(Resource.Layout.LatestCommitsWidget_LoadMore, loadMoreLayout);
loadMoreButton = loadMoreLayout.GetChildAt(0) as Button;
if (loadMoreButton != null)
{
loadMoreButton.Click += LoadMoreClick;
loadMoreButton.Enabled = _buttonEnabled;
}
}
return loadMoreLayout;
}