浏览代码

Use a layout_width of 0dp instead of wrap_content for better performance

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 1 年之前
父节点
当前提交
5b13e649c6
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/src/main/res/layout/item_guest_access_settings.xml

+ 1 - 2
app/src/main/res/layout/item_guest_access_settings.xml

@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
-    xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/guest_access_settings"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
@@ -73,7 +72,7 @@
                     android:background="?android:attr/selectableItemBackground">
 
                     <LinearLayout
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_weight="1"
                         android:orientation="vertical">