Skip to content

Commit

Permalink
feat: Update the install screen so layout matches revised test overvi…
Browse files Browse the repository at this point in the history
…ew layout (#749)

Fixes  ooni/run#175

## Proposed Changes

  - Update layout

|.|.|
|-|-|
|
![Screenshot_20240531_115726](https://github.com/ooni/probe-android/assets/17911892/503c1c07-8977-4cf5-ac9d-87ced1d3dd5e)
|
![Screenshot_20240531_115752](https://github.com/ooni/probe-android/assets/17911892/efbe8d92-4cff-4aac-93d3-1feb35541cfc)
|
  • Loading branch information
aanorbel authored Jun 5, 2024
1 parent 8cd95a8 commit ea4e68b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions app/src/main/res/layout/activity_add_descriptor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,18 @@
tools:text="lore ipsum" />

<TextView
android:id="@+id/settings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Install updates automatically"
android:text="Test Settings"
style="?attr/textAppearanceHeadline6"
app:layout_constraintTop_toBottomOf="@id/description"
app:layout_constraintStart_toStartOf="parent"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Install test updates automatically"
app:layout_constraintBottom_toBottomOf="@id/automatic_updates_switch"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/automatic_updates_switch" />
Expand All @@ -119,20 +128,12 @@
android:layout_height="wrap_content"
android:checked="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/description" />
app:layout_constraintTop_toBottomOf="@id/settings" />

<TextView
android:id="@+id/run_automatically_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Run automatically"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/automatic_updates_switch" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tests"
android:text="Run Tests automatically"
app:layout_constraintBottom_toBottomOf="@id/tests_checkbox"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/tests_checkbox" />
Expand All @@ -142,7 +143,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/run_automatically_label" />
app:layout_constraintTop_toBottomOf="@id/automatic_updates_switch" />

<org.openobservatory.ooniprobe.common.views.CustomExpandableListView
android:id="@+id/expandable_list_view"
Expand Down

0 comments on commit ea4e68b

Please sign in to comment.