Skip to content

Commit

Permalink
0dp instead of wrap content where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
kidinov committed Jan 30, 2025
1 parent 45a0683 commit a3da20c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions WooCommerce/src/main/res/layout/fragment_order_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
android:layout_height="match_parent">

<com.woocommerce.android.widgets.ScrollChildSwipeRefreshLayout
android:id="@+id/listPaneContainer"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/two_pane_layout_guideline"
app:layout_constraintTop_toTopOf="parent"
Expand Down Expand Up @@ -71,7 +70,7 @@
<androidx.constraintlayout.widget.Barrier
android:id="@+id/orders_list_top_barrier"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="0dp"
app:barrierDirection="bottom"
app:constraint_referenced_ids="order_filters_card, jitmOrdersFragment" />

Expand Down Expand Up @@ -101,15 +100,15 @@
<androidx.constraintlayout.widget.Guideline
android:id="@+id/two_pane_layout_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="0dp"
app:layout_constraintGuide_percent="0.0"
android:orientation="vertical" />

<androidx.fragment.app.FragmentContainerView
android:id="@+id/detailPaneContainer"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toEndOf="@id/two_pane_layout_guideline"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
Expand Down

0 comments on commit a3da20c

Please sign in to comment.