你可以在Activity或Fragment中找到SwipeRevealLayout的引用,然后使用findViewById方法找到菜单布局,最后使用SwipeRevealLayout的setSecondaryView和setMainView方法将菜单布局设置为左右侧滑菜单。例如: SwipeRevealLayoutswipeLayout=findViewById(R.id.swipe_layout);LinearLayoutleftMenuLayout=findViewById(R.id.left_menu_layou...
compile 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.0.0' } 布局文件 <com.chauthai.swipereveallayout.SwipeRevealLayout android:layout_width="match_parent" android:layout_height="match_parent" app:mode="same_level" app:dragEdge="left"> <!-- Your secondary layout here --> <FrameLayou...
<com.chauthai.swipereveallayout.SwipeRevealLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"app:mode="same_level"app:dragEdge="left"><!-- Your secondary layout here --><FrameLayoutandroid:layout_width="wrap_content"android:layout_height="match_parent"/><!-- Your ma...
compile 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.0.0' } 2布局文件 <com.chauthai.swipereveallayout.SwipeRevealLayout android:layout_width="match_parent" android:layout_height="match_parent" app:mode="same_level" app:dragEdge="left"> <!-- Your secondary layout here --> <FrameLay...
<com.chauthai.swipereveallayout.SwipeRevealLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"app:mode="same_level"app:dragEdge="left"><!--Your secondary layout here--><FrameLayoutandroid:layout_width="wrap_content"android:layout_height="match_parent"/><!--Your main ...
<com.chauthai.swipereveallayout.SwipeRevealLayout android:layout_width="match_parent" android:layout_height="match_parent" app:mode="same_level" app:dragEdge="left"> <!-- Your secondary layout here --> <FrameLayout android:layout_width="wrap_content" android:layout_height="match_parent" />...
compile'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'} Layout file <com.chauthai.swipereveallayout.SwipeRevealLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"app:mode="same_level"app:dragEdge="left"><!-- Your secondary layout here --><FrameLayoutandroid:...
android:layout_width="fill_parent" android:layout_height="wrap_content" swipe:swipeFrontView="@+id/front" swipe:swipeBackView="@+id/back" swipe:swipeActionLeft="[reveal | dismiss]" swipe:swipeActionRight="[reveal | dismiss]" swipe:swipeMode="[none | both | right | left]" ...
android:id="@+id/example_lv_list"android:layout_width="match_parent"android:layout_height="match_parent"android:listSelector="#00000000"swipe:swipeActionLeft="dismiss"swipe:swipeActionRight="reveal"swipe:swipeAnimationTime="0"swipe:swipeBackView="@+id/back"swipe:swipeCloseAllItemsWhenMoveList="true...
findViewById(R.id.swipeRevealLayout); swipeLayout.getSurfaceView().setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { openDialogToggleBlock(realmRegisteredInfo.getId()); } }); } Example #5Source File: SwipeItemMangerImpl.java From AndroidSwipeLayout with ...