讓SearchView不聚焦
方法:讓其他的布局搶占焦點(diǎn)
view.apply {
isFocusable = true
isFocusableInTouchMode = true
requestFocus()
}
當(dāng)出現(xiàn)包沖突的時候,可以考慮在app下的build里添加
configurations.all {
resolutionStrategy.eachDependency { details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.0.2'
}
}
}
}
在fragment中Edittest設(shè)置text無效
添加android:saveEnabled="false"