Add layout file
This commit is contained in:
parent
77254ac5eb
commit
77947d2619
53
SocketFileTransfer/src/main/res/layout/activity_cursor.xml
Normal file
53
SocketFileTransfer/src/main/res/layout/activity_cursor.xml
Normal file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:id="@+id/linearLayout">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/left"
|
||||
android:id="@+id/left_button"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/middle"
|
||||
android:id="@+id/middle_button"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/right"
|
||||
android:id="@+id/right_button"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.annimon.socketfiletransfer.TouchpadView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/touchpad"
|
||||
android:layout_above="@+id/linearLayout"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true" />
|
||||
</RelativeLayout>
|
@ -12,7 +12,7 @@
|
||||
<string name="send">Send</string>
|
||||
<string name="ip_address">IP address</string>
|
||||
<string name="port">Port</string>
|
||||
<string name="transfer_dir">Transfer directory</string>
|
||||
<string name="transfer_dir">Transfer directory</string><string name="left">Left</string><string name="middle">Middle</string><string name="right">Right</string>
|
||||
|
||||
<string-array name="main_menu">
|
||||
<item>Start server</item>
|
||||
|
Loading…
Reference in New Issue
Block a user