Skip to content

Commit

Permalink
small layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
marcnause committed Dec 23, 2024
1 parent bd66db6 commit 786e6f5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 49 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/sensor_ads1115.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
android:background="@drawable/tv_border"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:gravity="center"
android:textStyle="bold" />

<ImageView
Expand Down
70 changes: 28 additions & 42 deletions app/src/main/res/layout/sensor_mpu925x.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,39 +74,35 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:gravity="center_vertical"
android:text="@string/ax"
android:textAlignment="textStart"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:gravity="center_vertical"
android:text="@string/ay"
android:textAlignment="textStart"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:gravity="center_vertical"
android:text="@string/az"
android:textAlignment="textStart"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:gravity="center_vertical"
android:text="@string/temp"
android:textAlignment="textStart"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />
Expand All @@ -121,44 +117,40 @@

<TextView
android:id="@+id/tv_sensor_mpu925x_ax"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:textAlignment="textStart"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:id="@+id/tv_sensor_mpu925x_ay"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:textAlignment="textStart"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:id="@+id/tv_sensor_mpu925x_az"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:textAlignment="textStart"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:id="@+id/tv_sensor_mpu925x_temp"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:textAlignment="textStart"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />
Expand All @@ -174,29 +166,26 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:gravity="center_vertical"
android:text="@string/gx"
android:textAlignment="textStart"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:gravity="center_vertical"
android:text="@string/gy"
android:textAlignment="textStart"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:gravity="center_vertical"
android:text="@string/gz"
android:textAlignment="textStart"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />
Expand All @@ -211,33 +200,30 @@

<TextView
android:id="@+id/tv_sensor_mpu925x_gx"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:textAlignment="textStart"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:id="@+id/tv_sensor_mpu925x_gy"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:textAlignment="textStart"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />

<TextView
android:id="@+id/tv_sensor_mpu925x_gz"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_gravity="start"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:textAlignment="textStart"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/layout/sensor_tsl2561.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@

<TextView
android:id="@+id/tv_sensor_tsl2561_full"
android:layout_width="80dp"
android:layout_height="30dp"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:gravity="center"
android:textColor="@color/black"
Expand All @@ -116,8 +116,8 @@

<TextView
android:id="@+id/tv_sensor_tsl2561_infrared"
android:layout_width="80dp"
android:layout_height="30dp"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:gravity="center"
android:textColor="@color/black"
Expand All @@ -126,8 +126,8 @@

<TextView
android:id="@+id/tv_sensor_tsl2561_visible"
android:layout_width="80dp"
android:layout_height="30dp"
android:layout_width="@dimen/tv_sensor_width"
android:layout_height="@dimen/tv_sensor_height"
android:background="@drawable/tv_border"
android:gravity="center"
android:textColor="@color/black"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/sensor_vl53l0x.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
android:layout_height="@dimen/tv_sensor_height"
android:layout_gravity="center|center_vertical"
android:background="@drawable/tv_border"
android:padding="@dimen/card_margin"
android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font"
android:textStyle="bold" />
Expand Down

0 comments on commit 786e6f5

Please sign in to comment.