SearchDialog
1.0.0
bilibili 검색창 효과를 모방합니다(3개의 문장만 있으면 달성 가능).
먼저 미리보기 이미지를 살펴보세요(변환 후 약간의 왜곡이 있습니다):
1. 검색 기록 지원(이미 데이터베이스에 저장됨)
2. 검색 효과는 기본적으로 bilibili와 동일합니다.
3. 더 많은 컨텐츠를 수정해야 할 경우 라이브러리를 다운로드하여 직접 수정할 수 있습니다.
4. 전문가가 아니므로 잘못된 점이 있으면 이슈를 통해 지적해 주시기 바랍니다.
5. 이 글을 참고해주셔서 감사합니다.
6. 이슈를 제출해주셔서 감사합니다. 업데이트가 너무 오래 걸려서 죄송합니다.
Gradle을 사용하면:
implementation ' com.wenwenwen888:searchbox:1.0.1 '
첫 번째 문장, 인스턴스화:
SearchFragment searchFragment = SearchFragment . newInstance ();
두 번째 문장, 콜백 설정:
searchFragment . setOnSearchClickListener ( new IOnSearchClickListener () {
@ Override
public void OnSearchClick ( String keyword ) {
//这里处理逻辑
Toast . makeText ( ToolBarActivity . this , keyword , Toast . LENGTH_SHORT ). show ();
}
});
세 번째 문장에서는 검색 상자를 표시합니다.
searchFragment . showFragment ( getSupportFragmentManager (), SearchFragment . TAG );
Copyright 2016 wenwenwen888
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.