{
class ManualTestComponents
{\r
- class ListBridge : FlexibleView.Adapter\r
+ class ListBridge : FlexibleViewAdapter\r
{\r
private List<string> _mDatas;\r
private List<ItemData> _mlistItem;\r
_mlistItem = item;\r
}\r
\r
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)\r
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)\r
{\r
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new Button());\r
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new Button());\r
return viewHolder;\r
}\r
\r
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)\r
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)\r
{\r
string testcaseName = "#." + (position + 1).ToString() + _mDatas[position];\r
string resultText = "[" + _mlistItem[(int)position].Result + "]";\r
}\r
}\r
\r
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)\r
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)\r
{\r
if (holder.ItemView != null)\r
{\r
_initList.SetLayoutManager(layoutManager);\r
_initList.FocusedItemIndex = 0;\r
_initList.Focusable = true;
- _initList.ItemClickEvent += (obj, e) =>\r
+ _initList.ItemClicked += (obj, e) =>\r
{\r
Button button = e.ClickedView.ItemView as Button;\r
if (button)\r
};\r
_initList.FocusGained += (obj, e) =>
{
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(0);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(0);
if (holder != null && holder.ItemView != null)
{
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);
}
else
{
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum - 1);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum - 1);
if (holder != null && holder.ItemView != null)
{
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);
{
_currentTCNum++;
}
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
if (holder != null && holder.ItemView != null)
{
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);
ResultNumber.Block += 1;
}\r
\r
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
if (holder != null)\r
{\r
string testcaseName = "#." + (_currentTCNum + 1).ToString() + _tcIDList[_currentTCNum];\r
{
class WearableManualTestNUI
{
- class ListBridge : FlexibleView.Adapter
+ class ListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
private List<ItemData> _mlistItem;
_mlistItem = item;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new Button(new ButtonStyle()));
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new Button(new ButtonStyle()));
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
string testcaseName = "#." + (position + 1).ToString() + _mDatas[position];
string resultText = "[" + _mlistItem[(int)position].Result + "]";
}
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
}
}\r
\r
- class DetailListBridge : FlexibleView.Adapter
+ class DetailListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
_mDatas = datas;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new TextLabel());
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new TextLabel());
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
TextLabel label = holder.ItemView as TextLabel;
if (label)\r
}\r
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
LinearLayoutManager layoutManager = new LinearLayoutManager(LinearLayoutManager.VERTICAL);\r
_initList.SetLayoutManager(layoutManager);\r
_initList.FocusedItemIndex = 0;
- _initList.ItemClickEvent += (obj, e) =>\r
+ _initList.ItemClicked += (obj, e) =>\r
{\r
Button button = e.ClickedView.ItemView as Button;\r
if (button)\r
ResultNumber.Block += 1;
}\r
\r
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
if (holder != null)\r
{\r
string testcaseName = "#." + (_currentTCNum + 1).ToString() + _tcIDList[_currentTCNum];\r
{
class ManualTestNUI
{
- class ListBridge : FlexibleView.Adapter
+ class ListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
private List<ItemData> _mlistItem;
_mlistItem = item;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new Button());
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new Button());
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
string testcaseName = "#." + (position + 1).ToString() + _mDatas[position];
string resultText = "[" + _mlistItem[(int)position].Result + "]";
}
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
_initList.SetLayoutManager(layoutManager);
_initList.FocusedItemIndex = 0;
_initList.Focusable = true;
- _initList.ItemClickEvent += (obj, e) =>
+ _initList.ItemClicked += (obj, e) =>
{
Button button = e.ClickedView.ItemView as Button;
if (button)
};
_initList.FocusGained += (obj, e) =>
{
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(0);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(0);
if (holder != null && holder.ItemView != null)
{
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);
}
else
{
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum - 1);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum - 1);
if (holder != null && holder.ItemView != null)
{
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);
{
_currentTCNum++;
}
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
if (holder != null && holder.ItemView != null)
{
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);
ResultNumber.Block += 1;
}
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
if (holder != null)
{
string testcaseName = "#." + (_currentTCNum + 1).ToString() + _tcIDList[_currentTCNum];
{
class WearableManualTestNUI
{
- class ListBridge : FlexibleView.Adapter
+ class ListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
private List<ItemData> _mlistItem;
_mlistItem = item;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new Button(new ButtonStyle()));
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new Button(new ButtonStyle()));
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
string testcaseName = "#." + (position + 1).ToString() + _mDatas[position];
string resultText = "[" + _mlistItem[(int)position].Result + "]";
}
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
}
}\r
\r
- class DetailListBridge : FlexibleView.Adapter
+ class DetailListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
_mDatas = datas;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new TextLabel());
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new TextLabel());
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
TextLabel label = holder.ItemView as TextLabel;
if (label)\r
}\r
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
LinearLayoutManager layoutManager = new LinearLayoutManager(LinearLayoutManager.VERTICAL);\r
_initList.SetLayoutManager(layoutManager);\r
_initList.FocusedItemIndex = 0;
- _initList.ItemClickEvent += (obj, e) =>\r
+ _initList.ItemClicked += (obj, e) =>\r
{\r
Button button = e.ClickedView.ItemView as Button;\r
if (button)\r
ResultNumber.Block += 1;
}\r
\r
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
if (holder != null)\r
{\r
string testcaseName = "#." + (_currentTCNum + 1).ToString() + _tcIDList[_currentTCNum];\r
{
class ManualTestNUI
{
- class ListBridge : FlexibleView.Adapter
+ class ListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
private List<ItemData> _mlistItem;
_mlistItem = item;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new Button());
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new Button());
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
string testcaseName = "#." + (position + 1).ToString() + _mDatas[position];
string resultText = "[" + _mlistItem[(int)position].Result + "]";
}
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
_initList.SetLayoutManager(layoutManager);
_initList.FocusedItemIndex = 0;
_initList.Focusable = true;
- _initList.ItemClickEvent += OnItemClickEvent;
+ _initList.ItemClicked += OnItemClickEvent;
_initList.FocusGained += OnInitListFocusGained;
_initList.FocusLost += OnInitListFocusLost;
_initList.KeyEvent += OnInitListKeyEvent;
}
if (_initList)\r
{\r
- _initList.ItemClickEvent -= OnItemClickEvent;\r
+ _initList.ItemClicked -= OnItemClickEvent;\r
_initList.FocusGained -= OnInitListFocusGained;\r
_initList.FocusLost -= OnInitListFocusLost;\r
_initList.KeyEvent -= OnInitListKeyEvent;\r
ResultNumber.Block += 1;
}
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
if (holder != null)
{
string testcaseName = "#." + (_currentTCNum + 1).ToString() + _tcIDList[_currentTCNum];
_notRun.Text = _listItem[_currentTCNum].Result;
}
- private void OnItemClickEvent(object sender, FlexibleView.ItemClickEventArgs e)\r
+ private void OnItemClickEvent(object sender, FlexibleViewItemClickedEventArgs e)\r
{\r
Button button = e.ClickedView.ItemView as Button;\r
if (button)\r
private void OnInitListFocusGained(object sender, EventArgs e)\r
{\r
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(0);\r
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(0);\r
if (holder != null && holder.ItemView != null)\r
{\r
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);\r
}\r
else\r
{\r
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum - 1);\r
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum - 1);\r
if (holder != null && holder.ItemView != null)\r
{\r
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);\r
{\r
_currentTCNum++;\r
}\r
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);\r
if (holder != null && holder.ItemView != null)\r
{\r
FocusManager.Instance.SetCurrentFocusView(holder.ItemView);\r
{
class WearableManualTestNUI
{
- class ListBridge : FlexibleView.Adapter
+ class ListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
private List<ItemData> _mlistItem;
_mlistItem = item;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new ListItemView());
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new ListItemView());
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
string testcaseID = "#." + (position + 1).ToString();
string caseName = _mDatas[position];
}
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
}
}
- class DetailListBridge : FlexibleView.Adapter
+ class DetailListBridge : FlexibleViewAdapter
{
private List<string> _mDatas;
_mDatas = datas;
}
- public override FlexibleView.ViewHolder OnCreateViewHolder(int viewType)
+ public override FlexibleViewViewHolder OnCreateViewHolder(int viewType)
{
- FlexibleView.ViewHolder viewHolder = new FlexibleView.ViewHolder(new TextLabel());
+ FlexibleViewViewHolder viewHolder = new FlexibleViewViewHolder(new TextLabel());
return viewHolder;
}
- public override void OnBindViewHolder(FlexibleView.ViewHolder holder, int position)
+ public override void OnBindViewHolder(FlexibleViewViewHolder holder, int position)
{
TextLabel label = holder.ItemView as TextLabel;
if (label)
}
}
- public override void OnDestroyViewHolder(FlexibleView.ViewHolder holder)
+ public override void OnDestroyViewHolder(FlexibleViewViewHolder holder)
{
if (holder.ItemView != null)
{
}
if (_initList)\r
{\r
- _initList.ItemClickEvent -= OnItemClickEvent;\r
+ _initList.ItemClicked -= OnItemClickEvent;\r
_initList.GetParent()?.Remove(_initList);\r
_initList.Dispose();\r
_initList = null;\r
LinearLayoutManager layoutManager = new LinearLayoutManager(LinearLayoutManager.VERTICAL);
_initList.SetLayoutManager(layoutManager);
_initList.FocusedItemIndex = 0;
- _initList.ItemClickEvent += OnItemClickEvent;
+ _initList.ItemClicked += OnItemClickEvent;
}
private void CreateDetailList()
ResultNumber.Block += 1;
}
- FlexibleView.ViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
+ FlexibleViewViewHolder holder = _initList?.FindViewHolderForAdapterPosition(_currentTCNum);
if (holder != null)
{
string testcaseName = "#." + (_currentTCNum + 1).ToString() + _tcIDList[_currentTCNum];
_notRun.Text = _listItem[_currentTCNum].Result;
}
- private void OnItemClickEvent(object sender, FlexibleView.ItemClickEventArgs e)\r
+ private void OnItemClickEvent(object sender, FlexibleViewItemClickedEventArgs e)\r
{\r
ListItemView item = e.ClickedView.ItemView as ListItemView;\r
if (item)\r