From: Reimar Döffinger Date: Sun, 5 Apr 2020 17:36:31 +0000 (+0200) Subject: Fix wrong layout. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=8af7e5f3022d277005c7cc430995005d690db7e7 Fix wrong layout. Bullet point items must be WRAP_CONTENT in vertical direction still, otherwise the text gets cut off. --- diff --git a/src/com/hughes/android/dictionary/DictionaryActivity.java b/src/com/hughes/android/dictionary/DictionaryActivity.java index a55bc99..837097a 100644 --- a/src/com/hughes/android/dictionary/DictionaryActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryActivity.java @@ -1633,7 +1633,7 @@ public class DictionaryActivity extends AppCompatActivity { wrapped.setOrientation(LinearLayout.HORIZONTAL); LinearLayout.LayoutParams p1 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, 0); wrapped.addView(bullet, p1); - LinearLayout.LayoutParams p2 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT, 1); + LinearLayout.LayoutParams p2 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, 1); wrapped.addView(i == 0 ? col1 : col2, p2); tableRow.addView(wrapped, layoutParams); }