Skip to content

Commit

Permalink
Fix scroll layout
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Nov 4, 2024
1 parent 2fae0dd commit 415664c
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions app/src/main/res/layout/fragment_relays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
android:layout_height="wrap_content">

<Button
android:id="@+id/reload_private_relay"
android:id="@+id/reload_public_relays"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="10dp"
Expand All @@ -63,7 +63,7 @@
app:layout_constraintTop_toTopOf="parent" />

<Button
android:id="@+id/publish_private_relay"
android:id="@+id/publish_public_relay"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="10dp"
Expand All @@ -76,32 +76,32 @@
app:layout_constraintTop_toTopOf="parent" />

<ProgressBar
android:id="@+id/private_relays_loading"
android:id="@+id/public_relays_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/reload_private_relay"
app:layout_constraintEnd_toStartOf="@+id/reload_public_relays"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/publish_private_relay"
app:layout_constraintStart_toEndOf="@+id/publish_public_relay"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.5" />
</androidx.constraintlayout.widget.ConstraintLayout>

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/private_relays"
android:id="@+id/public_relays"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title_private_inbox" />
app:layout_constraintTop_toBottomOf="@+id/title_public_inbox" />

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<Button
android:id="@+id/add_private_relay"
android:id="@+id/add_public_relay"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="10dp"
Expand All @@ -113,14 +113,14 @@
app:layout_constraintTop_toTopOf="parent" />

<EditText
android:id="@+id/add_private_relay_url"
android:id="@+id/add_public_relay_url"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/add_relay"
android:inputType="textUri"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/add_private_relay"
app:layout_constraintEnd_toStartOf="@+id/add_public_relay"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
Expand All @@ -143,7 +143,7 @@
android:layout_height="wrap_content">

<Button
android:id="@+id/reload_public_relays"
android:id="@+id/reload_private_relay"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="10dp"
Expand All @@ -155,7 +155,7 @@
app:layout_constraintTop_toTopOf="parent" />

<Button
android:id="@+id/publish_public_relay"
android:id="@+id/publish_private_relay"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="10dp"
Expand All @@ -168,32 +168,32 @@
app:layout_constraintTop_toTopOf="parent" />

<ProgressBar
android:id="@+id/public_relays_loading"
android:id="@+id/private_relays_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/reload_public_relays"
app:layout_constraintEnd_toStartOf="@+id/reload_private_relay"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/publish_public_relay"
app:layout_constraintStart_toEndOf="@+id/publish_private_relay"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.5" />
</androidx.constraintlayout.widget.ConstraintLayout>

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/public_relays"
android:id="@+id/private_relays"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title_public_inbox" />
app:layout_constraintTop_toBottomOf="@+id/title_private_inbox" />

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<Button
android:id="@+id/add_public_relay"
android:id="@+id/add_private_relay"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="10dp"
Expand All @@ -205,20 +205,21 @@
app:layout_constraintTop_toTopOf="parent" />

<EditText
android:id="@+id/add_public_relay_url"
android:id="@+id/add_private_relay_url"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/add_relay"
android:inputType="textUri"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/add_public_relay"
app:layout_constraintEnd_toStartOf="@+id/add_private_relay"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.5" />

</androidx.constraintlayout.widget.ConstraintLayout>

</LinearLayout>
</ScrollView>

Expand Down

0 comments on commit 415664c

Please sign in to comment.