-
Notifications
You must be signed in to change notification settings - Fork 36
[SDK-386] embedded card improvements #1009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
33c7253
Embedded Card Layout fixes
franco-zalamena-iterable 676d096
Default params for embedded config
franco-zalamena-iterable c7229cb
Fixed embedded card appearance
franco-zalamena-iterable e35c809
Changelog updates
franco-zalamena-iterable e478f43
Add @JvmOverloads to IterableEmbeddedViewConfig constructor
franco-zalamena-iterable 8c023e5
Restore original button style in card_view layouts
franco-zalamena-iterable 166294e
Merge branch 'master' into SDK-386-embedded-card-image-height
franco-zalamena-iterable 7dc196e
Merge branch 'master' into SDK-386-embedded-card-image-height
franco-zalamena-iterable c742de1
aspect ratio clarifications
franco-zalamena-iterable 0aa7250
Merge branch 'master' into SDK-386-embedded-card-image-height
franco-zalamena-iterable 4d11c1c
Having default imageScaleType instead of nullable field
franco-zalamena-iterable 43601ec
Merge branch 'master' into SDK-386-embedded-card-image-height
franco-zalamena-iterable File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
23 changes: 13 additions & 10 deletions
23
...leapi-ui/src/main/java/com/iterable/iterableapi/ui/embedded/IterableEmbeddedViewConfig.kt
This file contains hidden or 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 |
|---|---|---|
| @@ -1,14 +1,17 @@ | ||
| package com.iterable.iterableapi.ui.embedded | ||
|
|
||
| import android.widget.ImageView | ||
|
|
||
| data class IterableEmbeddedViewConfig( | ||
| val backgroundColor: Int?, | ||
| val borderColor: Int?, | ||
| val borderWidth: Int?, | ||
| val borderCornerRadius: Float?, | ||
| val primaryBtnBackgroundColor: Int?, | ||
| val primaryBtnTextColor: Int?, | ||
| val secondaryBtnBackgroundColor: Int?, | ||
| val secondaryBtnTextColor: Int?, | ||
| val titleTextColor: Int?, | ||
| val bodyTextColor: Int? | ||
| val backgroundColor: Int? = null, | ||
| val borderColor: Int? = null, | ||
| val borderWidth: Int? = null, | ||
| val borderCornerRadius: Float? = null, | ||
| val primaryBtnBackgroundColor: Int? = null, | ||
| val primaryBtnTextColor: Int? = null, | ||
| val secondaryBtnBackgroundColor: Int? = null, | ||
| val secondaryBtnTextColor: Int? = null, | ||
| val titleTextColor: Int? = null, | ||
| val bodyTextColor: Int? = null, | ||
| val imageScaleType: ImageView.ScaleType? = null | ||
| ) |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.