View BubbleNotification.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun BubbleNotificationHost( | |
hostState: BubbleNotificationHostState, | |
modifier: Modifier = Modifier, | |
animationSpec: FiniteAnimationSpec<IntOffset> = tween(300), | |
bubbleNotification: @Composable (BubbleNotificationData) -> Unit = { BubbleNotification(it) }, | |
content: @Composable () -> Unit | |
) { | |
val currentBubbleNotificationData = hostState.currentBubbleNotificationData |
View transformationExmpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inside the composable function | |
val context = LocalContext.current | |
var exoPlayer by remember { mutableStateOf<ExoPlayer?>(null) } | |
val transformerListener = remember { | |
object : Transformer.Listener { | |
override fun onTransformationCompleted(inputMediaItem: MediaItem, transformationResult: TransformationResult) { | |
super.onTransformationCompleted(inputMediaItem, transformationResult) |
View PickerManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
@author kafri8889 | |
**/ | |
class PickerManager( | |
private val context: FragmentActivity, | |
private val listener: PickerListener | |
) { | |
fun datePicker( | |
data: Any? = null, |
View SettingPreference.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun SettingPreference( | |
preference: Preference, | |
onClick: (Any) -> Unit | |
) { | |
when (preference) { | |
is BasicPreference -> { | |
BasicPreference( | |
preference = preference, | |
onClick = onClick |
View DateTextField.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun Screen() { | |
var date by remember { | |
mutableStateOf( | |
TextFieldValue( | |
text = "dd-MM-yyyy" | |
) | |
) | |
} |
View DashedDivider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Preview | |
@Composable | |
private fun DashedDividerPreview() { | |
DashedDivider( | |
color = Color.Black, | |
thickness = 1.dp, | |
modifier = Modifier | |
.fillMaxWidth() | |
.padding(16.dp) | |
) |