diff options
Diffstat (limited to 'res')
| -rwxr-xr-x | res/drawable-hdpi/ic_launcher.png | bin | 0 -> 6369 bytes | |||
| -rwxr-xr-x | res/drawable-mdpi/ic_launcher.png | bin | 0 -> 3108 bytes | |||
| -rwxr-xr-x | res/drawable-xhdpi/ic_launcher.png | bin | 0 -> 9945 bytes | |||
| -rwxr-xr-x | res/drawable-xxhdpi/ic_launcher.png | bin | 0 -> 18410 bytes | |||
| -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 | ||||
| -rwxr-xr-x | res/menu/main.xml | 9 | ||||
| -rwxr-xr-x | res/values-sw600dp/dimens.xml | 8 | ||||
| -rwxr-xr-x | res/values-sw720dp-land/dimens.xml | 9 | ||||
| -rwxr-xr-x | res/values-v11/styles.xml | 11 | ||||
| -rwxr-xr-x | res/values-v14/styles.xml | 12 | ||||
| -rwxr-xr-x | res/values/dimens.xml | 7 | ||||
| -rwxr-xr-x | res/values/strings.xml | 38 | ||||
| -rwxr-xr-x | res/values/styles.xml | 20 |
19 files changed, 547 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png Binary files differnew file mode 100755 index 0000000..9ef6cfb --- /dev/null +++ b/res/drawable-hdpi/ic_launcher.png diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png Binary files differnew file mode 100755 index 0000000..330d0a4 --- /dev/null +++ b/res/drawable-mdpi/ic_launcher.png diff --git a/res/drawable-xhdpi/ic_launcher.png b/res/drawable-xhdpi/ic_launcher.png Binary files differnew file mode 100755 index 0000000..e6341a6 --- /dev/null +++ b/res/drawable-xhdpi/ic_launcher.png diff --git a/res/drawable-xxhdpi/ic_launcher.png b/res/drawable-xxhdpi/ic_launcher.png Binary files differnew file mode 100755 index 0000000..590a40f --- /dev/null +++ b/res/drawable-xxhdpi/ic_launcher.png 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 diff --git a/res/menu/main.xml b/res/menu/main.xml new file mode 100755 index 0000000..d122a4b --- /dev/null +++ b/res/menu/main.xml @@ -0,0 +1,9 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item
+ android:id="@+id/action_settings"
+ android:orderInCategory="100"
+ android:showAsAction="never"
+ android:title="@string/action_settings"/>
+
+</menu>
diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml new file mode 100755 index 0000000..c876987 --- /dev/null +++ b/res/values-sw600dp/dimens.xml @@ -0,0 +1,8 @@ +<resources>
+
+ <!--
+ Customize dimensions originally defined in res/values/dimens.xml (such as + screen margins) for sw600dp devices (e.g. 7" tablets) here.
+ -->
+
+</resources>
diff --git a/res/values-sw720dp-land/dimens.xml b/res/values-sw720dp-land/dimens.xml new file mode 100755 index 0000000..0df3067 --- /dev/null +++ b/res/values-sw720dp-land/dimens.xml @@ -0,0 +1,9 @@ +<resources>
+
+ <!--
+ Customize dimensions originally defined in res/values/dimens.xml (such as + screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
+ -->
+ <dimen name="activity_horizontal_margin">128dp</dimen>
+
+</resources>
diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml new file mode 100755 index 0000000..e3ef53d --- /dev/null +++ b/res/values-v11/styles.xml @@ -0,0 +1,11 @@ +<resources>
+
+ <!--
+ Base application theme for API 11+. This theme completely replaces + AppBaseTheme from res/values/styles.xml on API 11+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
+ <!-- API 11 theme customizations can go here. -->
+ </style>
+
+</resources>
diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml new file mode 100755 index 0000000..94dd245 --- /dev/null +++ b/res/values-v14/styles.xml @@ -0,0 +1,12 @@ +<resources>
+
+ <!--
+ Base application theme for API 14+. This theme completely replaces + AppBaseTheme from BOTH res/values/styles.xml and + res/values-v11/styles.xml on API 14+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
+ <!-- API 14 theme customizations can go here. -->
+ </style>
+
+</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100755 index 0000000..2e0e2ae --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,7 @@ +<resources>
+
+ <!-- Default screen margins, per the Android Design guidelines. -->
+ <dimen name="activity_horizontal_margin">16dp</dimen>
+ <dimen name="activity_vertical_margin">16dp</dimen>
+
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100755 index 0000000..f17b4ad --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="app_name">MedLog</string> + <string name="action_settings">Settings</string> + <string name="title_section1">Nova Entrada</string> + <string name="title_section2">Histórico</string> + <string name="title_section3">Configurações</string> + <string name="nProcess_str">Nº Processo</string> + <string name="nSurgery_str">Nº Cirurgia</string> + <string name="urgency_str">Urgência</string> + <string name="importConfigs_str">Importar Configurações</string> + <string name="exportDataBase_str">Exportar Dados</string> + <string name="save_str">Guardar</string> + <string name="ok_str">Ok</string> + <string name="delete_str">APAGAR</string> + <string name="refresh_str">Actualizar</string> + <string name="exportMessage_str">Dados exportados para: </string> + <string name="exportMessageError_str">Falha ao exportar dados!</string> + <string name="errorMissingProcessNumber_str">Falta inserir o número do processo!</string> + <string name="successSavingEntry_str">Nova entrada guardada com sucesso!</string> + + <string name="yes_str">sim</string> + <string name="no_str">não</string> + <string name="override_str">Costumizar</string> + <string name="filloverride_str">Usar valores anteriores</string> + + <string name="type_str">Tipo</string> + <string name="subtype_str">Subtipo</string> + <string name="subsubtype_str">Sub-Subtipo</string> + <string name="pathology_str">Patologia</string> + <string name="intervention_str">Intervenção</string> + <string name="firstaider_str">1º Ajudante</string> + <string name="anesthesia_str">Anestesia</string> + <string name="place_str">Local</string> + <string name="notes_str">Notas</string> + +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100755 index 0000000..4ea9326 --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,20 @@ +<resources>
+
+ <!--
+ Base application theme, dependent on API level. This theme is replaced + by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Light">
+ <!--
+ Theme customizations available in newer API levels can go in + res/values-vXX/styles.xml, while customizations related to + backward-compatibility can go here.
+ -->
+ </style>
+
+ <!-- Application theme. -->
+ <style name="AppTheme" parent="AppBaseTheme">
+ <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+ </style>
+
+</resources>
|
