TagAndroid App Development

Exploring Jetpack Compose: @Preview annotation

E

The ability to Preview Jetpack Compose composables within Android Studio is possibly one of my favorite things about this new way of building apps. Previews allow us to build, style and polish our composables without needing to run our app. The annotation offers a range of ways in which our previews can be configured, so I wanted to take a few moments to show you exactly what it can do so that we...

Exploring Jetpack Compose: Card

E

The Card composable is a surface that can be used to present content and actions focused on a single topic. If you’re enjoying my posts on Jetpack Compose, check out some details on the book I’m writing on Compose! When it comes to displaying a Card, there is a single composable function that can be used to do so. @Composable fun Card( modifier: Modifier = Modifier, shape: Shape =...

Exploring Jetpack Compose: Column

E

The Column Composable provides us with the functionality of displaying a collection of composables in a vertically sequenced format, where each composable is displayed simultaneously one after the other. If you’re enjoying my posts on Jetpack Compose, check out some details on the book I’m writing on Compose! When it comes to declaring a Column, there are four arguments which the...

Exploring Jetpack Compose: Padding Modifier

E

When it comes to the composition of composables, we may want to apply additional spacing to a composables size constraints. For this we can utilise Padding – padding adds this additional space to the specified sides of the composable, essentially making it larger in size. This area of padding cannot be consumed by the content inside of the composable, instead it merely acts as additional...

Exploring the Google Play In-App Review API

E

When it comes to the Google Play store, app ratings and reviews are a pretty important marketing tool – they can have a huge influence on whether someone downloads our app, so ensuring that we do not miss out on good reviews is important. However, I’ve felt like there has always been a lot of friction in the review process – many apps seem to approach it differently, all of...

Building an Exploding FAB Transition With Jetpack Compose

B

When interacting with apps on our devices, animations not only add delight to our experience but they also help to create a sense of connection between the destinations being animated. One of the animations on Android which I’ve always enjoyed is the exploding Floating Action Button animation. Here, the user clicks the FAB and it explodes to fill the whole screen, with the next screen being...

Early learnings in testing with Jetpack Compose

E

When it comes to developing Android applications, ensuring or applications remain stable is vital to providing a good user experience. One of things we can do to help achieve this is by writing automated tests that run checks against the user interface of our application. When it comes to Jetpack Compose, things currently look a little different to how we might be used to writing these kind of...

Exploring Jetpack Compose: Arrangement

E

When it comes to the layout of child components inside of their parents, it is likely we’re going to want to arrange them in some way on both the horizontal and/or vertical axis. For example, our parent may fill the height of the screen, but our child components may only represent a small amount of that height and we may want to arrange that to be at the bottom of the screen. The same applies...

Exploring Jetpack Compose: Android View

E

When it comes to building our UI in jetpack compose, for a lot of applications it will come at a time when our UIs are already build using a mixture of existing solutions – be it XML layouts or custom views. It may even be the case that we have custom views in our current Android project that aren’t quite ready to be converted over to compose just yet, or maybe it doesn’t feel very...

Exploring Jetpack Compose: Stack

E

If you’re enjoying my posts on Jetpack Compose, check out some details on the book I’ll be writing on Compose! When it comes to laying out groups of components in our screens, it’s not always the case that we want them to be sequentially displayed in a vertical or horizontal manner. There may be times in which we want to have some items drawn behind and/or on top of others. When this is...