forked from tytydraco/SSH
-
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
1 parent
3bd86dc
commit c80e4ad
Showing
4 changed files
with
42 additions
and
6 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
28 changes: 28 additions & 0 deletions
28
app/src/main/java/com/usgishimura/ssh/utils/NonFocusingScrollView.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,28 @@ | ||
package com.usgishimura.ssh.utils | ||
import android.content.Context | ||
import android.graphics.Rect | ||
import android.util.AttributeSet | ||
import android.view.View | ||
import android.widget.ScrollView | ||
|
||
|
||
class NonFocusingScrollView : ScrollView { | ||
constructor(context: Context?) : super(context) {} | ||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {} | ||
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super( | ||
context, | ||
attrs, | ||
defStyle | ||
) { | ||
} | ||
|
||
override fun getFocusables(direction: Int): ArrayList<View?>? { | ||
return ArrayList<View?>() | ||
} | ||
override fun onRequestFocusInDescendants( | ||
direction: Int, | ||
previouslyFocusedRect: Rect? | ||
): Boolean { | ||
return true | ||
} | ||
} |
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