Compose Calculator
This project is a simple calculator built by Jetpack Compose.
Click here to download it.
Highlights
-
Custom Layout
SubcomposeBottomFirstLayout
: A layout which measures the bottomComposable
first and calculates the size of otherComposable
then.CalcInput
: Calculate the box’s size based on the shape of character array.
-
Large-Screen Adaptation
- Use
BoxWithConstraints
to choose the appropriate layout based on the width of screen.
- Use
-
Animation
- Do animating when inputting the formular (by
Animatable
) - Do animating when the history item enters into the screen (by
LaunchedEffect
+animateXXXAsState
)
- Do animating when inputting the formular (by
-
Immersion: Full screen without any disturbance
-
Dark Mode Adaptation