Issue title
Support of different screen sizes tool (WindowSizeClass)
Description
Android Compose does not calculate itself screen's resolution, so WindowType tool was created to solve this issue.
The main idea of this tool is to calculate the size of the screen and return the corresponding dimens.
Dimens should be manually implemented. There won't be an algorithm for this.
Tasks
Creation of WindowType class, which includes three different screen sizes.
The method getDimensions will calculate the screen size and return the corresponding Dimension file.
If not all the dimensions objects are set, WindowType class will need to be modified with the purpose that for EXPANDED and COMPACT resolutions have the same dimension file (defaultResolution).
To access to the corresponding dimen/padding/margin inside a view, AppTheme.dimens should be used.
ISSUE18
Issue title Support of different screen sizes tool (WindowSizeClass)
Description
Android Compose
does not calculate itself screen's resolution, soWindowType
tool was created to solve this issue.Tasks
WindowType
class, which includes three different screen sizes.getDimensions
will calculate the screen size and return the correspondingDimension
file.WindowType
class will need to be modified with the purpose that forEXPANDED
andCOMPACT
resolutions have the same dimension file (defaultResolution
).AppTheme.dimens
should be used.Preview