Skip to content

Commit d4cd37c

Browse files
committed
修复bug
1 parent a94105f commit d4cd37c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dependencies {
3838
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
3939
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
4040
implementation project(':mywidget')
41+
// implementation 'com.github.Kacent123:KingSearchView:1.0.5'
4142
// implementation 'com.github.Kacent123:KSearchView:v1.0'
4243
implementation 'com.google.android.material:material:1.2.0-alpha05'
4344
implementation 'com.google.android.material:material:1.1.0'

mywidget/src/main/java/com/kacent/widget/view/KingSearchView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class KingSearchView(
3737
init {
3838
orientation = VERTICAL
3939
gravity = Gravity.CENTER
40-
LayoutInflater.from(context).inflate(R.layout.search_layout, this, false)
40+
LayoutInflater.from(context).inflate(R.layout.search_layout, this, true)
4141
editText = findViewById(R.id.search_edit)
4242
icon = findViewById(R.id.icon)
4343
cleanBtn=findViewById(R.id.clean_btn)

0 commit comments

Comments
 (0)