diff options
| author | dam <dam@gudinoff> | 2021-11-30 01:06:44 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2021-11-30 01:06:44 +0000 |
| commit | 697e1ba3c4cb0a96c4584f1553de368d46287ab7 (patch) | |
| tree | 75ef68904ee92233f97eb00f1ded734b7c0709a3 /res/layout | |
| parent | da1195d4446963a2a3d95bdced6571bd26b8abfa (diff) | |
| download | surgery-log-697e1ba3c4cb0a96c4584f1553de368d46287ab7.tar.zst surgery-log-697e1ba3c4cb0a96c4584f1553de368d46287ab7.zip | |
Initial commit.
Diffstat (limited to 'res/layout')
| -rwxr-xr-x | res/layout/activity_main.xml | 23 | ||||
| -rwxr-xr-x | res/layout/fragment_file_operations.xml | 31 | ||||
| -rwxr-xr-x | res/layout/fragment_main_dummy.xml | 16 | ||||
| -rwxr-xr-x | res/layout/fragment_new_entry.xml | 216 | ||||
| -rwxr-xr-x | res/layout/fragment_view_data.xml | 24 | ||||
| -rwxr-xr-x | res/layout/multiline_spinner_dropdown_item.xml | 28 | ||||
| -rwxr-xr-x | res/layout/override_new_entry.xml | 95 |
7 files changed, 433 insertions, 0 deletions
diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml new file mode 100755 index 0000000..6cfef6f --- /dev/null +++ b/res/layout/activity_main.xml @@ -0,0 +1,23 @@ +<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/pager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".MainActivity" >
+
+ <!--
+ This title strip will display the currently visible page title, as well as the page + titles for adjacent pages.
+ -->
+
+ <android.support.v4.view.PagerTitleStrip
+ android:id="@+id/pager_title_strip"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="top"
+ android:background="#33b5e5"
+ android:paddingBottom="4dp"
+ android:paddingTop="4dp"
+ android:textColor="#fff" />
+
+</android.support.v4.view.ViewPager>
diff --git a/res/layout/fragment_file_operations.xml b/res/layout/fragment_file_operations.xml new file mode 100755 index 0000000..2703afb --- /dev/null +++ b/res/layout/fragment_file_operations.xml @@ -0,0 +1,31 @@ +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/FileOperationsView"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ tools:context=".MainActivity$FileOperationsContext" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" >
+
+ <Button
+ android:id="@+id/importButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/importConfigs_str" />
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="25dp" />
+
+ <Button
+ android:id="@+id/exportDataBase"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/exportDataBase_str" />
+ </LinearLayout>
+
+</ScrollView>
\ No newline at end of file diff --git a/res/layout/fragment_main_dummy.xml b/res/layout/fragment_main_dummy.xml new file mode 100755 index 0000000..57dc8ce --- /dev/null +++ b/res/layout/fragment_main_dummy.xml @@ -0,0 +1,16 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingBottom="@dimen/activity_vertical_margin"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ tools:context=".MainActivity$DummySectionFragment" >
+
+ <TextView
+ android:id="@+id/section_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+</RelativeLayout>
diff --git a/res/layout/fragment_new_entry.xml b/res/layout/fragment_new_entry.xml new file mode 100755 index 0000000..350fd2a --- /dev/null +++ b/res/layout/fragment_new_entry.xml @@ -0,0 +1,216 @@ +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/NewEntryView"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ tools:context=".MainActivity$NewEntryContext" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" >
+
+ <EditText
+ android:id="@+id/nProcess"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/nProcess_str"
+ android:inputType="number" >
+
+ <requestFocus />
+ </EditText>
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="5dp" />
+
+ <DatePicker
+ android:id="@+id/datePicker"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:calendarViewShown="false" />
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="5dp" />
+
+ <EditText
+ android:id="@+id/nSurgery"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/nSurgery_str"
+ android:inputType="number" />
+
+ <Spinner
+ android:id="@+id/placeSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/place_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/placeOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/place_str"
+ android:inputType="textMultiLine" />
+
+ <Spinner
+ android:id="@+id/anesthesiaSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/anesthesia_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/anesthesiaOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/anesthesia_str"
+ android:inputType="textMultiLine" />
+
+ <Spinner
+ android:id="@+id/firstAiderSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/firstaider_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/firstAiderOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/firstaider_str"
+ android:inputType="textMultiLine" />
+
+ <Spinner
+ android:id="@+id/medTypeSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/type_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/medTypeOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/type_str"
+ android:inputType="textMultiLine" />
+
+ <Spinner
+ android:id="@+id/medSubTypeSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/subtype_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/medSubTypeOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/subtype_str"
+ android:inputType="textMultiLine" />
+
+ <Spinner
+ android:id="@+id/medSubSubTypeSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/subsubtype_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/medSubSubTypeOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/subsubtype_str"
+ android:inputType="textMultiLine" />
+
+ <Spinner
+ android:id="@+id/pathologySpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/pathology_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/pathologyOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/pathology_str"
+ android:inputType="textMultiLine" />
+
+ <Spinner
+ android:id="@+id/interventionSpinner"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:prompt="@string/intervention_str"
+ android:spinnerMode="dialog" />
+
+ <EditText
+ android:id="@+id/interventionOverride"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/intervention_str"
+ android:inputType="textMultiLine" />
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="5dp" />
+
+ <CheckBox
+ android:id="@+id/urgencyCheckBox"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/urgency_str" />
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="5dp" />
+
+ <EditText
+ android:id="@+id/notesText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/notes_str"
+ android:inputType="textMultiLine" />
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="25dp" />
+
+ <CheckBox
+ android:id="@+id/overrideCheckBox"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/override_str" />
+
+ <Button
+ android:id="@+id/fillOverrideButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/filloverride_str" />
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="25dp" />
+
+ <Button
+ android:id="@+id/saveButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/save_str" />
+ </LinearLayout>
+
+</ScrollView>
\ No newline at end of file diff --git a/res/layout/fragment_view_data.xml b/res/layout/fragment_view_data.xml new file mode 100755 index 0000000..db246f1 --- /dev/null +++ b/res/layout/fragment_view_data.xml @@ -0,0 +1,24 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/RelativeLayout1"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:gravity="bottom"
+ android:orientation="vertical">
+
+ <Button
+ android:id="@+id/refreshBtn"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:text="@string/refresh_str" />
+
+ <ListView
+ android:id="@+id/dataBaseListView"
+ android:layout_width="match_parent"
+ android:layout_height="fill_parent"
+ android:layout_above="@+id/refreshBtn" >
+
+ </ListView>
+
+</RelativeLayout>
\ No newline at end of file diff --git a/res/layout/multiline_spinner_dropdown_item.xml b/res/layout/multiline_spinner_dropdown_item.xml new file mode 100755 index 0000000..ff05fc2 --- /dev/null +++ b/res/layout/multiline_spinner_dropdown_item.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/apps/common/assets/res/any/layout/simple_spinner_item.xml +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> +<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/text1" + style="?android:attr/spinnerDropDownItemStyle" + android:singleLine="false" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="45dp" + android:ellipsize="marquee" + android:textAlignment="inherit"/> diff --git a/res/layout/override_new_entry.xml b/res/layout/override_new_entry.xml new file mode 100755 index 0000000..320feb6 --- /dev/null +++ b/res/layout/override_new_entry.xml @@ -0,0 +1,95 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/OverrideNewEntry"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <EditText
+ android:id="@+id/overrideType"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/type_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+ <EditText
+ android:id="@+id/overrideSubType"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/subtype_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+ <EditText
+ android:id="@+id/overrideSubSubType"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/subsubtype_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+ <EditText
+ android:id="@+id/overridePatholoty"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/pathology_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+ <EditText
+ android:id="@+id/overrideIntervention"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/intervention_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+ <EditText
+ android:id="@+id/overrideFirstAider"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/firstaider_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+ <EditText
+ android:id="@+id/overridePlace"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/place_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+ <EditText
+ android:id="@+id/overrideAnesthesia"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/anesthesia_str"
+ android:inputType="text" >
+
+ <requestFocus />
+ </EditText>
+
+</LinearLayout>
\ No newline at end of file |
