File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
java/com/todobom/opennotescanner Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,5 @@ dependencies {
3333 compile ' com.android.support:support-v4:23.1.1'
3434 compile ' com.github.ctodobom:OpenCV-3.1.0-Android:-SNAPSHOT'
3535 compile ' us.feras.mdv:markdownview:1.1.0'
36- compile(' com.github.afollestad:drag-select-recyclerview:0.3.1@aar' ) {
37- transitive = true
38- }
36+ compile ' com.github.ctodobom:drag-select-recyclerview:0.3.4.ctodobom.sections'
3937}
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ public void onClick(int index) {
5555
5656 @ Override
5757 public void onLongClick (int index ) {
58+ if (!selectionMode ) {
59+ setSelectionMode (true );
60+ }
5861 recyclerView .setDragSelectActive (true , index );
5962 }
6063
Original file line number Diff line number Diff line change 22<FrameLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools"
44 android : layout_width =" match_parent"
5- android : layout_height =" match_parent "
5+ android : layout_height =" wrap_content "
66 android : padding =" 4dp" >
77
88 <com .todobom.opennotescanner.views.SquareFrameLayout
99 android : id =" @+id/colorSquare"
10- android : layout_width =" match_parent "
11- android : layout_height =" match_parent "
10+ android : layout_width =" fill_parent "
11+ android : layout_height =" fill_parent "
1212 android : background =" @color/colorPrimaryDark"
1313 android : padding =" 2dp" >
1414
1515 <ImageView
1616 android : id =" @+id/gallery_image"
17- android : layout_width =" match_parent "
18- android : layout_height =" match_parent "
17+ android : layout_width =" fill_parent "
18+ android : layout_height =" fill_parent "
1919 android : layout_gravity =" center" />
2020
2121 </com .todobom.opennotescanner.views.SquareFrameLayout>
You can’t perform that action at this time.
0 commit comments