summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/fragment_dashboard.xml
diff options
context:
space:
mode:
authorAayush Gupta <theimpulson@e.email>2022-05-12 06:42:20 +0000
committerAayush Gupta <theimpulson@e.email>2022-05-12 06:42:20 +0000
commit8eb4fa48c78267284c766dbb5022873c96561dc4 (patch)
tree09d6e99cb509d196cbb8777133cb24079d6ed023 /app/src/main/res/layout/fragment_dashboard.xml
parentbf286ad539612cb0fbaad84919bc1a68ed6712c6 (diff)
parentcc17a774a78fede4e1d1a7fac9a020c11457c94d (diff)
Merge branch '5399-master-ui_improvements' into 'main'
privacycentralapp: fix ui in different languages See merge request e/privacy-central/privacycentralapp!57
Diffstat (limited to 'app/src/main/res/layout/fragment_dashboard.xml')
-rw-r--r--app/src/main/res/layout/fragment_dashboard.xml15
1 files changed, 12 insertions, 3 deletions
diff --git a/app/src/main/res/layout/fragment_dashboard.xml b/app/src/main/res/layout/fragment_dashboard.xml
index f6beca6..8b8792b 100644
--- a/app/src/main/res/layout/fragment_dashboard.xml
+++ b/app/src/main/res/layout/fragment_dashboard.xml
@@ -212,13 +212,16 @@ android:text="@string/dashboard_state_ipaddress_off"
/>
<TextView
android:id="@+id/graph_legend_blocked"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
tools:text="0 Trackers"
+ android:ellipsize="end"
+ android:maxLines="1"
android:layout_marginStart="8dp"
android:textSize="12sp"
app:layout_constraintLeft_toRightOf="@+id/graph_legend_blocked_icon"
app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
+ app:layout_constraintRight_toLeftOf="@id/graph_legend_allowed_icon"
android:layout_marginTop="8dp"
android:text="@string/graph_legend_blocked"
/>
@@ -230,17 +233,21 @@ android:text="@string/dashboard_state_ipaddress_off"
android:padding="1dp"
app:layout_constraintLeft_toRightOf="@+id/graph_legend_blocked"
app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
+ app:layout_constraintRight_toLeftOf="@id/graph_legend_allowed"
android:layout_marginTop="8dp"
- android:layout_marginStart="32dp"
+ android:layout_marginStart="16dp"
android:background="@drawable/ic_legend_leaked"
/>
<TextView
android:id="@+id/graph_legend_allowed"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
+ android:ellipsize="end"
+ android:maxLines="1"
android:layout_height="wrap_content"
tools:text="0 Trackers"
android:layout_marginStart="8dp"
android:textSize="12sp"
+ app:layout_constraintRight_toLeftOf="@id/leaking_app_button"
app:layout_constraintLeft_toRightOf="@+id/graph_legend_allowed_icon"
app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
android:layout_marginTop="8dp"
@@ -258,7 +265,9 @@ android:text="@string/dashboard_state_ipaddress_off"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
app:layout_constraintTop_toTopOf="@+id/graph_legend_blocked_icon"
+ app:layout_constraintLeft_toRightOf="@id/graph_legend_allowed"
android:gravity="center_vertical|end"
+ android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
/>