mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-29 19:20:36 +02:00
Make all table entries at least two lines high
This commit is contained in:
@@ -512,10 +512,14 @@ public class TableFragment extends Fragment implements FragmentUpdateListener {
|
|||||||
|
|
||||||
for (int i = 0; i < visibleMeasurements.size(); ++i) {
|
for (int i = 0; i < visibleMeasurements.size(); ++i) {
|
||||||
TextView column = new TextView(getContext());
|
TextView column = new TextView(getContext());
|
||||||
column.setLayoutParams(new LinearLayout.LayoutParams(
|
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
|
||||||
LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, 1));
|
LinearLayout.LayoutParams.WRAP_CONTENT,
|
||||||
column.getLayoutParams().width = 0;
|
LinearLayout.LayoutParams.WRAP_CONTENT,
|
||||||
column.setGravity(Gravity.CENTER);
|
1);
|
||||||
|
layoutParams.width = 0;
|
||||||
|
column.setLayoutParams(layoutParams);
|
||||||
|
column.setMinLines(2);
|
||||||
|
column.setGravity(Gravity.CENTER_HORIZONTAL);
|
||||||
|
|
||||||
if (isSmallScreen) {
|
if (isSmallScreen) {
|
||||||
column.setTextSize(COMPLEX_UNIT_DIP, 9);
|
column.setTextSize(COMPLEX_UNIT_DIP, 9);
|
||||||
|
Reference in New Issue
Block a user