feat/search-view-in-all-stations-activity
Mateusz Lubecki 2022-05-08 17:02:48 +02:00
rodzic 34d43825f9
commit 5a211da64e
3 zmienionych plików z 22 dodań i 2 usunięć

Wyświetl plik

@ -258,6 +258,7 @@ public class Main extends Application {
@Subscribe(threadMode = ThreadMode.BACKGROUND)
public void allStationsEventHandler(@NonNull AllStationsReceivedEvent event) {
Logger.info("[allStationsEventHandler][event = " + event.toString() +"]");
this.listOfAllStations = event.getStations();
recreateListOfFavs();
}

Wyświetl plik

@ -15,4 +15,10 @@ public class AllStationsReceivedEvent {
public List<WeatherStation> getStations(){
return this.stations;
}
@NonNull
@Override
public String toString() {
return "[AllStationsReceivedEvent][stations.size() = " + stations.size() +"]";
}
}

Wyświetl plik

@ -248,12 +248,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="2dp"
android:fontFamily="@font/alegreya_sans_sc_medium"
android:text="@string/credits_2"
android:textSize="28sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/textViewCredits3"
app:layout_constraintBottom_toTopOf="@+id/textViewCreditsRafal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textViewCredits1" />
@ -262,6 +261,7 @@
android:id="@+id/textViewCredits3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:fontFamily="@font/alegreya_sans_sc_medium"
android:text="@string/credits_3"
android:textSize="24sp"
@ -294,6 +294,19 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textViewCredits4" />
<TextView
android:id="@+id/textViewCreditsRafal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:fontFamily="@font/alegreya_sans_sc_medium"
android:text="Rafał Woloszyn"
android:textSize="28sp"
app:layout_constraintBottom_toTopOf="@+id/textViewCredits3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textViewCredits2" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>