KOTLIN_LIB Telegram 563
πŸ“± 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/563
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/563

View MORE
Open in Telegram


Telegram News

Date: |

How to build a private or public channel on Telegram? Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them. Telegram desktop app: In the upper left corner, click the Menu icon (the one with three lines). Select β€œNew Channel” from the drop-down menu. β€œ[The defendant] could not shift his criminal liability,” Hui said. Matt Hussey, editorial director at NEAR Protocol also responded to this news with β€œ#meIRL”. Just as you search β€œBear Market Screaming” in Telegram, you will see a Pepe frog yelling as the group’s featured image.
from us


Telegram Kotlin
FROM American