Clean up manage_applications_apps.xml

Since LinearLayout have only one view(FrameLayout),
LinearLayout is redundant.

It can improve a bit render time.

Test: Open App info screen
Fixes: 124702325
Change-Id: I368b20c5f9916b876586dab71eac43512664d15b
This commit is contained in:
tmfang
2019-03-21 19:23:41 +08:00
parent f669a3bd70
commit 4b8eccb519

View File

@@ -26,41 +26,34 @@
android:layout_height="match_parent" android:layout_height="match_parent"
settings:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior"> settings:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior">
<LinearLayout <FrameLayout
android:id="@+id/list_container" android:id="@+id/list_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="gone"> android:visibility="gone">
<FrameLayout <androidx.recyclerview.widget.RecyclerView
android:id="@+id/apps_list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:clipToPadding="false"
settings:fastScrollEnabled="true"
settings:fastScrollHorizontalThumbDrawable="@drawable/thumb_drawable"
settings:fastScrollHorizontalTrackDrawable="@drawable/line_drawable"
settings:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable"
settings:fastScrollVerticalTrackDrawable="@drawable/line_drawable"/>
<androidx.recyclerview.widget.RecyclerView <TextView
android:id="@+id/apps_list" android:id="@android:id/empty"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:clipToPadding="false" android:gravity="center"
settings:fastScrollEnabled="true" android:layout_gravity="center"
settings:fastScrollHorizontalThumbDrawable="@drawable/thumb_drawable" android:text="@string/no_applications"
settings:fastScrollHorizontalTrackDrawable="@drawable/line_drawable" android:textAppearance="?android:attr/textAppearanceLarge"
settings:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable" android:visibility="invisible"/>
settings:fastScrollVerticalTrackDrawable="@drawable/line_drawable"/>
<TextView </FrameLayout>
android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:layout_gravity="center"
android:text="@string/no_applications"
android:textAppearance="?android:attr/textAppearanceLarge"
android:visibility="invisible"/>
</FrameLayout>
</LinearLayout>
<include layout="@layout/loading_container"/> <include layout="@layout/loading_container"/>