Android Compose: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
 
Line 2: Line 2:
Been a while since I started looking at Android, I makes me happy to do this. Love the technical aspect.
Been a while since I started looking at Android, I makes me happy to do this. Love the technical aspect.
=Starting out=
=Starting out=
I find it really hard to understand the approach to Alignment when we deal with rows and columns but doing the course on Compose finally makes we think. If you are a column the main axis is down (y-axis). If you are a row you align on the x-axis.<br>
I find it really hard to understand the approach to Alignment when we deal with rows and columns but doing the course on Compose finally makes sense.<br>
<br>
If you are a column the main axis is down (y-axis). If you are a row you align on the x-axis.<br>
<br>
They provide
*HorizontalAlignment
*verticalArrangement
<br>
If you are a row the main axis is across (x-axis). If you are a column you align on the y-axis.<br>
<br>
<br>
They provide  
They provide  
*Alignment
*VerticalAlignment
*Arrangement
*HorizontalArrangement
For Alignment and a Column this is aligned across the x-axis
For Arrangement and a Column this is arranged on the y-axis

Latest revision as of 05:45, 7 March 2025

Introduction

Been a while since I started looking at Android, I makes me happy to do this. Love the technical aspect.

Starting out

I find it really hard to understand the approach to Alignment when we deal with rows and columns but doing the course on Compose finally makes sense.

If you are a column the main axis is down (y-axis). If you are a row you align on the x-axis.

They provide

  • HorizontalAlignment
  • verticalArrangement


If you are a row the main axis is across (x-axis). If you are a column you align on the y-axis.

They provide

  • VerticalAlignment
  • HorizontalArrangement