KOTLIN_LIB Telegram 562
πŸ“± FlexibleBottomSheet β€” это Π»Π΅Π³ΠΊΠΈΠΉ ΠΈ настраиваСмый ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π½ΠΈΠΆΠ½Π΅Π³ΠΎ листа (Bottom Sheet) для Android, основанный Π½Π° BottomSheetDialogFragment. Он ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΈΠ²Π°Π΅Ρ‚ Ρ€Π°Π·Π»ΠΈΡ‡Π½Ρ‹Π΅ Ρ€Π΅ΠΆΠΈΠΌΡ‹ (STRETCH, HALF, FULL) ΠΈ динамичСски адаптируСтся ΠΏΠΎΠ΄ содСрТимоС.

ΠžΡΠΎΠ±Π΅Π½Π½ΠΎΡΡ‚ΠΈ

* ΠŸΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Ρ€Π΅ΠΆΠΈΠΌΠΎΠ² STRETCH, HALF ΠΈ FULL.
* Анимация ΠΏΡ€ΠΈ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΈ Ρ€Π°Π·ΠΌΠ΅Ρ€ΠΎΠ².
* Π‘Π»ΡƒΡˆΠ°Ρ‚Π΅Π»ΠΈ состояния Π½ΠΈΠΆΠ½Π΅Π³ΠΎ листа.
* БовмСстим с ViewBinding ΠΈ Jetpack Compose.
* Высокая Π½Π°ΡΡ‚Ρ€Π°ΠΈΠ²Π°Π΅ΠΌΠΎΡΡ‚ΡŒ.

Установка


dependencies {
implementation "com.github.skydoves:flexible-bottomsheet:1.0.4"
}


Быстрый старт


class MyBottomSheet : FlexibleBottomSheet() {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
return inflater.inflate(R.layout.my_bottom_sheet, container, false)
}
}


Настройка Ρ€Π΅ΠΆΠΈΠΌΠ°


MyBottomSheet().apply {
bottomSheetStyle = BottomSheetStyle.FLEXIBLE
bottomSheetConfig = BottomSheetConfig(
sheetHeight = SheetHeight.FULL,
isCancelable = true,
isDraggable = true,
)
}


https://github.com/skydoves/FlexibleBottomSheet

✍️ @kotlin_lib
πŸ‘3



tgoop.com/kotlin_lib/562
Create:
Last Update:

πŸ“± FlexibleBottomSheet β€” это Π»Π΅Π³ΠΊΠΈΠΉ ΠΈ настраиваСмый ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π½ΠΈΠΆΠ½Π΅Π³ΠΎ листа (Bottom Sheet) для Android, основанный Π½Π° BottomSheetDialogFragment. Он ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΈΠ²Π°Π΅Ρ‚ Ρ€Π°Π·Π»ΠΈΡ‡Π½Ρ‹Π΅ Ρ€Π΅ΠΆΠΈΠΌΡ‹ (STRETCH, HALF, FULL) ΠΈ динамичСски адаптируСтся ΠΏΠΎΠ΄ содСрТимоС.

ΠžΡΠΎΠ±Π΅Π½Π½ΠΎΡΡ‚ΠΈ

* ΠŸΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Ρ€Π΅ΠΆΠΈΠΌΠΎΠ² STRETCH, HALF ΠΈ FULL.
* Анимация ΠΏΡ€ΠΈ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΈ Ρ€Π°Π·ΠΌΠ΅Ρ€ΠΎΠ².
* Π‘Π»ΡƒΡˆΠ°Ρ‚Π΅Π»ΠΈ состояния Π½ΠΈΠΆΠ½Π΅Π³ΠΎ листа.
* БовмСстим с ViewBinding ΠΈ Jetpack Compose.
* Высокая Π½Π°ΡΡ‚Ρ€Π°ΠΈΠ²Π°Π΅ΠΌΠΎΡΡ‚ΡŒ.

Установка


dependencies {
implementation "com.github.skydoves:flexible-bottomsheet:1.0.4"
}


Быстрый старт


class MyBottomSheet : FlexibleBottomSheet() {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
return inflater.inflate(R.layout.my_bottom_sheet, container, false)
}
}


Настройка Ρ€Π΅ΠΆΠΈΠΌΠ°


MyBottomSheet().apply {
bottomSheetStyle = BottomSheetStyle.FLEXIBLE
bottomSheetConfig = BottomSheetConfig(
sheetHeight = SheetHeight.FULL,
isCancelable = true,
isDraggable = true,
)
}


https://github.com/skydoves/FlexibleBottomSheet

✍️ @kotlin_lib

BY Kotlin


Share with your friend now:
tgoop.com/kotlin_lib/562

View MORE
Open in Telegram


Telegram News

Date: |

ZDNET RECOMMENDS Some Telegram Channels content management tips Public channels are public to the internet, regardless of whether or not they are subscribed. A public channel is displayed in search results and has a short address (link). "Doxxing content is forbidden on Telegram and our moderators routinely remove such content from around the world," said a spokesman for the messaging app, Remi Vaughn. Hui said the messages, which included urging the disruption of airport operations, were attempts to incite followers to make use of poisonous, corrosive or flammable substances to vandalize police vehicles, and also called on others to make weapons to harm police.
from us


Telegram Kotlin
FROM American