本文整理汇总了C#中LinearLayout.SetTag方法的典型用法代码示例。如果您正苦于以下问题:C# LinearLayout.SetTag方法的具体用法?C# LinearLayout.SetTag怎么用?C# LinearLayout.SetTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LinearLayout
的用法示例。
在下文中一共展示了LinearLayout.SetTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddFocusable
private void AddFocusable()
{
//add a layout to get first focus of the screen, somehow I can't get windowsoftinputmode=stateHidden to work
//http://stackoverflow.com/questions/1555109/stop-edittext-from-gaining-focus-at-activity-startup
var focusableLayout = new LinearLayout(this.Context, null);
focusableLayout.SetTag(DividerAwareLinearLayout.IGNORE_DIVIDER_FOR_CHILD_TAG, true);
focusableLayout.LayoutParameters = new RelativeLayout.LayoutParams(1, 1);
focusableLayout.Focusable = true;
focusableLayout.FocusableInTouchMode = true;
_list.AddView(focusableLayout);
}