mirror of
https://github.com/woheller69/solxpect.git
synced 2025-09-22 00:40:46 +02:00
Open instructions at first start #8
Disable scrolling in Viewpager2 Layout improvements
This commit is contained in:
parent
7db77d345f
commit
5b8461c8a3
5 changed files with 23 additions and 12 deletions
|
@ -139,7 +139,8 @@ public class ForecastCityActivity extends NavigationActivity implements IUpdatea
|
|||
private void initResources() {
|
||||
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
viewPager2 = findViewById(R.id.viewPager2);
|
||||
reduceViewpager2DragSensitivity(viewPager2,2);
|
||||
viewPager2.setUserInputEnabled(false);
|
||||
//reduceViewpager2DragSensitivity(viewPager2,2);
|
||||
tabLayout = findViewById(R.id.tab_layout);
|
||||
if (sharedPreferences.getBoolean("pref_summarize",false)){
|
||||
pagerAdapter = new WeatherPagerAdapter(this, getSupportFragmentManager(),getLifecycle(),true);
|
||||
|
|
|
@ -22,7 +22,7 @@ import android.widget.TextView;
|
|||
|
||||
import org.woheller69.weather.R;
|
||||
import org.woheller69.weather.activities.ForecastCityActivity;
|
||||
import org.woheller69.weather.activities.SettingsActivity;
|
||||
import org.woheller69.weather.activities.HelpActivity;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -118,7 +118,7 @@ public class TutorialActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
private void launchSettings() {
|
||||
startActivity(new Intent(TutorialActivity.this, SettingsActivity.class));
|
||||
startActivity(new Intent(TutorialActivity.this, HelpActivity.class));
|
||||
finish();
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:layout_marginTop="53dp"
|
||||
android:weightSum="1">
|
||||
|
||||
<TextView
|
||||
|
|
|
@ -13,10 +13,15 @@
|
|||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
tools:context=".activities.AboutActivity">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/toolbar" />
|
||||
|
||||
<include layout="@layout/about" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
|
|
@ -14,14 +14,20 @@
|
|||
android:fitsSystemWindows="true"
|
||||
tools:context=".activities.HelpActivity">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/toolbar" />
|
||||
|
||||
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<WebView
|
||||
android:id="@+id/help"
|
||||
android:layout_marginTop="53dp"
|
||||
android:padding="10dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="fill_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
<com.google.android.material.navigation.NavigationView
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue