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

As five out of seven counts were serious, Hui sentenced Ng to six years and six months in jail. Click β€œSave” ; The court said the defendant had also incited people to commit public nuisance, with messages calling on them to take part in rallies and demonstrations including at Hong Kong International Airport, to block roads and to paralyse the public transportation system. Various forms of protest promoted on the messaging platform included general strikes, lunchtime protests and silent sit-ins. 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. Content is editable within two days of publishing
from us


Telegram Kotlin
FROM American