TP-73067 | Kamalesh | Added image Span in spannable Text renderer (#536)
Co-authored-by: Sohan Reddy Atukula <sohan.reddy@navi.com>
This commit is contained in:
committed by
GitHub
parent
8f368044b9
commit
1e6cc5f8c4
@@ -19678,5 +19678,148 @@
|
||||
"centerScrollIndex": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
"spannableTextWithImage": {
|
||||
"view": [
|
||||
{
|
||||
"property": {
|
||||
"width": "MATCH_PARENT",
|
||||
"height": "WRAP_CONTENT",
|
||||
"layoutId": "footer_container_oxCyD",
|
||||
"viewType": "Column",
|
||||
"arrangementData": {
|
||||
"arrangementType": "Center"
|
||||
},
|
||||
"backgroundColor": "#F5F5F5",
|
||||
"horizontalAlignment": "CenterHorizontally"
|
||||
},
|
||||
"childrenViews": [
|
||||
{
|
||||
"property": {
|
||||
"width": "MATCH_PARENT",
|
||||
"height": "WRAP_CONTENT",
|
||||
"padding": {
|
||||
"end": 16,
|
||||
"top": 16,
|
||||
"start": 16
|
||||
},
|
||||
"layoutId": "privacy_terms_consent_container_oxCyD",
|
||||
"viewType": "ConstraintLayout",
|
||||
"isVisible": "true"
|
||||
},
|
||||
"childrenViews": [
|
||||
{
|
||||
"property": {
|
||||
"width": "FILL_TO_CONSTRAINTS",
|
||||
"height": "WRAP_CONTENT",
|
||||
"padding": {
|
||||
"top": 2,
|
||||
"start": 12
|
||||
},
|
||||
"layoutId": "privacy_terms_text_oxCyD",
|
||||
"viewType": "SpannableText",
|
||||
"spanProperty": [
|
||||
{
|
||||
"property": {
|
||||
"fontSize": 12,
|
||||
"isVisible": "true",
|
||||
"textColor": "#6B6B6B",
|
||||
"fontFamily": "ttComposeFontFamily",
|
||||
"fontWeight": "TT_REGULAR"
|
||||
},
|
||||
"stringId": "agreement_text"
|
||||
},
|
||||
{
|
||||
"property": {
|
||||
"fontSize": 12,
|
||||
"isVisible": "true",
|
||||
"textColor": "#6B6B6B",
|
||||
"fontFamily": "ttComposeFontFamily",
|
||||
"fontWeight": "TT_MEDIUM",
|
||||
"textDecoration": "Underline"
|
||||
},
|
||||
"stringId": "privacy_policy_text"
|
||||
},
|
||||
{
|
||||
"property": {
|
||||
"fontSize": 20,
|
||||
"isVisible": "true",
|
||||
"textColor": "#6B6B6B",
|
||||
"fontFamily": "ttComposeFontFamily",
|
||||
"fontWeight": "TT_SEMI_BOLD"
|
||||
},
|
||||
"stringId": "and_symbol_text"
|
||||
},
|
||||
{
|
||||
"imageProperty": {
|
||||
"width": "14",
|
||||
"height": "14",
|
||||
"layoutId": "coin_icon",
|
||||
"contentScale": "FillBounds"
|
||||
},
|
||||
"imageId": "coin_icon"
|
||||
},
|
||||
{
|
||||
"property": {
|
||||
"fontSize": 50,
|
||||
"isVisible": "true",
|
||||
"textColor": "#6B6B6B",
|
||||
"fontFamily": "ttComposeFontFamily",
|
||||
"fontWeight": "TT_SEMI_BOLD"
|
||||
},
|
||||
"stringId": "and_symbol_text"
|
||||
}
|
||||
],
|
||||
"constraintLinks": {
|
||||
"end": {
|
||||
"layoutId": "parent",
|
||||
"constraint": "END"
|
||||
},
|
||||
"top": {
|
||||
"layoutId": "parent",
|
||||
"constraint": "TOP"
|
||||
},
|
||||
"start": {
|
||||
"layoutId": "parent",
|
||||
"constraint": "START"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": {
|
||||
"layoutId": "output_text",
|
||||
"viewType": "Text",
|
||||
"width": "MATCH_PARENT",
|
||||
"height": "WRAP_CONTENT",
|
||||
"textColor": "#000000",
|
||||
"margin": {
|
||||
"start": 24,
|
||||
"top": 16
|
||||
},
|
||||
"isStateFul": "true"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"data": {
|
||||
"privacy_terms_text_oxCyD": {
|
||||
"inlineContentMap": {
|
||||
"coin_icon": {
|
||||
"viewType": "Image",
|
||||
"iconUrl": "https://public-assets.prod.navi-sa.in/navi-coin/png/minified_images/AP_Coins/Navi+coin_32px.png"
|
||||
}
|
||||
},
|
||||
"textMap": {
|
||||
"agreement_text": "This is a new sample",
|
||||
"privacy_policy_text": "Spannable text.",
|
||||
"and_symbol_text": "Please enjoy while it renders"
|
||||
},
|
||||
"viewType": "SpannableText"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user