From d1bd29a4ad3dd5554f136168acf00308efe1c280 Mon Sep 17 00:00:00 2001 From: almedina-ms <35784165+almedina-ms@users.noreply.github.com> Date: Wed, 23 May 2018 11:57:14 -0700 Subject: [PATCH] Remove untrustable fix for fact set wrapping issue (#1505) (#1506) --- .../renderer/readonly/FactSetRenderer.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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);