-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Taras Koshkin
authored and
Taras Koshkin
committed
Jul 23, 2016
1 parent
0e0ef26
commit 15fa50c
Showing
7 changed files
with
76 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...etouch/src/main/java/com/koshkin/tehras/activetouch/views/ActiveTouchInterceptorLayout.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.koshkin.tehras.activetouch.views | ||
|
||
import android.content.Context | ||
import android.util.AttributeSet | ||
import android.util.Log | ||
import android.view.MotionEvent | ||
import android.widget.LinearLayout | ||
|
||
/** | ||
* Created by tehras on 7/23/16. | ||
*/ | ||
class ActiveTouchInterceptorLayout(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : LinearLayout(context, attrs, defStyleAttr) { | ||
constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0) | ||
constructor(context: Context) : this(context, null) | ||
|
||
private val TAG = "ActiveTouchInter" | ||
|
||
override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean { | ||
Log.d(TAG, "onInterceptTouchEvent") | ||
return true | ||
} | ||
|
||
override fun onTouchEvent(event: MotionEvent?): Boolean { | ||
Log.d(TAG, "onTouchEvent") | ||
|
||
return true | ||
} | ||
|
||
} |
19 changes: 0 additions & 19 deletions
19
...ouch/src/main/java/com/koshkin/tehras/activetouch/views/ActiveTouchLinearLayoutManager.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...vetouchsample/src/main/java/com/koshkin/tehras/activetouchsample/BlockableRecyclerView.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.koshkin.tehras.activetouchsample | ||
|
||
import android.content.Context | ||
import android.support.v7.widget.RecyclerView | ||
import android.util.AttributeSet | ||
|
||
/** | ||
* Created by tehras on 7/23/16. | ||
*/ | ||
class BlockableRecyclerView(context: Context?, attrs: AttributeSet?, defStyle: Int) : RecyclerView(context, attrs, defStyle) { | ||
constructor(context: Context?, attrs: AttributeSet?) : this(context, attrs, 0) | ||
constructor(context: Context?) : this(context, null) | ||
|
||
var blockScroll = false | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include ':activetouch', ':activetouchsample' | ||
include ':activetouchsample', ':activetouch' |