Skip to content

mr3y-the-programmer/Thoughts

Repository files navigation

Thoughts

My playground to play around with Jetpack compose

Demo

RecursionLoop.kt DockedBottomBar.kt Stairs.kt
Recursion Loop Docked bottom bar Demo Stairs Effect Demo
Graph.kt Telegram-like Reveal Effect on toggling theme, see CircularRevealEffect.kt
Graph Demo Circular Reveal Demo

WIP

Also, there is a Work-in-progress DraggableColumn/Row DraggableColumn.kt DraggableRow.kt respectively.

Demo of DraggableColumn.kt's API

@Preview(widthDp = 360, heightDp = 640)
@Composable
fun DraggableColumnDemo() {
    val state = rememberDragState(itemsNum = 15)
    DraggableColumn(state = state, itemSpacing = 20.dp) {
        Button(onClick = { /*TODO*/ }, modifier = Modifier.size(96.dp, 48.dp)) {
            Text(text = "Button $currentItemIndex")
        }
    }
}

License

Copyright [2021] [MR3YY]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

About

Playground to practice making UIs in Jetpack compose

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages