[英]Group Click event in Expandable List
Is it possible to customise group click event in MvxExpandableListView ?. 是否可以在MvxExpandableListView中自定义组单击事件? I have tried to use GroupClick by providing command but no luck. 我试图通过提供命令来使用GroupClick,但是没有运气。 I want to use GroupClick event if there is no child is available. 如果没有可用的子代,我想使用GroupClick事件。
Finally, i am able to make it work. 最后,我能够使其工作。
Instead of setting GroupClick property in code, bind this property in xml and provide the corresponding command to bind it. 与其在代码中设置GroupClick属性,不如在xml中绑定此属性并提供相应的命令来对其进行绑定。
<Mvx.MvxExpandableListView
android:id="@+id/toclist"
android:layout_width="match_parent"
android:layout_height="match_parent"
local:MvxBind="ItemsSource SegmentTasks; ItemClick SelectTicketItemCommand; GroupClick SelectTicketParentCommand"
local:MvxItemTemplate="@layout/ticketlistchildview"
local:GroupItemTemplate="@layout/listticketitem"
android:background="@android:color/white"
android:groupIndicator="@null"
android:childDivider="#00000000"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.