Update layout
This commit is contained in:
parent
beb1dd4838
commit
56670e9015
3 changed files with 89 additions and 35 deletions
|
@ -1,35 +1,83 @@
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
|
<RelativeLayout
|
||||||
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:paddingTop="@dimen/activity_vertical_margin"
|
android:layout_width="match_parent"
|
||||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
android:layout_height="match_parent"
|
||||||
tools:context="in.celest.xash3d.LauncherActivity"
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||||
android:id="@+id/layout">
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||||
|
android:paddingTop="@dimen/activity_vertical_margin"
|
||||||
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||||
|
tools:context="in.celest.xash3d.LauncherActivity"
|
||||||
|
android:id="@+id/layout">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/launch_button"
|
android:text="@string/launch_button"
|
||||||
android:id="@+id/button"
|
android:id="@+id/button_launch"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:onClick="startXash"/>
|
android:onClick="startXash"/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/touch_set"
|
||||||
|
android:id="@+id/touch_set"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:onClick="controlsSettings"/>
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/cmdArgs"
|
android:id="@+id/cmdArgs"
|
||||||
android:layout_below="@+id/textView"
|
android:layout_below="@+id/textView_args"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignRight="@+id/textView" />
|
android:layout_alignRight="@+id/textView_args"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
android:text="@string/cmd_args_text"
|
android:text="@string/cmd_args_text"
|
||||||
android:id="@+id/textView"
|
android:id="@+id/textView_args"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_alignParentRight="true" />
|
android:layout_alignParentRight="true"/>
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_below="@+id/cmdArgs"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:text="@string/use_controls"
|
||||||
|
android:id="@+id/useControls"/>
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/cmdPath"
|
||||||
|
android:layout_below="@+id/textView_path"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignRight="@+id/textView_path"/>
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:text="@string/text_res_path"
|
||||||
|
android:id="@+id/textView_path"
|
||||||
|
android:layout_below="@+id/useControls"/>
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_below="@+id/cmdPath"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:text="@string/text_show_icon"
|
||||||
|
android:id="@+id/showIcon"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,8 @@
|
||||||
<string name="cmd_args_text">Аргументы командной строки(только для экспертов)</string>
|
<string name="cmd_args_text">Аргументы командной строки(только для экспертов)</string>
|
||||||
<string name="launch_button">Запустить Xash3D</string>
|
<string name="launch_button">Запустить Xash3D</string>
|
||||||
<string name="title_section1">Команды</string>
|
<string name="title_section1">Команды</string>
|
||||||
|
<string name="use_controls">Включить экранное управление</string>
|
||||||
</resources>
|
<string name="text_res_path">Путь к ресурсам игры</string>
|
||||||
|
<string name="touch_set">Настройки управления</string>
|
||||||
|
<string name="text_show_icon">Отображать значёк Half-Life</string>
|
||||||
|
</resources>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<string name="app_name">Half-life</string>
|
<string name="app_name">Half-life</string>
|
||||||
|
<string name="launcher_name">Xash3D</string>
|
||||||
<string-array name="double_tap_actions">
|
<string-array name="double_tap_actions">
|
||||||
<item>None</item>
|
<item>None</item>
|
||||||
<item>Shoot</item>
|
<item>Shoot</item>
|
||||||
|
@ -17,6 +17,9 @@
|
||||||
<string name="launch_button">Launch Xash3D!</string>
|
<string name="launch_button">Launch Xash3D!</string>
|
||||||
<string name="action_settings">Settings</string>
|
<string name="action_settings">Settings</string>
|
||||||
<string name="cmd_args_text">Command line arguments(experts only)</string>
|
<string name="cmd_args_text">Command line arguments(experts only)</string>
|
||||||
|
<string name="use_controls">Enable touch controls</string>
|
||||||
|
<string name="text_res_path">Path to game resources</string>
|
||||||
<string name="hello_world">Hello world!</string>
|
<string name="hello_world">Hello world!</string>
|
||||||
|
<string name="touch_set">Controls settings</string>
|
||||||
|
<string name="text_show_icon">Show Half-Life icon</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Add table
Reference in a new issue