Commit a22b00ea by sikang

test

parent 6c5901e9
...@@ -103,7 +103,7 @@ class LayoutGarble: ...@@ -103,7 +103,7 @@ class LayoutGarble:
if "/" in line and view_name in ignores: if "/" in line and view_name in ignores:
ignores.remove(view_name) ignores.remove(view_name)
if len(ignores) == 0: if len(ignores) == 0 and "<!--" not in line:
if "</LinearLayout>" in line or "</RelativeLayout>" in line or "</FrameLayout>" in line or "<TextView" in line \ if "</LinearLayout>" in line or "</RelativeLayout>" in line or "</FrameLayout>" in line or "<TextView" in line \
or "<ImageView" in line or "<EditText" in line or "<Button" in line or "<ImageButton" in line or "<CheckBox" in line: or "<ImageView" in line or "<EditText" in line or "<Button" in line or "<ImageButton" in line or "<CheckBox" in line:
if random.randint(0,10) % random.randint(2,3) == 0: if random.randint(0,10) % random.randint(2,3) == 0:
......
<?xml version="1.0" encoding="utf-8"?><!--<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"--><!--android:id="@+id/layout_title"--><!--android:layout_width="match_parent"--><!--android:layout_height="wrap_content"--><!--android:orientation="vertical">--> <?xml version="1.0" encoding="utf-8"?>
<!--<TextView--><!--android:id="@+id/layout_statusbar"--><!--android:layout_width="match_parent"--><!--android:layout_height="13dp"--><!--android:visibility="gone" />-->
<!--<com.qmuiteam.qmui.widget.QMUITopBar--><!--android:id="@+id/layout_topbar"--><!--android:layout_width="match_parent"--><!--android:layout_height="50dp" />-->
<!----><!--</LinearLayout>-->
<com.common.widget.TopBar xmlns:android="http://schemas.android.com/apk/res/android" <com.common.widget.TopBar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/topbar" android:id="@+id/topbar"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment