Skip to content

Commit

Permalink
Fix list width in layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolasan committed Aug 22, 2024
1 parent 76a0721 commit 97c9861
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 13 deletions.
252 changes: 252 additions & 0 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,22 @@
android:authorities="xyz.neupokoev.forgottenstandards.ImperialContentProvider"
android:name=".ImperialContentProvider"
android:exported="false">


</provider>

<activity android:name=".MainActivity"

android:configChanges="layoutDirection|locale"
android:exported="true">


<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable"/>

</activity>
Expand Down
13 changes: 8 additions & 5 deletions app/src/main/res/layout-land/fragment_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
app:layout_constraintEnd_toStartOf="@id/units_list"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_default="percent"
app:layout_constraintWidth_percent="0.5"
tools:layout="@layout/big_unit_space" />

<xyz.neupokoev.forgottenstandards.ImperialUnitPanel
Expand All @@ -33,23 +35,24 @@
app:layout_constraintEnd_toStartOf="@id/units_list"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/convert_to"
app:layout_constraintWidth_default="percent"
app:layout_constraintWidth_percent="0.5"
tools:layout="@layout/big_unit_space" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/units_list"
android:layout_width="400dp"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="6dp"
android:layout_marginTop="6dp"
android:layout_marginEnd="6dp"
android:divider="@android:color/transparent"
android:dividerHeight="@dimen/unit_list_divider"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
app:layout_constraintWidth_default="percent"
app:layout_constraintWidth_percent="0.45"
tools:listitem="@layout/unit_space" />


Expand Down
6 changes: 2 additions & 4 deletions app/src/main/res/layout/fragment_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,17 @@

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/units_list"
android:layout_width="400dp"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="6dp"
android:layout_marginTop="6dp"
android:layout_marginEnd="6dp"
android:divider="@android:color/transparent"
android:dividerHeight="@dimen/unit_list_divider"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/convert_from"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/convert_from"
app:layout_constraintVertical_bias="1.0"
tools:listitem="@layout/unit_space" />


Expand Down

0 comments on commit 97c9861

Please sign in to comment.