MultiSearchView
1.0.0
Android용 또 다른 내장 애니메이션 검색 보기입니다.
모든 디자인 크레딧은 Cubarto에게 있으며 이 디자인에서 영감을 얻었습니다.
여기
< com .iammert.library.ui.multisearchviewlib.MultiSearchView
android : layout_width = " match_parent "
android : layout_height = " wrap_content " />
multiSearchView.setSearchViewListener( object : MultiSearchView . MultiSearchViewListener {
override fun onItemSelected ( index : Int , s : CharSequence ) {
}
override fun onTextChanged ( index : Int , s : CharSequence ) {
}
override fun onSearchComplete ( index : Int , s : CharSequence ) {
}
override fun onSearchItemRemoved ( index : Int ) {
}
})
MultiSearchView를 사용자 정의해야 하는 경우 먼저 styles.xml 아래에 스타일 세트를 추가해야 합니다.
<!-- Search Text Style. -->
< style name = " SearchTextStyle " >
<!-- Custom values write to here for SearchEditText. -->
< item name = " android:focusable " >true</ item >
< item name = " android:focusableInTouchMode " >true</ item >
< item name = " android:enabled " >true</ item >
< item name = " android:hint " >Search</ item >
< item name = " android:imeOptions " >actionSearch</ item >
< item name = " android:textSize " >18sp</ item >
< item name = " android:maxLength " >15</ item >
< item name = " android:inputType " >textCapSentences</ item >
< item name = " android:textColorHint " >#80999999</ item >
< item name = " android:textColor " >#000</ item >
</ style >
그런 다음 MultiSearchView 아래 app:searchTextStyle에 스타일 세트를 지정해야 합니다.
< com .iammert.library.ui.multisearchviewlib.MultiSearchView
android : id = " @+id/multiSearchView "
android : layout_width = " match_parent "
android : layout_height = " wrap_content "
android : layout_marginTop = " 16dp "
app : searchTextStyle = " @style/SearchTextStyle " />
그게 다야. MultiSearchView에 대한 자신만의 스타일을 만들었습니다.
allprojects {
repositories {
.. .
maven { url ' https://jitpack.io ' }
}
}
dependencies {
implementation ' com.github.iammert:MultiSearchView:0.3 '
}
Copyright 2019 Mert Şimşek
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.