1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01:00

Tweak margins and paddings

This commit is contained in:
José Rebelo 2024-09-23 22:36:40 +01:00
parent 9f3ab8c810
commit f612f685bf
5 changed files with 9 additions and 16 deletions

View File

@ -579,7 +579,7 @@ public class ActivitySummaryDetail extends AbstractGBActivity {
linearLayout.setLayoutParams(layoutParams);
linearLayout.setOrientation(LinearLayout.VERTICAL);
linearLayout.setGravity(Gravity.CENTER);
linearLayout.setPadding(dpToPx(20), dpToPx(20),dpToPx(20), dpToPx(20));
linearLayout.setPadding(dpToPx(15), dpToPx(15),dpToPx(15), dpToPx(15));
linearLayout.setBackgroundColor(GBApplication.getWindowBackgroundColor(ActivitySummaryDetail.this));
int marginLeft = 0;
int marginTop = 0;

View File

@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="-"
android:text="@string/stats_empty_value"
android:textSize="12sp" />
<com.github.mikephil.charting.charts.PieChart
@ -28,7 +28,9 @@
android:layout_width="fill_parent"
android:layout_height="200dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="10dp"
android:layout_weight="2" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
@ -53,7 +55,6 @@
android:id="@+id/sleep_chart_legend_deep_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/stats_empty_value"
android:textSize="20sp" />
@ -79,7 +80,6 @@
android:id="@+id/sleep_chart_legend_light_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/stats_empty_value"
android:textSize="20sp" />
@ -98,7 +98,6 @@
android:id="@+id/sleep_chart_legend_rem_time_wrapper"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="center"
android:orientation="vertical"
>
@ -148,7 +147,6 @@
android:id="@+id/sleep_chart_legend_awake_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/stats_empty_value"
android:textSize="20sp" />
@ -167,6 +165,7 @@
android:id="@+id/sleepchart"
android:layout_width="fill_parent"
android:layout_height="300dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="25dp"
android:layout_weight="4" />

View File

@ -41,7 +41,6 @@
/>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/stress_chart_relaxed_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -69,7 +68,6 @@
/>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/stress_chart_mild_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -95,7 +93,6 @@
/>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/stress_chart_moderate_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -124,7 +121,6 @@
/>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/stress_chart_high_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -145,6 +141,7 @@
android:id="@+id/stress_line_chart"
android:layout_width="fill_parent"
android:layout_height="300dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="25dp"
android:layout_weight="2" />
</LinearLayout>

View File

@ -16,6 +16,7 @@
android:gravity="center"
android:textSize="20sp"
android:layout_marginTop="15dp"
android:layout_marginBottom="10dp"
/>
<GridLayout
@ -35,10 +36,9 @@
android:layout_marginBottom="10dp"
/>
<TextView
android:layout_marginTop="20dip"
android:id="@+id/sleep_chart_legend_deep_time"
android:text="@string/stats_empty_value"
android:textSize="10dp"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
@ -61,7 +61,6 @@
android:layout_marginBottom="10dp"
/>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/sleep_chart_legend_light_time"
android:text="@string/stats_empty_value"
android:textSize="20sp"
@ -88,7 +87,6 @@
android:layout_marginBottom="10dp"
/>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/sleep_chart_legend_rem_time"
android:text="@string/stats_empty_value"
android:textSize="20sp"
@ -121,7 +119,6 @@
android:layout_marginBottom="10dp"
/>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/sleep_chart_legend_awake_time"
android:text="@string/stats_empty_value"
android:textSize="20sp"

View File

@ -201,7 +201,7 @@
</style>
<style name="GridTile">
<item name="android:background">?android:attr/windowBackground</item>
<item name="android:padding">20dp</item>
<item name="android:padding">15dp</item>
<item name="android:gravity">center</item>
<item name="android:orientation">vertical</item>
<item name="android:layout_columnWeight">1</item>