diff --git a/app/build.gradle b/app/build.gradle
index 68d22f95..cd4ef25a 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -8,8 +8,8 @@ android {
applicationId "cz.martykan.forecastie"
minSdkVersion 15
targetSdkVersion 29
- versionCode 68
- versionName "1.18.2"
+ versionCode 70
+ versionName "1.19.1"
}
lintOptions {
@@ -35,8 +35,6 @@ dependencies {
implementation "androidx.recyclerview:recyclerview:1.1.0"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation "com.google.android.material:material:1.2.1"
- implementation "com.google.android.flexbox:flexbox:3.0.0"
- implementation "androidx.core:core:1.5.0"
/** Lifecycle */
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion"
diff --git a/app/src/main/java/cz/martykan/forecastie/activities/MainActivity.java b/app/src/main/java/cz/martykan/forecastie/activities/MainActivity.java
index e5048a31..d01b7333 100644
--- a/app/src/main/java/cz/martykan/forecastie/activities/MainActivity.java
+++ b/app/src/main/java/cz/martykan/forecastie/activities/MainActivity.java
@@ -100,7 +100,6 @@ public class MainActivity extends BaseActivity implements LocationListener {
private ViewPager viewPager;
private TabLayout tabLayout;
private SwipeRefreshLayout swipeRefreshLayout;
- private ViewPagerAdapter pagerAdapter;
private View appView;
@@ -666,15 +665,12 @@ private void updateLongTermWeatherUI() {
recyclerViewFragment.setArguments(bundle);
viewPagerAdapter.addFragment(recyclerViewFragment, getString(R.string.later));
- if(this.pagerAdapter == null) {
- pagerAdapter = viewPagerAdapter;
- viewPager.setAdapter(pagerAdapter);
- tabLayout.setupWithViewPager(viewPager);
- }
- pagerAdapter.notifyDataSetChanged();
-
int currentPage = viewPager.getCurrentItem();
+ viewPagerAdapter.notifyDataSetChanged();
+ viewPager.setAdapter(viewPagerAdapter);
+ tabLayout.setupWithViewPager(viewPager);
+
if (currentPage == 0 && longTermTodayWeather.isEmpty()) {
currentPage = 1;
}
diff --git a/app/src/main/res/layout/activity_scrolling.xml b/app/src/main/res/layout/activity_scrolling.xml
index 0fc5a2e0..f6cb0987 100644
--- a/app/src/main/res/layout/activity_scrolling.xml
+++ b/app/src/main/res/layout/activity_scrolling.xml
@@ -32,16 +32,12 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
-
@@ -56,7 +52,7 @@
android:layout_height="wrap_content"
tools:text="0 °C"
android:textColor="@color/text_light"
- android:textSize="36sp"/>
+ android:textSize="36dp"/>
+ android:textSize="16dp"/>
+ android:textSize="16dp"/>
+ android:textSize="16dp"/>
+ android:textSize="16dp"/>
+ android:textSize="16dp"/>
+ android:textSize="16dp"/>
+ android:textSize="16dp"/>
+ android:textSize="72dp"
+ android:paddingEnd="16dp" />
+ android:textSize="14dp" />
@@ -168,12 +165,11 @@
android:gravity="bottom|end"
android:paddingRight="16dp"
android:textAlignment="viewEnd"
- android:textSize="14sp"/>
+ android:textSize="14dp"/>
-
-
+
diff --git a/app/src/main/res/layout/list_row.xml b/app/src/main/res/layout/list_row.xml
index 109533fa..6839bdbe 100644
--- a/app/src/main/res/layout/list_row.xml
+++ b/app/src/main/res/layout/list_row.xml
@@ -13,13 +13,9 @@
android:layout_height="1dp"
android:background="?android:attr/listDivider" />
-
+ android:layout_height="wrap_content">
+ android:textSize="16dp" />
+ android:textSize="16dp" />
+ android:textSize="16dp" />
+ android:textSize="16dp" />
-
-
-
-
-
+ android:layout_marginTop="16dp"
+ android:layout_weight="1"
+ tools:text="o"
+ android:textSize="48sp" />
-
-
-
\ No newline at end of file
+
+
+