File tree Expand file tree Collapse file tree 4 files changed +10
-16
lines changed
src/main/kotlin/com/lapism/search Expand file tree Collapse file tree 4 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Add the dependency to your gradle file:
2929 }
3030
3131 dependencies {
32- implementation 'io.github.lapism:search:1.2.0 '
32+ implementation 'io.github.lapism:search:1.2.1 '
3333 }
3434```
3535
@@ -65,20 +65,13 @@ Add the dependency to your gradle file:
6565 binding. materialSearchView. clearFocus()
6666 }
6767 setHint(getString(R . string. search))
68- setBackgroundColor(
69- ContextCompat . getColor(
70- this @MainActivity ,
71- R . color. color_surface
72- )
73- )
7468 setOnQueryTextListener(object : MaterialSearchView . OnQueryTextListener {
75- override fun onQueryTextChange(newText: CharSequence ): Boolean {
69+ override fun onQueryTextChange(newText: CharSequence ) {
7670 adapter. filter(newText)
77- return true
7871 }
7972
80- override fun onQueryTextSubmit(query: CharSequence ): Boolean {
81- return true
73+ override fun onQueryTextSubmit(query: CharSequence ) {
74+
8275 }
8376 })
8477 setOnFocusChangeListener(object : MaterialSearchView . OnFocusChangeListener {
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ android {
1010 defaultConfig {
1111 minSdk 26
1212 targetSdk 31
13- versionCode 1020000
14- versionName " 1.2.0 "
13+ versionCode 1020100
14+ versionName " 1.2.1 "
1515 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1616 consumerProguardFiles " consumer-rules.pro"
1717 }
@@ -49,7 +49,7 @@ dependencies {
4949
5050ext {
5151 PUBLISH_GROUP_ID = ' io.github.lapism'
52- PUBLISH_VERSION = ' 1.2.0 '
52+ PUBLISH_VERSION = ' 1.2.1 '
5353 PUBLISH_ARTIFACT_ID = ' search'
5454 PUBLISH_DESCRIPTION = ' Material You Search component for Android, SearchView'
5555 PUBLISH_URL = ' https://github.com/lapism/search'
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class FocusEditText @JvmOverloads constructor(
2828
2929 override fun clearFocus () {
3030 super .clearFocus()
31- text?.clear()
31+ text?.clear() // TODO FIX
3232 }
3333
3434 // *********************************************************************************************
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ class MaterialSearchBar @JvmOverloads constructor(
7070 }
7171
7272 if (a?.hasValue(R .styleable.MaterialSearchBar_search_radius )!! ) {
73- val customRadius = a?.getInt(R .styleable.MaterialSearchBar_search_radius , 0 )
73+ val customRadius =
74+ a?.getDimensionPixelSize(R .styleable.MaterialSearchBar_search_radius , 0 )
7475 setRadius(customRadius?.toFloat()!! )
7576 }
7677
You can’t perform that action at this time.
0 commit comments