Skip to content

Commit

Permalink
Add several functionalities, remove test files
Browse files Browse the repository at this point in the history
  • Loading branch information
pramonow committed Nov 14, 2018
1 parent 57ea659 commit d11191f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 88 deletions.

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/test/java/pramonow/com/simplesearchview/ExampleUnitTest.kt

This file was deleted.

1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}

Expand Down
2 changes: 0 additions & 2 deletions searchviewmodule/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

ext.kotlin_version = '1.2.41'

android {
compileSdkVersion 28

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class SimpleSearchView: RelativeLayout {
lateinit var clearButton: ImageButton

constructor(context: Context, attr: AttributeSet) : super(context,attr) {
init(context,attr)
init(context)
}

private fun init(context: Context, attr: AttributeSet)
private fun init(context: Context)
{
View.inflate(context, R.layout.layout_search_view,this)

Expand Down Expand Up @@ -65,4 +65,14 @@ class SimpleSearchView: RelativeLayout {

backButton.setOnClickListener{v -> buttonCallback.onBack()}
}

public fun setTextHint(text:String)
{
queryText.setHint(text)
}

public fun setFocused(focus:Boolean)
{
queryText.isFocusable = focus
}
}

This file was deleted.

0 comments on commit d11191f

Please sign in to comment.