布局文件 dlp_main.xml源码如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_marginLeft="10dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tv_msg"
android:text="Waiting for Message from subThread ... "
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/btn_interactive"
android:text="Interactive"
android:textAllCaps="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content"