Skip to content

Commit

Permalink
Merge pull request #4 from caarmen/fix-scroll-wheel-about-screen
Browse files Browse the repository at this point in the history
Support scrolling in the about screen with the wheel
  • Loading branch information
caarmen authored Apr 4, 2024
2 parents cf1d887 + d35db4d commit e787d3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "ca.rmen.android.frc.complications"
minSdkVersion 26
targetSdkVersion 33
versionCode 112
versionName "1.1.2"
versionCode 113
versionName "1.1.3"
resValue "string", "versionName", versionName
}
buildFeatures {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@
import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.FragmentActivity;

import ca.rmen.android.frc.complications.databinding.ActivityAboutBinding;

public class AboutActivity extends FragmentActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
DataBindingUtil.setContentView(this, R.layout.activity_about);
ActivityAboutBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_about);
binding.scrollview.requestFocus();
}

}
3 changes: 3 additions & 0 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
tools:context="ca.rmen.android.frc.complications.AboutActivity">

<ScrollView
android:id="@+id/scrollview"
android:paddingHorizontal="@dimen/about_horizontal_padding"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"
android:focusable="true"
android:focusableInTouchMode="true"
>

<LinearLayout
Expand Down

0 comments on commit e787d3d

Please # to comment.