diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/weather.xml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/app/src/main/res/layout/weather.xml b/app/src/main/res/layout/weather.xml index 99d36df..9f6d589 100644 --- a/app/src/main/res/layout/weather.xml +++ b/app/src/main/res/layout/weather.xml @@ -46,18 +46,33 @@ android:id="@+id/button" android:layout_width="0dp" android:layout_height="wrap_content" + android:onClick="fetch_weather_data" android:text="pak dat zonnetje" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> + <ProgressBar + android:id="@+id/loader" + style="?android:attr/progressBarStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="32dp" + android:visibility="invisible" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/button" /> + <ListView + android:id="@+id/forecast_list" android:layout_width="0dp" android:layout_height="0dp" android:layout_marginTop="32dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/button" /> + app:layout_constraintTop_toBottomOf="@+id/button" > + + </ListView> </androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |