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: |

How to Create a Private or Public Channel on Telegram? Developing social channels based on exchanging a single message isn’t exactly new, of course. Back in 2014, the β€œYo” app was launched with the sole purpose of enabling users to send each other the greeting β€œYo.” 2How to set up a Telegram channel? (A step-by-step tutorial) As five out of seven counts were serious, Hui sentenced Ng to six years and six months in jail. bank east asia october 20 kowloon
from us


Telegram Kotlin
FROM American