Added scroll view in MainActivity and remove rotation lock on demo-app

This commit is contained in:
2022-10-01 03:40:12 +08:00
parent ec829a85af
commit a1d2d7ddf0
2 changed files with 99 additions and 86 deletions

View File

@@ -12,8 +12,7 @@
<activity <activity
android:name=".ui.activity.MainActivity" android:name=".ui.activity.MainActivity"
android:exported="true" android:exported="true">
android:screenOrientation="behind">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@@ -25,7 +24,6 @@
<activity <activity
android:name=".ui.activity.MainActivity$MultiProcessActivity" android:name=".ui.activity.MainActivity$MultiProcessActivity"
android:exported="false" android:exported="false"
android:process=":multi_process" android:process=":multi_process" />
android:screenOrientation="behind" />
</application> </application>
</manifest> </manifest>

View File

@@ -55,6 +55,20 @@
android:textColor="@color/colorTextDark" android:textColor="@color/colorTextDark"
android:textSize="13sp" /> android:textSize="13sp" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fadingEdgeLength="10dp"
android:fillViewport="true"
android:paddingBottom="10dp"
android:requiresFadingEdge="vertical"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/throw_runtime_button" android:id="@+id/throw_runtime_button"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -136,7 +150,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/bg_button_round" android:background="@drawable/bg_button_round"
android:gravity="center" android:gravity="center"
android:padding="10dp" android:padding="10dp"
@@ -144,4 +157,6 @@
android:text="@string/throw_multi_process_error" android:text="@string/throw_multi_process_error"
android:textColor="@color/colorTextGray" android:textColor="@color/colorTextGray"
android:textSize="15sp" /> android:textSize="15sp" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout> </LinearLayout>