163 lines
5.2 KiB
XML
163 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/connect"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Connect"
|
|
android:textAllCaps="false" />
|
|
|
|
<Button
|
|
android:id="@+id/disconnect"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Disconnect"
|
|
android:textAllCaps="false" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/mainlay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="Align: " />
|
|
|
|
<android.support.v7.widget.AppCompatSpinner
|
|
android:id="@+id/align"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_align"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:text="Write"
|
|
android:textAllCaps="false" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="Size: " />
|
|
|
|
<android.support.v7.widget.AppCompatSpinner
|
|
android:id="@+id/size"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_size"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:text="Write"
|
|
android:textAllCaps="false" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/addHR"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="分隔線" />
|
|
|
|
<Button
|
|
android:id="@+id/addNL"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="換行" />
|
|
|
|
<Button
|
|
android:id="@+id/addTAB"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="TAB" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<EditText
|
|
android:id="@+id/intxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:hint="輸入傳送字串" />
|
|
|
|
<Button
|
|
android:id="@+id/addTXT"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="addTXT"
|
|
android:textAllCaps="false" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<Button
|
|
android:id="@+id/bt"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Send"
|
|
android:textAllCaps="false" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<TextView
|
|
android:id="@+id/preview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</ScrollView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|