**BottomSheet** Библиотека диалогов BottomSheet для ohos с концепцией материального дизайна. <img src="screenshot/Screenshot_1.jpg" height="30%" width="30%"/><img src="screenshot/Screenshot_2.jpg" height="30%" width="30%"/><img src="screenshot/Screenshot_3.jpg" height="30%" width="30%"/> <img src="screenshot/Screenshot_4.jpg" height="30%" width="30%"/><img src="screenshot/Screenshot_5.jpg" height="30%" width="30%"/><img src="screenshot/Screenshot_6.jpg" height="30%" width="30%"/> <img src="screenshot/Screenshot_7.jpg" height="30%" width="30%"/><img src="screenshot/Screenshot_8.jpg" height="30%" width="30%"/><img src="screenshot/Screenshot_9.jpg" height="30%" width="30%"/> <img src="screenshot/Screenshot_10.jpg" height="30%" width="30%"/><img src="screenshot/Screenshot_11.jpg" height="30%" width="30%"/> <img src="screenshot/Screenshot_12.jpg" height="50%" width="50%"/><img src="screenshot/Screenshot_13.jpg" height="50%" width="50%"/> ## Использование Через DevEco studio 2.0+ и скачивание SDK Native версии 2.0+. Способ 1: В entry Gradle выполните следующие действия: Если используете har, поместите har в папку libs в entry. Измените implementation fileTree(dir: 'libs', include: ['*.jar','*.har']) добавив *.har. Способ 2: ``` allprojects{ repositories{ mavenCentral() } } implementation 'io.openharmony.tpc.thirdlib:michaelbel-bottomsheet:1.0.2' ``` ```java BottomSheet.Builder builder = new BottomSheet.Builder(context); builder .setTitle(CharSequence title) .setItems(CharSequence[] items, Drawable[] icons, BottomSheetClickListener listener) .setMenu(int menuResId, BottomSheetClickListener listener) .setView(int layoutResId) .setContentType( int type) .setDarkTheme(boolean darkTheme) .setFullWidth(boolean fullWidth) .setCellHeight(int cellHeightDp) .setDividers(boolean dividers) .setWindowDimming(int windowDimming) .setTitleMultiline(boolean multiline) .setBackgroundColor(int color) .setBackgroundColorRes(int color) .setTitleTextColor(int color) .setTitleTextColorRes(int color) .setItemTextColor( int color) .setItemTextColorRes( int color) .setCallback(new BottomSheetCallback() { @Override public void onShown() { } @Override public void onDismissed() { } }) .show(); ``` ## Wiki Всю информацию можно найти на [BottomSheet Wiki][wiki-url]. ## Устарело BottomSheet устарел. Разработка больше не ведётся. Существующая версия продолжит функционировать. Пожалуйста, используйте [BottomSheetDialogFragment][bsdf-url] от Google вместо этого. Спасибо! ## Лицензия Copyright 2016 Michael Bely 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.