-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(bank-sdk): Skonto. Handle UI on small devices
PP-641
- Loading branch information
1 parent
d945049
commit 712b2f7
Showing
4 changed files
with
87 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
capture-sdk/sdk/src/main/java/net/gini/android/capture/ui/compose/GiniPreview.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package net.gini.android.capture.ui.compose | ||
|
||
import android.content.res.Configuration | ||
import androidx.compose.ui.tooling.preview.Preview | ||
|
||
@Preview( | ||
name = "Font Scale 200%", | ||
group = "FontScale", | ||
fontScale = 2f, | ||
showBackground = true, | ||
) | ||
@Preview( | ||
name = "Font Scale 100%", | ||
group = "FontScale", | ||
fontScale = 1f, | ||
showBackground = true, | ||
) | ||
/** | ||
* This annotation is used to preview the screen in different sizes (100% and 200% font scale) | ||
* It can be combined with [GiniScreenPreviewUiModes] | ||
* | ||
* @see GiniScreenPreviewUiModes | ||
*/ | ||
annotation class GiniScreenPreviewSizes | ||
|
||
@Preview( | ||
name = "Dark", | ||
group = "UiMode", | ||
uiMode = Configuration.UI_MODE_NIGHT_YES, | ||
showBackground = true, | ||
) | ||
@Preview( | ||
name = "Light", | ||
group = "UiMode", | ||
uiMode = Configuration.UI_MODE_NIGHT_NO, | ||
showBackground = true, | ||
) | ||
/** | ||
* This annotation is used to preview the screen in different UI modes (Light and Dark) | ||
* It can be combined with [GiniScreenPreviewSizes] | ||
* | ||
* @see GiniScreenPreviewSizes | ||
*/ | ||
annotation class GiniScreenPreviewUiModes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters