Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use view binding instead of findViewById #475

Merged
merged 12 commits into from
Feb 5, 2025
Prev Previous commit
Next Next commit
Fix layout of ascend activity after mirgration to view binding
chrgernoe committed Jan 19, 2025
commit 6b80f7b57b4d227e64cc809f1f311862ecbdeff3
11 changes: 5 additions & 6 deletions app/src/main/res/layout/activity_ascend.xml
Original file line number Diff line number Diff line change
@@ -20,17 +20,16 @@
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_height="match_parent"
android:fillViewport="true">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
@@ -126,4 +125,4 @@

</LinearLayout>

</ScrollView>
</ScrollView>