2015-07-25 21:30:00 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2015-09-04 15:55:37 +02:00
|
|
|
android:layout_height="match_parent"
|
2015-07-25 21:30:00 +02:00
|
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
|
|
tools:context="in.celest.xash3d.ShortcutActivity"
|
|
|
|
android:id="@+id/layout_shortcut">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/shortcut_button_save"
|
|
|
|
android:id="@+id/shortcut_buttonOk"
|
|
|
|
android:layout_alignParentRight="true"
|
2015-09-04 15:55:37 +02:00
|
|
|
android:onClick="saveShortcut"
|
2015-11-07 20:09:57 +01:00
|
|
|
android:layout_below="@+id/shortcut_pkgname"/>
|
2015-07-25 21:30:00 +02:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:id="@+id/shortcut_name"
|
|
|
|
android:layout_below="@+id/shortcut_name_text"
|
|
|
|
android:layout_alignParentRight="true"/>
|
|
|
|
<TextView
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:id="@+id/shortcut_name_text"
|
|
|
|
android:layout_alignParentTop="true"
|
2015-07-25 21:58:21 +02:00
|
|
|
android:layout_alignParentRight="true"
|
2015-09-04 15:55:37 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2015-07-25 21:58:21 +02:00
|
|
|
android:text="@string/shortcut_name"
|
2015-07-25 21:30:00 +02:00
|
|
|
/>
|
|
|
|
|
|
|
|
<EditText
|
2015-07-25 21:58:21 +02:00
|
|
|
android:layout_width="fill_parent"
|
2015-07-25 21:30:00 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/shortcut_cmdArgs"
|
|
|
|
android:layout_below="@+id/shortcut_textView_args"
|
2015-07-25 21:58:21 +02:00
|
|
|
android:layout_alignParentRight="true"/>
|
2015-07-25 21:30:00 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-09-04 15:55:37 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2015-07-25 21:30:00 +02:00
|
|
|
android:text="@string/cmd_args_text"
|
|
|
|
android:id="@+id/shortcut_textView_args"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_below="@+id/shortcut_name"/>
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/shortcut_gamedir"
|
|
|
|
android:layout_below="@+id/shortcut_gamedir_text"
|
2015-07-25 21:58:21 +02:00
|
|
|
android:layout_alignParentRight="true"/>
|
2015-07-25 21:30:00 +02:00
|
|
|
|
|
|
|
<TextView
|
2015-07-25 21:58:21 +02:00
|
|
|
android:layout_width="wrap_content"
|
2015-07-25 21:30:00 +02:00
|
|
|
android:layout_height="wrap_content"
|
2015-09-04 15:55:37 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2015-07-25 21:30:00 +02:00
|
|
|
android:text="@string/gamedir"
|
|
|
|
android:id="@+id/shortcut_gamedir_text"
|
|
|
|
android:layout_below="@+id/shortcut_cmdArgs"
|
|
|
|
android:layout_alignParentRight="true"/>
|
|
|
|
|
2015-11-07 20:09:57 +01:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/shortcut_pkgname"
|
|
|
|
android:layout_below="@+id/shortcut_pkgname_text"
|
|
|
|
android:layout_alignParentRight="true"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
android:text="@string/pkgname"
|
|
|
|
android:id="@+id/shortcut_pkgname_text"
|
|
|
|
android:layout_below="@+id/shortcut_gamedir"
|
|
|
|
android:layout_alignParentRight="true"/>
|
|
|
|
|
2015-07-25 21:30:00 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|