Relative Content

Tag Archive for android-jetpack-compose

Change elevation with scroll position

I want to use a two-levels app-bar, where parts of the app-bar should hide when scrolling, and part of it should stay visible. My approach was to simply add 2 app-bars into a column, and apply a different scroll behaviour on each of them. The top level app-bar, containing the title, the action icons and the navigation, will auto-hide. The 2nd-level, will always remain on screen.

Aspect Ratio of CameraX Preview

setTargetAspectRatio
is deprecated in cameraX android. How to set aspect ratio of preview view and image capture i.e. aspect ratio other then default provided let say 1:1 or FULL?