增加天气每小时显示,去掉autosize,增加svg显示

This commit is contained in:
2026-03-19 00:48:51 +08:00
parent 0f2adad060
commit 1977fd1cb2
575 changed files with 23756 additions and 347 deletions

View File

@@ -24,7 +24,7 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/coordinatorLayout"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_height="@dimen/dp_180"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
@@ -50,7 +50,7 @@
android:maxLines="1"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="30sp"
android:textSize="@dimen/sp_30"
tools:text="北京" />
<TextView
@@ -58,12 +58,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="4dp"
android:layout_marginTop="@dimen/dp_4"
android:maxLines="1"
android:singleLine="true"
android:text="@{weatherNow.temp+`°`}"
android:textColor="@color/white"
android:textSize="40sp"
android:textSize="@dimen/sp_40"
tools:text="N/A°" />
<TextView
@@ -75,7 +75,7 @@
android:singleLine="true"
android:text="@{weatherNow.text}"
android:textColor="@color/white"
android:textSize="20sp"
android:textSize="@dimen/sp_20"
tools:text="晴" />
<TextView
@@ -86,7 +86,7 @@
android:maxLines="1"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="20sp"
android:textSize="@dimen/sp_20"
tools:text="最高10° 最低0°" />
</LinearLayout>
@@ -101,10 +101,22 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/coordinatorLayout">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:orientation="vertical"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_hourly"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>