簡體   English   中英

展開式列表中的組點擊事件

[英]Group Click event in Expandable List

是否可以在MvxExpandableListView中自定義組單擊事件? 我試圖通過提供命令來使用GroupClick,但是沒有運氣。 如果沒有可用的子代,我想使用GroupClick事件。

最后,我能夠使其工作。

與其在代碼中設置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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM