新增自定义布局支持,可参考app\src\main\res\layout\demo.xml
修改布局id命名,防止与宿主id冲突
This commit is contained in:
21
app/src/main/res/layout/demo.xml
Normal file
21
app/src/main/res/layout/demo.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/pop_dialog_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/purple_200" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/pop_dialog_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/teal_200"
|
||||
android:orientation="vertical" />
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user