Skip to content

Commit

Permalink
Make climate fragment scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Dec 10, 2022
1 parent 6d69ea5 commit a635ae7
Showing 1 changed file with 41 additions and 31 deletions.
72 changes: 41 additions & 31 deletions app/src/main/res/layout/fragment_climate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,50 @@
android:layout_height="wrap_content"
app:subtitle="@string/temperature_high_low" />

<com.kylecorry.trail_sense.shared.views.DatePickerView
android:id="@+id/display_date"
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" />
android:layout_height="0dp"
android:layout_weight="1">

<com.kylecorry.ceres.chart.Chart
android:id="@+id/temperature_chart"
android:layout_width="match_parent"
android:layout_height="@dimen/chart_height"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<com.kylecorry.trail_sense.shared.views.DatePickerView
android:id="@+id/display_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" />

<com.kylecorry.trail_sense.shared.views.CoordinateInputView
android:id="@+id/location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" />
<com.kylecorry.ceres.chart.Chart
android:id="@+id/temperature_chart"
android:layout_width="match_parent"
android:layout_height="@dimen/chart_height"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp" />

<com.kylecorry.trail_sense.shared.views.DistanceInputView
android:id="@+id/elevation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="@dimen/default_bottom_margin"
app:hint="@string/elevation" />
<com.kylecorry.trail_sense.shared.views.CoordinateInputView
android:id="@+id/location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" />

<com.kylecorry.trail_sense.shared.views.DistanceInputView
android:id="@+id/elevation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="@dimen/default_bottom_margin"
app:hint="@string/elevation" />

</LinearLayout>

</ScrollView>

</LinearLayout>
</LinearLayout>

0 comments on commit a635ae7

Please sign in to comment.