diff --git a/source/android/adaptivecards/src/main/java/io/adaptivecards/renderer/readonly/FactSetRenderer.java b/source/android/adaptivecards/src/main/java/io/adaptivecards/renderer/readonly/FactSetRenderer.java index 67baedd4dd..f5972db6af 100644 --- a/source/android/adaptivecards/src/main/java/io/adaptivecards/renderer/readonly/FactSetRenderer.java +++ b/source/android/adaptivecards/src/main/java/io/adaptivecards/renderer/readonly/FactSetRenderer.java @@ -41,7 +41,7 @@ public static FactSetRenderer getInstance() return s_instance; } - static TextView createTextView(Context context, String text, TextConfig textConfig, HostConfig hostConfig, long spacing, ContainerStyle containerStyle, boolean isValue) + static TextView createTextView(Context context, String text, TextConfig textConfig, HostConfig hostConfig, long spacing, ContainerStyle containerStyle) { TextView textView = new TextView(context); textView.setText(text); @@ -58,11 +58,6 @@ static TextView createTextView(Context context, String text, TextConfig textConf GridLayout.spec(GridLayout.UNDEFINED)); parem.rightMargin = (int) spacing; - if (isValue) - { - parem.width = 0; - parem.setGravity(Gravity.FILL_HORIZONTAL); - } textView.setLayoutParams(parem); return textView; @@ -102,8 +97,8 @@ else if ((factSet = FactSet.dynamic_cast(baseCardElement)) == null) for (int i = 0; i < factVectorSize; i++) { Fact fact = factVector.get(i); - gridLayout.addView(createTextView(context, fact.GetTitle(), hostConfig.getFactSet().getTitle(), hostConfig, spacing, containerStyle, false)); - gridLayout.addView(createTextView(context, fact.GetValue(), hostConfig.getFactSet().getValue(), hostConfig, 0, containerStyle, true)); + gridLayout.addView(createTextView(context, fact.GetTitle(), hostConfig.getFactSet().getTitle(), hostConfig, spacing, containerStyle)); + gridLayout.addView(createTextView(context, fact.GetValue(), hostConfig.getFactSet().getValue(), hostConfig, 0, containerStyle)); } viewGroup.addView(gridLayout);