mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-09 10:16:44 +02:00
fix measurment indicator layout
This commit is contained in:
@@ -25,6 +25,7 @@ import android.support.v4.content.ContextCompat;
|
|||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.text.InputType;
|
import android.text.InputType;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
@@ -106,11 +107,13 @@ public abstract class MeasurementView extends TableLayout {
|
|||||||
nameView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
|
nameView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
|
||||||
nameView.setTextColor(Color.BLACK);
|
nameView.setTextColor(Color.BLACK);
|
||||||
nameView.setLines(2);
|
nameView.setLines(2);
|
||||||
nameView.setLayoutParams(new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0.90f));
|
nameView.setLayoutParams(new TableRow.LayoutParams(0, LayoutParams.WRAP_CONTENT, 0.60f));
|
||||||
|
|
||||||
valueView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
|
valueView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
|
||||||
valueView.setTextColor(Color.BLACK);
|
valueView.setTextColor(Color.BLACK);
|
||||||
valueView.setLayoutParams(new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT, 0.01f));
|
valueView.setGravity(Gravity.RIGHT | Gravity.CENTER);
|
||||||
|
valueView.setPadding(0,0,20,0);
|
||||||
|
valueView.setLayoutParams(new TableRow.LayoutParams(0, LayoutParams.MATCH_PARENT, 0.29f));
|
||||||
|
|
||||||
editModeView.getLayoutParams().height = pxImageDp(20);
|
editModeView.getLayoutParams().height = pxImageDp(20);
|
||||||
editModeView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
editModeView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
|
||||||
|
@@ -73,8 +73,7 @@
|
|||||||
<TableLayout
|
<TableLayout
|
||||||
android:id="@+id/tableLayoutDataEntry"
|
android:id="@+id/tableLayoutDataEntry"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"/>
|
||||||
android:padding="5dp"/>
|
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user