@onekeyfe/react-native-native-list 6.7.0-4 → 6.7.0-41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +250 -9
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +35 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +25 -3
- package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +17 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +102 -7
- package/android/src/main/java/com/onekey/nativelist/NativeListGeneratedIcons.kt +47 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +225 -11
- package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +152 -33
- package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +92 -28
- package/android/src/main/java/com/onekey/nativelist/NativeListMediaPlaceholderView.kt +244 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListMediaPreviewSlot.kt +66 -31
- package/android/src/main/java/com/onekey/nativelist/NativeListMediaTileRenderer.kt +32 -11
- package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +149 -3
- package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +120 -287
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +7 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +3 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +55 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1953 -117
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +35 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListIdentityTrailingAxisTest.kt +36 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingSlotFrameTest.kt +68 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingVisualClipPolicyTest.kt +44 -0
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +10 -0
- package/docs/ROW_TEMPLATES.md +74 -13
- package/docs/SPEC.md +1206 -15
- package/docs/STYLE_SPEC.md +14 -0
- package/ios/HybridNativeList.swift +21 -2
- package/ios/NativeListAccessoryStack.swift +237 -51
- package/ios/NativeListActivityDetailsView.swift +30 -11
- package/ios/NativeListActivityRenderer.swift +8 -2
- package/ios/NativeListButtonGroupRenderer.swift +89 -0
- package/ios/NativeListDataRowRenderer.swift +167 -30
- package/ios/NativeListDesignAssets.swift +13 -75
- package/ios/NativeListGeneratedIcons.swift +55 -0
- package/ios/NativeListIconBinding.swift +171 -0
- package/ios/NativeListIdentityRenderer.swift +256 -39
- package/ios/NativeListLeadingVisual.swift +127 -28
- package/ios/NativeListMarketRenderer.swift +120 -31
- package/ios/NativeListMediaPlaceholderView.swift +189 -0
- package/ios/NativeListMediaPreviewSlot.swift +122 -61
- package/ios/NativeListMediaTileRenderer.swift +15 -11
- package/ios/NativeListMessageRenderer.swift +34 -1
- package/ios/NativeListMetricCardRenderer.swift +4 -2
- package/ios/NativeListModels.swift +42 -2
- package/ios/NativeListRendererRegistry.swift +1 -0
- package/ios/NativeListResolvedText.swift +2 -1
- package/ios/NativeListRowHost.swift +14 -0
- package/ios/NativeListSectionHeaderRenderer.swift +100 -4
- package/ios/RNCNativeListView.swift +1053 -58
- package/ios/tests/NativeListAccessoryStackTests.swift +101 -0
- package/ios/tests/NativeListAccountSelectorLayoutTests.swift +96 -0
- package/ios/tests/NativeListActivityPresentationTests.swift +153 -0
- package/ios/tests/NativeListIdentityTitleIconLayoutTests.swift +81 -0
- package/ios/tests/NativeListLeadingVisualPairBackdropTests.swift +50 -0
- package/ios/tests/NativeListLifecycleTests.swift +2819 -3
- package/ios/tests/NativeListMarketMetricsTests.swift +117 -0
- package/ios/tests/NativeListMediaVisibilityTests.swift +26 -1
- package/ios/tests/NativeListSharedIconTests.swift +236 -0
- package/lib/module/NativeList.js +221 -36
- package/lib/module/NativeList.web.js +167 -46
- package/lib/module/index.js +1 -1
- package/lib/module/models.js +3 -0
- package/lib/module/selection.js +1 -1
- package/lib/module/validation.js +1246 -48
- package/lib/module/web/NativeListGeneratedIcons.js +31 -0
- package/lib/module/web/NativeListWebEngine.js +513 -275
- package/lib/module/web/templates/ActivityRowRenderer.js +120 -87
- package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
- package/lib/module/web/templates/DataRowRenderer.js +40 -5
- package/lib/module/web/templates/IdentityRowRenderer.js +158 -6
- package/lib/module/web/templates/MarketTableRowRenderer.js +36 -19
- package/lib/module/web/templates/MediaTileRowRenderer.js +84 -25
- package/lib/module/web/templates/MessageRowRenderer.js +18 -2
- package/lib/module/web/templates/RowContainerStyle.js +1 -0
- package/lib/module/web/templates/RowRendererRegistry.js +3 -0
- package/lib/module/web/templates/SectionHeaderRowRenderer.js +36 -2
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
- package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
- package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
- package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
- package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
- package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
- package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
- package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
- package/lib/typescript/src/NativeList.d.ts +3 -3
- package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
- package/lib/typescript/src/NativeList.types.d.ts +20 -2
- package/lib/typescript/src/index.d.ts +2 -2
- package/lib/typescript/src/models.d.ts +126 -17
- package/lib/typescript/src/validation.d.ts +20 -0
- package/lib/typescript/src/web/NativeListGeneratedIcons.d.ts +2 -0
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +32 -1
- package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
- package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
- package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +9 -3
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
- package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
- package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
- package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
- package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
- package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
- package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
- package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
- package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
- package/package.json +16 -10
- package/react-native-native-list.podspec +2 -6
- package/scripts/generate-icons.mjs +150 -0
- package/scripts/generate-icons.test.mjs +288 -0
- package/scripts/native-list-icons.json +260 -0
- package/src/NativeList.nitro.ts +2 -0
- package/src/NativeList.tsx +416 -89
- package/src/NativeList.types.ts +24 -2
- package/src/NativeList.web.tsx +295 -89
- package/src/index.ts +2 -0
- package/src/models.ts +263 -144
- package/src/selection.ts +1 -0
- package/src/validation.ts +3013 -152
- package/src/web/NativeListGeneratedIcons.ts +28 -0
- package/src/web/NativeListWebEngine.ts +818 -343
- package/src/web/templates/ActivityRowRenderer.ts +178 -141
- package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
- package/src/web/templates/DataRowRenderer.ts +93 -20
- package/src/web/templates/IdentityRowRenderer.ts +231 -6
- package/src/web/templates/MarketTableRowRenderer.ts +53 -33
- package/src/web/templates/MediaTileRowRenderer.ts +90 -28
- package/src/web/templates/MessageRowRenderer.ts +23 -7
- package/src/web/templates/RowContainerStyle.ts +2 -0
- package/src/web/templates/RowRendererRegistry.ts +11 -1
- package/src/web/templates/SectionHeaderRowRenderer.ts +47 -4
- package/ios/Resources/NativeListIcons.xcassets/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/icon.svg +0 -14
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/icon.svg +0 -12
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/icon.svg +0 -6
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/icon.svg +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/icon.svg +0 -7
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/icon.svg +0 -18
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/icon.svg +0 -7
- package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/icon.svg +0 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
package com.margelo.nitro.nativelist
|
|
2
|
+
|
|
3
|
+
import android.content.res.ColorStateList
|
|
4
|
+
import android.graphics.Color
|
|
5
|
+
import android.graphics.drawable.GradientDrawable
|
|
6
|
+
import android.graphics.drawable.StateListDrawable
|
|
7
|
+
import android.view.Gravity
|
|
8
|
+
import android.view.View
|
|
9
|
+
import android.widget.FrameLayout
|
|
10
|
+
import android.widget.LinearLayout
|
|
11
|
+
import android.widget.ProgressBar
|
|
12
|
+
import androidx.core.widget.TextViewCompat
|
|
13
|
+
import com.facebook.react.uimanager.ThemedReactContext
|
|
14
|
+
import org.json.JSONObject
|
|
15
|
+
|
|
16
|
+
internal class NativeListButtonGroupRowView(context: ThemedReactContext, fonts: NativeListFonts) :
|
|
17
|
+
NativeListRendererRowView(context, fonts) {
|
|
18
|
+
private var generation = 0
|
|
19
|
+
private var rowOpacity = 1f
|
|
20
|
+
|
|
21
|
+
override fun appearance() {
|
|
22
|
+
super.appearance()
|
|
23
|
+
alpha = rowOpacity
|
|
24
|
+
}
|
|
25
|
+
override fun defaultHeight(item: NativeListItem, layout: String) = 64
|
|
26
|
+
|
|
27
|
+
override fun bindContent(
|
|
28
|
+
item: NativeListItem,
|
|
29
|
+
theme: JSONObject?,
|
|
30
|
+
layout: String,
|
|
31
|
+
checkboxState: (NativeListItem, NativeSelectionTarget?, String) -> String,
|
|
32
|
+
) {
|
|
33
|
+
recycleContent()
|
|
34
|
+
rowOpacity = (item.json.optJSONObject("style")?.optJSONObject("container")?.optDouble("opacity", item.json.optDouble("opacity", 1.0)) ?: item.json.optDouble("opacity", 1.0)).toFloat()
|
|
35
|
+
orientation = HORIZONTAL
|
|
36
|
+
gravity = Gravity.CENTER_VERTICAL
|
|
37
|
+
setPadding(0, dp(8), 0, dp(8))
|
|
38
|
+
val info = parseNativeListColor(theme?.optString("info", "#0F69F6") ?: "#0F69F6")
|
|
39
|
+
val descriptors = item.json.optJSONArray("buttons") ?: return
|
|
40
|
+
val epoch = generation
|
|
41
|
+
for (index in 0 until descriptors.length()) {
|
|
42
|
+
val descriptor = descriptors.getJSONObject(index)
|
|
43
|
+
val enabled = !item.json.optBoolean("disabled") && !descriptor.optBoolean("disabled") && !descriptor.optBoolean("loading")
|
|
44
|
+
val button = FrameLayout(context).apply {
|
|
45
|
+
isEnabled = enabled
|
|
46
|
+
alpha = if (enabled) 1f else 0.4f
|
|
47
|
+
contentDescription = descriptor.optString("accessibilityLabel", descriptor.optString("label"))
|
|
48
|
+
setTag(com.facebook.react.R.id.react_test_id, descriptor.optString("testID").takeIf { it.isNotEmpty() })
|
|
49
|
+
background = StateListDrawable().apply {
|
|
50
|
+
fun fill(pressed: Boolean) = GradientDrawable().apply {
|
|
51
|
+
setColor(if (pressed) (info and 0x00FFFFFF) or (43 shl 24) else Color.TRANSPARENT)
|
|
52
|
+
cornerRadius = dp(12).toFloat()
|
|
53
|
+
setStroke(dp(1), (info and 0x00FFFFFF) or (89 shl 24))
|
|
54
|
+
}
|
|
55
|
+
addState(intArrayOf(android.R.attr.state_pressed), fill(true))
|
|
56
|
+
addState(intArrayOf(), fill(false))
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
val label = NativeListTextView(context).apply {
|
|
60
|
+
text = descriptor.optString("label")
|
|
61
|
+
textSize = NativeListScale.font(resources, 14f)
|
|
62
|
+
typeface = fonts.medium(context)
|
|
63
|
+
setTextColor(info)
|
|
64
|
+
gravity = Gravity.CENTER
|
|
65
|
+
includeFontPadding = false
|
|
66
|
+
maxLines = 1
|
|
67
|
+
ellipsize = android.text.TextUtils.TruncateAt.END
|
|
68
|
+
TextViewCompat.setLineHeight(this, dp(20))
|
|
69
|
+
importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
|
|
70
|
+
}
|
|
71
|
+
val content = LinearLayout(context).apply {
|
|
72
|
+
orientation = HORIZONTAL
|
|
73
|
+
gravity = Gravity.CENTER
|
|
74
|
+
setPadding(dp(8), dp(12), dp(8), dp(12))
|
|
75
|
+
importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
|
|
76
|
+
}
|
|
77
|
+
button.addView(content, FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT))
|
|
78
|
+
if (descriptor.optBoolean("loading")) {
|
|
79
|
+
val spinner = ProgressBar(context, null, android.R.attr.progressBarStyleSmall).apply {
|
|
80
|
+
isIndeterminate = true
|
|
81
|
+
indeterminateTintList = ColorStateList.valueOf(info)
|
|
82
|
+
importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
|
|
83
|
+
}
|
|
84
|
+
content.addView(spinner, LayoutParams(dp(20), dp(20)).apply { marginEnd = dp(8) })
|
|
85
|
+
}
|
|
86
|
+
content.addView(label, LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT))
|
|
87
|
+
button.setOnClickListener {
|
|
88
|
+
if (generation == epoch && enabled) emitAction(descriptor.optString("actionKey"), button, "buttonGroup", index)
|
|
89
|
+
}
|
|
90
|
+
button.isClickable = enabled
|
|
91
|
+
addView(button, LayoutParams(0, dp(48), 1f).apply { if (index > 0) marginStart = dp(10) })
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
override fun recycleContent() {
|
|
96
|
+
generation += 1
|
|
97
|
+
for (index in 0 until childCount) getChildAt(index).setOnClickListener(null)
|
|
98
|
+
removeAllViews()
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
override fun disposeContent() = recycleContent()
|
|
102
|
+
}
|
|
@@ -11,6 +11,15 @@ internal class NativeListContainerSlotAdapter : RecyclerView.Adapter<NativeListC
|
|
|
11
11
|
private var content: View? = null
|
|
12
12
|
private var height = 0
|
|
13
13
|
private var enabled = true
|
|
14
|
+
private var boundHolder: Holder? = null
|
|
15
|
+
private var visualTranslationY = 0f
|
|
16
|
+
|
|
17
|
+
fun contentView(): View? = content
|
|
18
|
+
|
|
19
|
+
fun setVisualTranslationY(value: Float) {
|
|
20
|
+
visualTranslationY = value
|
|
21
|
+
boundHolder?.container?.translationY = value
|
|
22
|
+
}
|
|
14
23
|
|
|
15
24
|
fun update(view: View?, heightPx: Int, visible: Boolean) {
|
|
16
25
|
val previousCount = itemCount
|
|
@@ -39,6 +48,8 @@ internal class NativeListContainerSlotAdapter : RecyclerView.Adapter<NativeListC
|
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
override fun onBindViewHolder(holder: Holder, position: Int) {
|
|
51
|
+
boundHolder = holder
|
|
52
|
+
holder.container.translationY = visualTranslationY
|
|
42
53
|
holder.container.layoutParams = RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, height)
|
|
43
54
|
holder.container.removeAllViews()
|
|
44
55
|
content?.let { view ->
|
|
@@ -48,6 +59,7 @@ internal class NativeListContainerSlotAdapter : RecyclerView.Adapter<NativeListC
|
|
|
48
59
|
}
|
|
49
60
|
|
|
50
61
|
override fun onViewRecycled(holder: Holder) {
|
|
62
|
+
if (boundHolder === holder) boundHolder = null
|
|
51
63
|
holder.container.removeAllViews()
|
|
52
64
|
}
|
|
53
65
|
}
|
|
@@ -22,6 +22,7 @@ internal class NativeListDataRowView(context: ThemedReactContext, fonts: NativeL
|
|
|
22
22
|
gravity = Gravity.CENTER_VERTICAL
|
|
23
23
|
}
|
|
24
24
|
private val cells = List(4) { NativeListTableColumnView(context, fonts) }
|
|
25
|
+
private val trailingAccessories = NativeListAccessoryStack(context, fonts)
|
|
25
26
|
|
|
26
27
|
override fun unselectedBackground(
|
|
27
28
|
item: NativeListItem,
|
|
@@ -54,16 +55,20 @@ internal class NativeListDataRowView(context: ThemedReactContext, fonts: NativeL
|
|
|
54
55
|
addView(visual)
|
|
55
56
|
addView(accessories)
|
|
56
57
|
addView(columns, LayoutParams(0, LayoutParams.WRAP_CONTENT, 1f))
|
|
58
|
+
addView(trailingAccessories)
|
|
57
59
|
accessories.onAction = { key, view, slot, target ->
|
|
58
60
|
emitAction(key, view, "trailingAccessory", slot, target)
|
|
59
61
|
}
|
|
62
|
+
trailingAccessories.onAction = { key, view, slot, target ->
|
|
63
|
+
emitAction(key, view, "trailingAccessory", slot, target)
|
|
64
|
+
}
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
override fun defaultHeight(item: NativeListItem, layout: String): Int {
|
|
63
68
|
val values = item.json.optJSONArray("columns") ?: JSONArray()
|
|
64
69
|
val secondary =
|
|
65
70
|
(0 until values.length()).any {
|
|
66
|
-
values.getJSONObject(it)
|
|
71
|
+
nativeListDataColumnText(values.getJSONObject(it), "secondaryText").isNotEmpty()
|
|
67
72
|
}
|
|
68
73
|
return if (layout == "table") if (secondary) 60 else 52 else if (secondary) 64 else 56
|
|
69
74
|
}
|
|
@@ -127,6 +132,9 @@ internal class NativeListDataRowView(context: ThemedReactContext, fonts: NativeL
|
|
|
127
132
|
val accessoryStyle = JSONObject().put("value", style.optJSONObject("index"))
|
|
128
133
|
accessories.bind(item, descriptors, theme, accessoryStyle, sourceScale, checkboxState)
|
|
129
134
|
accessories.visibility = if (descriptors.length() == 0) GONE else VISIBLE
|
|
135
|
+
val trailing = data.optJSONArray("trailing") ?: JSONArray()
|
|
136
|
+
trailingAccessories.bind(item, trailing, theme, style, sourceScale, checkboxState)
|
|
137
|
+
trailingAccessories.visibility = if (trailing.length() == 0) GONE else VISIBLE
|
|
130
138
|
accessories.layoutParams =
|
|
131
139
|
LayoutParams(dp(32), LayoutParams.WRAP_CONTENT).apply { marginEnd = dp(10) }
|
|
132
140
|
val values = data.getJSONArray("columns")
|
|
@@ -159,6 +167,7 @@ internal class NativeListDataRowView(context: ThemedReactContext, fonts: NativeL
|
|
|
159
167
|
style,
|
|
160
168
|
fixedTableGeometry = unstyled,
|
|
161
169
|
)
|
|
170
|
+
cell.bindTitleIcons(value, theme, sourceScale)
|
|
162
171
|
// Legacy table default: every column is a fixed 40dp, top-aligned block.
|
|
163
172
|
cell.layoutParams =
|
|
164
173
|
LayoutParams(
|
|
@@ -194,17 +203,20 @@ internal class NativeListDataRowView(context: ThemedReactContext, fonts: NativeL
|
|
|
194
203
|
checkboxState: (NativeListItem, NativeSelectionTarget?, String) -> String,
|
|
195
204
|
) {
|
|
196
205
|
accessories.updateSelection(item, checkboxState)
|
|
206
|
+
trailingAccessories.updateSelection(item, checkboxState)
|
|
197
207
|
}
|
|
198
208
|
|
|
199
209
|
override fun recycleContent() {
|
|
200
210
|
visual.recycle()
|
|
201
211
|
accessories.reset()
|
|
212
|
+
trailingAccessories.reset()
|
|
202
213
|
cells.forEach { it.reset() }
|
|
203
214
|
}
|
|
204
215
|
|
|
205
216
|
override fun disposeContent() {
|
|
206
217
|
visual.dispose()
|
|
207
218
|
accessories.reset()
|
|
219
|
+
trailingAccessories.reset()
|
|
208
220
|
}
|
|
209
221
|
|
|
210
222
|
private companion object {
|
|
@@ -215,6 +227,8 @@ internal class NativeListDataRowView(context: ThemedReactContext, fonts: NativeL
|
|
|
215
227
|
private class NativeListTableColumnView(context: android.content.Context, private val fonts: NativeListFonts) : LinearLayout(context) {
|
|
216
228
|
private val primaryLine = LinearLayout(context)
|
|
217
229
|
private val primary = NativeListTextView(context)
|
|
230
|
+
private val titleIcon = OneKeyIconView(context)
|
|
231
|
+
private val secondaryTitleIcon = OneKeyIconView(context)
|
|
218
232
|
private val badges = LinearLayout(context)
|
|
219
233
|
private val secondaryLine = LinearLayout(context)
|
|
220
234
|
private val secondaryLeading = NativeListTextView(context)
|
|
@@ -256,6 +270,13 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
256
270
|
},
|
|
257
271
|
)
|
|
258
272
|
primaryLine.addView(primary, LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT))
|
|
273
|
+
for (icon in listOf(titleIcon, secondaryTitleIcon)) {
|
|
274
|
+
icon.visibility = GONE
|
|
275
|
+
primaryLine.addView(
|
|
276
|
+
icon,
|
|
277
|
+
LayoutParams(dp(20), dp(20)).apply { marginStart = dp(4) },
|
|
278
|
+
)
|
|
279
|
+
}
|
|
259
280
|
primaryLine.addView(
|
|
260
281
|
badges,
|
|
261
282
|
LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT).apply {
|
|
@@ -270,6 +291,15 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
270
291
|
}
|
|
271
292
|
|
|
272
293
|
fun reset() {
|
|
294
|
+
primaryLine.gravity = Gravity.CENTER_VERTICAL
|
|
295
|
+
secondaryLine.gravity = Gravity.CENTER_VERTICAL
|
|
296
|
+
for (icon in listOf(titleIcon, secondaryTitleIcon)) {
|
|
297
|
+
icon.visibility = GONE
|
|
298
|
+
icon.iconName = ""
|
|
299
|
+
icon.contentDescription = null
|
|
300
|
+
icon.setOnClickListener(null)
|
|
301
|
+
}
|
|
302
|
+
(primaryLine.layoutParams as LayoutParams).gravity = -1
|
|
273
303
|
primaryLine.layoutParams.width = LayoutParams.WRAP_CONTENT
|
|
274
304
|
primaryLine.layoutParams.height = LayoutParams.WRAP_CONTENT
|
|
275
305
|
secondaryLine.layoutParams.height = LayoutParams.WRAP_CONTENT
|
|
@@ -292,6 +322,26 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
292
322
|
badges.visibility = GONE
|
|
293
323
|
}
|
|
294
324
|
|
|
325
|
+
fun bindTitleIcons(column: JSONObject, theme: JSONObject?, sourceScale: Boolean) {
|
|
326
|
+
for ((field, icon) in listOf(
|
|
327
|
+
"titleIcon" to titleIcon,
|
|
328
|
+
"secondaryTitleIcon" to secondaryTitleIcon,
|
|
329
|
+
)) {
|
|
330
|
+
val descriptor = column.optJSONObject(field) ?: continue
|
|
331
|
+
icon.iconName = descriptor.optString("name")
|
|
332
|
+
icon.glyphSizeDp = 20
|
|
333
|
+
icon.useSourceScale = sourceScale
|
|
334
|
+
icon.tintColor = parseNativeListColor(
|
|
335
|
+
descriptor.optString("tintColor").takeIf(String::isNotEmpty)
|
|
336
|
+
?: theme?.optString("iconSubdued", "#00000072") ?: "#00000072"
|
|
337
|
+
)
|
|
338
|
+
icon.contentDescription = descriptor.optString("accessibilityLabel").takeIf(String::isNotEmpty)
|
|
339
|
+
icon.visibility = VISIBLE
|
|
340
|
+
}
|
|
341
|
+
if (primary.maxLines > 1 && (titleIcon.visibility == VISIBLE || secondaryTitleIcon.visibility == VISIBLE))
|
|
342
|
+
primaryLine.gravity = Gravity.TOP
|
|
343
|
+
}
|
|
344
|
+
|
|
295
345
|
fun bind(
|
|
296
346
|
column: JSONObject,
|
|
297
347
|
rowBadges: JSONArray?,
|
|
@@ -309,6 +359,17 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
309
359
|
"end" -> Gravity.END
|
|
310
360
|
else -> Gravity.START
|
|
311
361
|
}
|
|
362
|
+
fun horizontalGravity(alignment: String) = when (alignment) {
|
|
363
|
+
"center" -> Gravity.CENTER_HORIZONTAL
|
|
364
|
+
"end" -> Gravity.END
|
|
365
|
+
else -> Gravity.START
|
|
366
|
+
}
|
|
367
|
+
val primaryAlignment = style.optJSONObject("columns")?.optString("alignment")
|
|
368
|
+
?.takeIf(String::isNotEmpty) ?: column.optString("alignment", "start")
|
|
369
|
+
(primaryLine.layoutParams as LayoutParams).gravity = horizontalGravity(primaryAlignment)
|
|
370
|
+
val secondaryAlignment = style.optJSONObject("columnSecondary")?.optString("alignment")
|
|
371
|
+
?.takeIf(String::isNotEmpty) ?: column.optString("alignment", "start")
|
|
372
|
+
secondaryLine.gravity = Gravity.CENTER_VERTICAL or horizontalGravity(secondaryAlignment)
|
|
312
373
|
fun bindText(
|
|
313
374
|
view: NativeListTextView,
|
|
314
375
|
value: String,
|
|
@@ -326,7 +387,7 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
326
387
|
.bind(view)
|
|
327
388
|
if (resolved.optString("truncate") != "clip") view.ellipsize = TextUtils.TruncateAt.END
|
|
328
389
|
}
|
|
329
|
-
bindText(primary, column
|
|
390
|
+
bindText(primary, nativeListDataColumnText(column, "text"), "columns", primarySize, "medium", primaryColor, 20)
|
|
330
391
|
bindText(
|
|
331
392
|
secondaryLeading,
|
|
332
393
|
column.optString("secondaryLeadingText"),
|
|
@@ -338,13 +399,15 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
338
399
|
)
|
|
339
400
|
bindText(
|
|
340
401
|
secondary,
|
|
341
|
-
column
|
|
402
|
+
nativeListDataColumnText(column, "secondaryText"),
|
|
342
403
|
"columnSecondary",
|
|
343
404
|
12f,
|
|
344
405
|
"regular",
|
|
345
406
|
secondaryColor,
|
|
346
407
|
16,
|
|
347
408
|
)
|
|
409
|
+
primary.text = dataSegments(primary.text, column.optJSONArray("textSegments"), primary.textSize)
|
|
410
|
+
secondary.text = dataSegments(secondary.text, column.optJSONArray("secondaryTextSegments"), secondary.textSize)
|
|
348
411
|
if (rowBadges != null && rowBadges.length() > 0) {
|
|
349
412
|
badges.visibility = VISIBLE
|
|
350
413
|
for (index in 0 until minOf(2, rowBadges.length())) {
|
|
@@ -377,12 +440,14 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
377
440
|
secondaryLeading.visibility = VISIBLE
|
|
378
441
|
secondaryLine.visibility = VISIBLE
|
|
379
442
|
}
|
|
380
|
-
val secondaryText = column
|
|
443
|
+
val secondaryText = nativeListDataColumnText(column, "secondaryText")
|
|
381
444
|
if (secondaryText.isNotEmpty()) {
|
|
382
445
|
secondary.visibility = VISIBLE
|
|
383
446
|
secondaryLine.visibility = VISIBLE
|
|
384
447
|
}
|
|
385
448
|
if (!fixedTableGeometry) applyStyle(style)
|
|
449
|
+
(secondary.layoutParams as LayoutParams).marginStart =
|
|
450
|
+
if (secondaryLeading.visibility == VISIBLE) dp(4) else 0
|
|
386
451
|
if (fixedTableGeometry) {
|
|
387
452
|
// Legacy table lines: fixed 20dp primary and 16dp secondary/badge boxes.
|
|
388
453
|
primaryLine.layoutParams.height = dp(20)
|
|
@@ -404,7 +469,9 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
404
469
|
) {
|
|
405
470
|
reset()
|
|
406
471
|
gravity = Gravity.START
|
|
407
|
-
val value = android.text.SpannableStringBuilder(
|
|
472
|
+
val value = android.text.SpannableStringBuilder(dataSegments(
|
|
473
|
+
nativeListDataColumnText(column, "text"), column.optJSONArray("textSegments"),
|
|
474
|
+
sp(16f) * resources.displayMetrics.scaledDensity))
|
|
408
475
|
value.setSpan(
|
|
409
476
|
android.text.style.ForegroundColorSpan(primaryColor),
|
|
410
477
|
0,
|
|
@@ -428,10 +495,12 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
428
495
|
android.text.Spannable.SPAN_EXCLUSIVE_EXCLUSIVE,
|
|
429
496
|
)
|
|
430
497
|
}
|
|
431
|
-
val secondaryText = column
|
|
498
|
+
val secondaryText = nativeListDataColumnText(column, "secondaryText")
|
|
432
499
|
if (secondaryText.isNotEmpty()) {
|
|
433
500
|
val start = value.length
|
|
434
|
-
value.append("\n
|
|
501
|
+
value.append("\n")
|
|
502
|
+
value.append(dataSegments(secondaryText, column.optJSONArray("secondaryTextSegments"),
|
|
503
|
+
sp(16f) * resources.displayMetrics.scaledDensity))
|
|
435
504
|
value.setSpan(
|
|
436
505
|
android.text.style.ForegroundColorSpan(secondaryColor),
|
|
437
506
|
start,
|
|
@@ -461,6 +530,24 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
461
530
|
primary.visibility = VISIBLE
|
|
462
531
|
}
|
|
463
532
|
|
|
533
|
+
private fun dataSegments(fallback: CharSequence, segments: JSONArray?, fontSizePx: Float): CharSequence {
|
|
534
|
+
if (segments == null || segments.length() == 0) return fallback
|
|
535
|
+
val value = android.text.SpannableStringBuilder(fallback)
|
|
536
|
+
var offset = 0
|
|
537
|
+
for (index in 0 until segments.length()) {
|
|
538
|
+
val segment = segments.getJSONObject(index)
|
|
539
|
+
val end = offset + segment.optString("text").length
|
|
540
|
+
if (segment.optString("style") == "subscript" && end > offset) {
|
|
541
|
+
val density = resources.displayMetrics.density
|
|
542
|
+
val size = (kotlin.math.ceil(fontSizePx / density * 0.6f) * density).roundToInt()
|
|
543
|
+
value.setSpan(android.text.style.AbsoluteSizeSpan(size), offset, end,
|
|
544
|
+
android.text.Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
|
|
545
|
+
}
|
|
546
|
+
offset = end
|
|
547
|
+
}
|
|
548
|
+
return value
|
|
549
|
+
}
|
|
550
|
+
|
|
464
551
|
private fun applyStyle(style: JSONObject) {
|
|
465
552
|
style.optJSONObject("columns")?.let {
|
|
466
553
|
if (it.has("alignment")) {
|
|
@@ -485,3 +572,11 @@ private class NativeListTableColumnView(context: android.content.Context, privat
|
|
|
485
572
|
|
|
486
573
|
private fun sp(value: Float): Float = NativeListScale.font(resources, value)
|
|
487
574
|
}
|
|
575
|
+
|
|
576
|
+
private fun nativeListDataColumnText(column: JSONObject, field: String): String {
|
|
577
|
+
val segments = column.optJSONArray("${field}Segments")
|
|
578
|
+
if (segments == null || segments.length() == 0) return column.optString(field)
|
|
579
|
+
return buildString {
|
|
580
|
+
for (index in 0 until segments.length()) append(segments.getJSONObject(index).optString("text"))
|
|
581
|
+
}
|
|
582
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Generated by scripts/generate-icons.mjs. Coverage and legacy names only; hosts provide SVG resources.
|
|
2
|
+
package com.margelo.nitro.nativelist
|
|
3
|
+
|
|
4
|
+
internal data class NativeListIconMetadata(val name: String, val width: Float, val height: Float)
|
|
5
|
+
internal val nativeListGeneratedIcons: Map<String, NativeListIconMetadata> = mapOf(
|
|
6
|
+
"AccountErrorCustom" to NativeListIconMetadata("AccountErrorCustom", 18f, 18f),
|
|
7
|
+
"AllNetworksSolid" to NativeListIconMetadata("AllNetworksSolid", 24f, 24f),
|
|
8
|
+
"AppleBrand" to NativeListIconMetadata("AppleBrand", 16f, 20f),
|
|
9
|
+
"ArrowBottomOutline" to NativeListIconMetadata("ArrowBottomOutline", 24f, 24f),
|
|
10
|
+
"ArrowTopOutline" to NativeListIconMetadata("ArrowTopOutline", 24f, 24f),
|
|
11
|
+
"BadgeVerifiedSolid" to NativeListIconMetadata("BadgeRecognizedSolid", 24f, 24f),
|
|
12
|
+
"BotIllus" to NativeListIconMetadata("BotIllus", 24f, 24f),
|
|
13
|
+
"ChartTrendingUpOutline" to NativeListIconMetadata("ChartTrendingUpOutline", 24f, 24f),
|
|
14
|
+
"ChevronBottomOutline" to NativeListIconMetadata("ChevronBottomOutline", 24f, 24f),
|
|
15
|
+
"ChevronGrabberVerOutline" to NativeListIconMetadata("ChevronGrabberVerOutline", 24f, 24f),
|
|
16
|
+
"ChevronRightSmallOutline" to NativeListIconMetadata("ChevronRightSmallOutline", 24f, 24f),
|
|
17
|
+
"ChevronTopOutline" to NativeListIconMetadata("ChevronTopOutline", 24f, 24f),
|
|
18
|
+
"Circle" to NativeListIconMetadata("Circle", 24f, 24f),
|
|
19
|
+
"CrossedSmallSolid" to NativeListIconMetadata("CrossedSmallSolid", 24f, 24f),
|
|
20
|
+
"CryptoCoinOutline" to NativeListIconMetadata("CryptoCoinOutline", 24f, 24f),
|
|
21
|
+
"Document2Outline" to NativeListIconMetadata("Document2Outline", 24f, 24f),
|
|
22
|
+
"DotHorOutline" to NativeListIconMetadata("DotHorOutline", 24f, 24f),
|
|
23
|
+
"DotVerSolid" to NativeListIconMetadata("DotVerSolid", 24f, 24f),
|
|
24
|
+
"DragOutline" to NativeListIconMetadata("DragOutline", 24f, 24f),
|
|
25
|
+
"ErrorSolid" to NativeListIconMetadata("ErrorSolid", 24f, 24f),
|
|
26
|
+
"GasSolid" to NativeListIconMetadata("GasSolid", 24f, 24f),
|
|
27
|
+
"GlobusOutline" to NativeListIconMetadata("GlobusOutline", 24f, 24f),
|
|
28
|
+
"GoogleIllus" to NativeListIconMetadata("GoogleIllus", 24f, 24f),
|
|
29
|
+
"ImageSquareWavesOutline" to NativeListIconMetadata("ImageSquareWavesOutline", 24f, 24f),
|
|
30
|
+
"InfoCircleOutline" to NativeListIconMetadata("InfoCircleOutline", 24f, 24f),
|
|
31
|
+
"LockSolid" to NativeListIconMetadata("LockSolid", 24f, 24f),
|
|
32
|
+
"MinusCircleOutline" to NativeListIconMetadata("MinusCircleOutline", 24f, 24f),
|
|
33
|
+
"MinusCircleSolid" to NativeListIconMetadata("MinusCircleSolid", 24f, 24f),
|
|
34
|
+
"PencilOutline" to NativeListIconMetadata("PencilOutline", 24f, 24f),
|
|
35
|
+
"PlusCircleOutline" to NativeListIconMetadata("PlusCircleOutline", 24f, 24f),
|
|
36
|
+
"PlusLargeOutline" to NativeListIconMetadata("PlusLargeOutline", 24f, 24f),
|
|
37
|
+
"PlusSmallOutline" to NativeListIconMetadata("PlusSmallOutline", 24f, 24f),
|
|
38
|
+
"QuestionmarkSolid" to NativeListIconMetadata("QuestionmarkSolid", 24f, 24f),
|
|
39
|
+
"RefreshCcwOutline" to NativeListIconMetadata("RefreshCcwOutline", 24f, 24f),
|
|
40
|
+
"ShieldExclamationOutline" to NativeListIconMetadata("ShieldExclamationOutline", 24f, 24f),
|
|
41
|
+
"SpeakerPromoteOutline" to NativeListIconMetadata("SpeakerPromoteOutline", 24f, 24f),
|
|
42
|
+
"StarOutline" to NativeListIconMetadata("StarOutline", 24f, 24f),
|
|
43
|
+
"StarSolid" to NativeListIconMetadata("StarSolid", 24f, 24f),
|
|
44
|
+
"SwapHorOutline" to NativeListIconMetadata("SwapHorOutline", 24f, 24f),
|
|
45
|
+
"TicketOutline" to NativeListIconMetadata("TicketOutline", 24f, 24f),
|
|
46
|
+
"WalletOutline" to NativeListIconMetadata("WalletOutline", 24f, 24f),
|
|
47
|
+
)
|