我需要在折叠单元选项上添加滑动单元。对于幻灯片和折叠选项,我有daimajia和Folding Cell组件。如何访问折叠单元及其子元素?用于UI布局的XML如下所示,“ cell_title_layout”具有折叠单元格的子组件。
<?xml version="1.0" encoding="utf-8"?>
<com.daimajia.swipe.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/swipe"
android:layout_width="match_parent"
android:layout_height="100dp">
<LinearLayout
android:id="@+id/rightLay"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="#594691">
<ImageButton
android:id="@+id/Link1"
android:layout_width="90dip"
android:layout_height="match_parent"
android:contentDescription="Link1"
android:gravity="center"
android:src="@drawable/icon1"
android:textColor="#fff" />
<ImageButton
android:id="@+id/Link2"
android:layout_width="90dip"
android:layout_height="match_parent"
android:contentDescription="Link2"
android:gravity="center"
android:src="@drawable/icon2"
android:textColor="#fff" />
<ImageButton
android:id="@+id/Link3"
android:layout_width="90dip"
android:layout_height="match_parent"
android:contentDescription="Link3"
android:gravity="center"
android:src="@drawable/icon3"
android:textColor="#fff" />
</LinearLayout>
<com.ramotion.foldingcell.FoldingCell xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:folding-cell="http://schemas.android.com/apk/res-auto"
android:id="@+id/foldingCellitem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
folding-cell:additionalFlipsCount="0"
folding-cell:animationDuration="1300"
folding-cell:backSideColor="@color/bgSideColor"
folding-cell:cameraHeight="100">
<include layout="@layout/cell_title_layout" />
</com.ramotion.foldingcell.FoldingCell>
</com.daimajia.swipe.SwipeLayout>