| @@ -0,0 +1,61 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
| android:id="@+id/layout_About" | |||
| android:layout_width="fill_parent" | |||
| android:layout_height="fill_parent" | |||
| android:background="@drawable/bg_about" | |||
| android:orientation="vertical" | |||
| android:padding="10dp" > | |||
| <LinearLayout | |||
| android:layout_width="wrap_content" | |||
| android:layout_height="wrap_content" | |||
| android:orientation="horizontal" | |||
| android:id="@+id/layout_aboutVersion"> | |||
| <ImageView | |||
| android:layout_width="wrap_content" | |||
| android:layout_height="wrap_content" | |||
| android:layout_marginRight="20dip" | |||
| android:id="@+id/about_imageAppIcon" /> | |||
| <LinearLayout | |||
| android:layout_width="wrap_content" | |||
| android:layout_height="wrap_content" | |||
| android:id="@+id/layout_aboutVersionText" | |||
| android:orientation="vertical"> | |||
| <TextView | |||
| android:layout_width="wrap_content" | |||
| android:layout_height="wrap_content" | |||
| android:textColor="#FF000000" | |||
| android:text="iii" | |||
| android:id="@+id/about_TextDescription" /> | |||
| <TextView | |||
| android:layout_width="wrap_content" | |||
| android:layout_height="wrap_content" | |||
| android:textColor="#FF000000" | |||
| android:text="iii" | |||
| android:id="@+id/about_TextVersion" | |||
| android:textStyle="bold" /> | |||
| </LinearLayout> | |||
| </LinearLayout> | |||
| <TextView | |||
| android:text="@+id/TextView01" | |||
| android:layout_width="wrap_content" | |||
| android:layout_height="wrap_content" | |||
| android:id="@+id/about_TextAutor" | |||
| android:textColor="@color/black" | |||
| android:paddingBottom="20dip" | |||
| android:paddingTop="20dip"></TextView> | |||
| <Button | |||
| android:id="@+id/btn_AboutClose" | |||
| android:layout_width="wrap_content" | |||
| android:layout_height="wrap_content" | |||
| android:layout_gravity="center_horizontal" | |||
| android:background="@drawable/btn_fs" | |||
| android:text="@string/caption_Close" | |||
| android:textColor="@color/white" > | |||
| </Button> | |||
| </LinearLayout> | |||
| @@ -106,19 +106,20 @@ | |||
| android:layout_gravity="center" | |||
| android:layout_margin="4dp" > | |||
| <ch.spherIC.recurvebowsight.components.FontTextView | |||
| <ch.spherIC.recurvebowsight.components.XTextView | |||
| android:id="@+id/bowAndArrowParams" | |||
| android:layout_width="fill_parent" | |||
| android:layout_height="wrap_content" | |||
| android:layout_weight="1" | |||
| android:background="@color/yellow" | |||
| android:background="@drawable/glassbg_black" | |||
| android:paddingBottom="3dip" | |||
| android:paddingLeft="6dp" | |||
| android:paddingTop="3dip" | |||
| android:text="@string/titleBowAndArrowParams" | |||
| android:textColor="@color/black" | |||
| android:textColor="@color/white" | |||
| android:textStyle="bold" | |||
| app:font="@string/TitilliumWeb_Bold" /> | |||
| </TableRow> | |||
| <TableRow | |||
| @@ -145,7 +146,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -179,7 +180,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -212,7 +213,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -245,7 +246,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -278,7 +279,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -313,7 +314,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -329,7 +330,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -345,7 +346,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -362,17 +363,17 @@ | |||
| android:layout_gravity="center" | |||
| android:layout_margin="4dp" > | |||
| <ch.spherIC.recurvebowsight.components.FontTextView | |||
| <ch.spherIC.recurvebowsight.components.XTextView | |||
| android:id="@+id/atmosphericalParams" | |||
| android:layout_width="fill_parent" | |||
| android:layout_height="wrap_content" | |||
| android:layout_weight="1" | |||
| android:background="@color/yellow" | |||
| android:background="@drawable/glassbg_black" | |||
| android:paddingBottom="3dip" | |||
| android:paddingLeft="6dp" | |||
| android:paddingTop="3dip" | |||
| android:text="@string/titleAtmosphericalParams" | |||
| android:textColor="@color/black" | |||
| android:textColor="@color/white" | |||
| android:textStyle="bold" | |||
| app:font="@string/TitilliumWeb_Bold" /> | |||
| </TableRow> | |||
| @@ -401,7 +402,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -434,7 +435,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -450,17 +451,17 @@ | |||
| android:layout_gravity="center" | |||
| android:layout_margin="4dp" > | |||
| <ch.spherIC.recurvebowsight.components.FontTextView | |||
| <ch.spherIC.recurvebowsight.components.XTextView | |||
| android:id="@+id/shootingParams" | |||
| android:layout_width="fill_parent" | |||
| android:layout_height="wrap_content" | |||
| android:layout_weight="1" | |||
| android:background="@color/yellow" | |||
| android:background="@drawable/glassbg_black" | |||
| android:paddingBottom="3dip" | |||
| android:paddingLeft="6dp" | |||
| android:paddingTop="3dip" | |||
| android:text="@string/titleShootingParams" | |||
| android:textColor="@color/black" | |||
| android:textColor="@color/white" | |||
| android:textStyle="bold" | |||
| app:font="@string/TitilliumWeb_Bold" /> | |||
| </TableRow> | |||
| @@ -489,7 +490,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -522,7 +523,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -555,7 +556,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:nextFocusDown="@+id/arrowDiameterTxtFld" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| @@ -572,17 +573,17 @@ | |||
| android:layout_gravity="center" | |||
| android:layout_margin="4dp" > | |||
| <ch.spherIC.recurvebowsight.components.FontTextView | |||
| <ch.spherIC.recurvebowsight.components.XTextView | |||
| android:id="@+id/calculationParams" | |||
| android:layout_width="fill_parent" | |||
| android:layout_height="wrap_content" | |||
| android:layout_weight="1" | |||
| android:background="@color/yellow" | |||
| android:background="@drawable/glassbg_black" | |||
| android:paddingBottom="3dip" | |||
| android:paddingLeft="6dp" | |||
| android:paddingTop="3dip" | |||
| android:text="@string/titleCalculationParams" | |||
| android:textColor="@color/black" | |||
| android:textColor="@color/white" | |||
| android:textStyle="bold" | |||
| app:font="@string/TitilliumWeb_Bold" /> | |||
| </TableRow> | |||
| @@ -612,7 +613,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:textSize="18sp" /> | |||
| @@ -644,7 +645,7 @@ | |||
| android:ems="10" | |||
| android:entries="@array/CalculationAccuracies" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:textSize="18sp" /> | |||
| @@ -716,18 +717,18 @@ | |||
| android:layout_weight="1" | |||
| android:orientation="horizontal" > | |||
| <ch.spherIC.recurvebowsight.components.FontTextView | |||
| <ch.spherIC.recurvebowsight.components.XTextView | |||
| android:id="@+id/sightConfigTitle" | |||
| android:layout_width="0dp" | |||
| android:layout_height="wrap_content" | |||
| android:layout_marginRight="4dp" | |||
| android:layout_weight="1" | |||
| android:background="@color/yellow" | |||
| android:background="@drawable/glassbg_black" | |||
| android:paddingBottom="3dp" | |||
| android:paddingLeft="6dp" | |||
| android:paddingTop="3dp" | |||
| android:text="@string/titleSightConfig" | |||
| android:textColor="@color/black" | |||
| android:textColor="@color/white" | |||
| android:textStyle="bold" | |||
| app:font="@string/TitilliumWeb_Bold" /> | |||
| @@ -792,7 +793,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -824,7 +825,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -898,7 +899,7 @@ | |||
| android:layout_width="0dp" | |||
| android:layout_height="40dp" | |||
| android:ems="10" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:textSize="18sp" | |||
| @@ -932,7 +933,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:textSize="18sp" | |||
| @@ -948,7 +949,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:textSize="18sp" | |||
| @@ -981,7 +982,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:textSize="18sp" | |||
| @@ -1014,7 +1015,7 @@ | |||
| android:background="@android:drawable/edit_text" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:textSize="18sp" | |||
| @@ -17,17 +17,17 @@ | |||
| android:layout_height="wrap_content" | |||
| android:orientation="vertical" > | |||
| <ch.spherIC.recurvebowsight.components.FontTextView | |||
| <ch.spherIC.recurvebowsight.components.XTextView | |||
| android:id="@+id/riserConfigTitle" | |||
| android:layout_width="match_parent" | |||
| android:layout_height="wrap_content" | |||
| android:layout_margin="4dp" | |||
| android:background="@color/yellow" | |||
| android:background="@drawable/glassbg_black" | |||
| android:paddingBottom="3dp" | |||
| android:paddingLeft="6dp" | |||
| android:paddingTop="3dp" | |||
| android:text="@string/rcTitleRiserConfig" | |||
| android:textColor="@color/black" | |||
| android:textColor="@color/white" | |||
| android:textStyle="bold" | |||
| app:font="@string/TitilliumWeb_Bold" /> | |||
| @@ -164,7 +164,7 @@ | |||
| android:background="@android:drawable/edit_text" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -198,7 +198,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -232,7 +232,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:nextFocusDown="@+id/rcManufacturerTxtFld" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| @@ -17,17 +17,17 @@ | |||
| android:layout_height="wrap_content" | |||
| android:orientation="vertical" > | |||
| <ch.spherIC.recurvebowsight.components.FontTextView | |||
| <ch.spherIC.recurvebowsight.components.XTextView | |||
| android:id="@+id/_sightConfigTitle" | |||
| android:layout_width="match_parent" | |||
| android:layout_height="wrap_content" | |||
| android:layout_margin="4dp" | |||
| android:background="@color/yellow" | |||
| android:background="@drawable/glassbg_black" | |||
| android:paddingBottom="3dp" | |||
| android:paddingLeft="6dp" | |||
| android:paddingTop="3dp" | |||
| android:text="@string/scTitleSightConfig" | |||
| android:textColor="@color/black" | |||
| android:textColor="@color/white" | |||
| android:textStyle="bold" | |||
| app:font="@string/TitilliumWeb_Bold" /> | |||
| @@ -193,7 +193,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:nextFocusDown="@+id/sccaHTxtFld" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| @@ -209,7 +209,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:nextFocusDown="@+id/scVertScaleRngMinTxtFld" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| @@ -243,7 +243,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| android:selectAllOnFocus="true" | |||
| @@ -276,7 +276,7 @@ | |||
| android:layout_weight="1" | |||
| android:ems="10" | |||
| android:gravity="center_vertical" | |||
| android:inputType="numberDecimal" | |||
| android:inputType="numberSigned|numberDecimal" | |||
| android:nextFocusDown="@+id/scManufacturerTxtFld" | |||
| android:paddingBottom="9dp" | |||
| android:paddingTop="9dp" | |||
| @@ -6,7 +6,7 @@ | |||
| <string name="title_activity_main_configuration">RBS Konfiguration Bogen/Visier/Ausrüstung</string> | |||
| <string name="title_activity_riser_configuration">RBS Konfiguration Griffstück</string> | |||
| <string name="title_activity_sight_configuration">RBS Konfiguration Visier</string> | |||
| <string name="title_activity_archery_setup_configuration">RBS Konfiguration Ausrüstung</string> | |||
| <string name="title_activity_archery_setup_configuration">RBS Konfiguration Ausrüstung</string> | |||
| <!-- --> | |||
| <string name="viewParams">Parameter</string> | |||
| <string name="viewResults">Ball. Flugbahn</string> | |||
| @@ -19,6 +19,7 @@ | |||
| <string name="bowPulloutLbl">Auszug Bogen [cm]</string> | |||
| <string name="arrowWeightLbl">Gewicht Pfeil [g]</string> | |||
| <string name="bowParamsLbl">hNA / Überh. Nockpkt. /\nStandhöhe [mm]</string> | |||
| <!-- --> | |||
| <string name="titleAtmosphericalParams">Atmosphärische Parameter</string> | |||
| <string name="airTemperatureLbl">Lufttemperatur [°Celsius]</string> | |||
| @@ -55,7 +56,7 @@ | |||
| <string name="menuMoreItems">Mehr…</string> | |||
| <!-- --> | |||
| <string name="caption_Ok">OK</string> | |||
| <string name="caption_Cancel">Abbrechen</string> | |||
| <string name="caption_Cancel">Abbrechen</string> | |||
| <string name="caption_NoSelection">Keine Auswahl…</string> | |||
| <string name="caption_FillAllMandatoryFields">Um die Berechnung durchzuführen, müssen alle Parameterfelder abgefüllt sein.</string> | |||
| <string name="caption_Cfg_FillAllMandatoryFields">Bitte alle Parameterfelder abfüllen.</string> | |||
| @@ -63,9 +64,10 @@ | |||
| <string name="caption_New">Neu</string> | |||
| <string name="caption_Save">Speichern</string> | |||
| <string name="caption_Delete">Löschen</string> | |||
| <string name="caption_Close">Schliessen</string> | |||
| <string name="caption_Cfg_DeleteNotPossible">Löschen nicht möglich. Die Entität wird vermutlich von einer anderen Entität referenziert.</string> | |||
| <string name="caption_Cfg_ArcherySetup_SaveNotPossible">Speichern nicht möglich. Diese Kombination Griffstück/Visier existiert bereits.</string> | |||
| <string name="caption_MainCfg_Riser_MainText">Griffstück</string> | |||
| <string name="caption_Cfg_ArcherySetup_SaveNotPossible">Speichern nicht möglich. Diese Kombination Griffstück/Visier existiert bereits.</string> | |||
| <string name="caption_MainCfg_Riser_MainText">Griffstück</string> | |||
| <string name="caption_MainCfg_Riser_SubText">Hier klicken um ein Griffstück zu Editiern, zu Löschen oder Einzufügen</string> | |||
| <string name="caption_MainCfg_Sight_MainText">Visier</string> | |||
| <string name="caption_MainCfg_Sight_SubText">Hier klicken um ein Visier zu Editiern, zu Löschen oder Einzufügen</string> | |||
| @@ -82,19 +84,25 @@ | |||
| <string name="fcChart_TitleXAxis">Distanz [m]</string> | |||
| <string name="fcChart_TitleYAxis">Höhe [m]</string> | |||
| <!-- --> | |||
| <!-- --> | |||
| <string name="rcTitleRiserConfig">Konfiguration Griffstück</string> | |||
| <string name="rcRiserLbl">Griffstück</string> | |||
| <string name="rcManufacturerLbl">Hersteller</string> | |||
| <string name="rcModel">Modell</string> | |||
| <string name="rcSizeLbl">Größe</string> | |||
| <string name="rcVvisHLbl">VvisH [mm]</string> | |||
| <string name="rcVvisVLbl">VvisV [mm]</string> | |||
| <string name="rcVvisVLbl">VvisV [mm]</string> | |||
| <string name="scTitleSightConfig">Konfiguration Visier</string> | |||
| <string name="scManufacturerLbl">Hersteller</string> | |||
| <string name="scModel">Modell</string> | |||
| <string name="ashNA">hNA [cm]</string> | |||
| <string name="ashNA">hNA [mm]</string> | |||
| <string name="asNockRaising">Nockpunktüberhöhung [mm]</string> | |||
| <string name="asBraceHeight">Standhöhe [mm]</string> | |||
| <string name="asTitleArcherySetupConfig">Konfiguration Ausrüstung</string> | |||
| <string name="asArcherySetupLbl">Ausrüstung</string> | |||
| <!-- --> | |||
| <string name="about_Description">RBS RecurveBowSight dient der Berechnung der vertikalen Einstellung des Visierpins eines Recurvebogen.</string> | |||
| <string name="AppVersionLabel">Version:</string> | |||
| <string name="about_DevelopedBy">Entwickelt von spherIC (F. Smilari)\nMail an: | |||
| merlin868@hotmail.com\n\nÜbersetzt von spherIC (F. Smilari)</string> | |||
| </resources> | |||
| @@ -63,6 +63,7 @@ | |||
| <string name="caption_New">New</string> | |||
| <string name="caption_Save">Save</string> | |||
| <string name="caption_Delete">Delete</string> | |||
| <string name="caption_Close">Close</string> | |||
| <string name="caption_Cfg_DeleteNotPossible">Unable to delete. Most probably the item is referenced by an other entity.</string> | |||
| <string name="caption_Cfg_ArcherySetup_SaveNotPossible">Unable to save. This combination of sight und riser is already stored.</string> | |||
| <string name="caption_MainCfg_Riser_MainText">Riser</string> | |||
| @@ -93,8 +94,15 @@ | |||
| <string name="scManufacturerLbl">Manufacturer</string> | |||
| <string name="scModel">Model</string> | |||
| <string name="asLabel">Label</string> | |||
| <string name="ashNA">hNA [cm]</string> | |||
| <string name="ashNA">hNA [mm]</string> | |||
| <string name="asNockRaising">Nock Raising [mm]</string> | |||
| <string name="asBraceHeight">Brace Height [mm]</string> | |||
| <string name="asTitleArcherySetupConfig">Archery Setup Configuration</string> | |||
| <string name="asArcherySetupLbl">Archery Setup</string> | |||
| <!-- --> | |||
| <string name="about_Description">RBS RecurveBowSight allows you to calculate the sights vertical setting of a recurve bow according to several parameters</string> | |||
| <string name="AppVersionLabel">Version:</string> | |||
| <string name="about_DevelopedBy">Developed by spherIC (F. Smilari)\nMail to: | |||
| merlin868@hotmail.com\n\nTranslated by spherIC (F. Smilari)</string> | |||
| </resources> | |||
| @@ -18,6 +18,17 @@ package ch.spherIC.recurvebowsight; | |||
| import android.app.Activity; | |||
| import android.app.Dialog; | |||
| import android.content.pm.PackageManager; | |||
| import android.content.pm.PackageManager.NameNotFoundException; | |||
| import android.view.View; | |||
| import android.view.View.OnClickListener; | |||
| import android.widget.Button; | |||
| import android.widget.ImageView; | |||
| import android.widget.TextView; | |||
| import ch.spherIC.recurvebowsight.dialog.ChooseArcherySetupDlg; | |||
| @@ -45,6 +56,10 @@ public final class DialogFactory { | |||
| dlg = createChooseArcherySetupDialog(parent); | |||
| break; | |||
| case RBSMainActivity.DLG_ABOUT: | |||
| dlg = createAboutDialog(parent); | |||
| break; | |||
| default: | |||
| dlg = null; | |||
| break; | |||
| @@ -58,4 +73,45 @@ public final class DialogFactory { | |||
| return dialog; | |||
| } | |||
| /** | |||
| * Creates the About Dialog | |||
| */ | |||
| private static Dialog createAboutDialog(final Activity parent) { | |||
| String versionName = ""; | |||
| final Dialog dialog = new Dialog(parent); | |||
| dialog.setContentView(R.layout.rbs_about_dialog); | |||
| parent.getResources().getText(R.string.menuAbout); | |||
| dialog.setTitle(parent.getResources().getText(R.string.menuAbout).toString()); | |||
| try { | |||
| versionName = parent.getPackageManager().getPackageInfo("ch.spherIC", PackageManager.GET_CONFIGURATIONS).versionName; | |||
| } catch (NameNotFoundException e) { | |||
| versionName = "-"; | |||
| } | |||
| ImageView image = (ImageView) dialog.findViewById(R.id.about_imageAppIcon); | |||
| image.setImageResource(R.drawable.ic_launcher); | |||
| TextView text = (TextView) dialog.findViewById(R.id.about_TextDescription); | |||
| text.setText(parent.getResources().getText(R.string.about_Description)); | |||
| text = (TextView) dialog.findViewById(R.id.about_TextVersion); | |||
| text.setText(parent.getResources().getText(R.string.AppVersionLabel).toString() + " " + versionName); | |||
| text = (TextView) dialog.findViewById(R.id.about_TextAutor); | |||
| text.setText(parent.getResources().getText(R.string.about_DevelopedBy).toString()); | |||
| ((Button) dialog.findViewById(R.id.btn_AboutClose)).setOnClickListener(new OnClickListener() { | |||
| @Override | |||
| public void onClick(final View v) { | |||
| dialog.dismiss(); | |||
| } | |||
| }); | |||
| return dialog; | |||
| } | |||
| } | |||
| @@ -627,7 +627,10 @@ public class RBSMainActivity extends Activity implements ChooseArcherySetupDlgDi | |||
| }); | |||
| return true; | |||
| case R.id.itemAbout: | |||
| showDialog(DLG_ABOUT); | |||
| return true; | |||
| default: | |||
| @@ -2,6 +2,7 @@ package ch.spherIC.recurvebowsight.configuration; | |||
| import android.app.Activity; | |||
| import android.app.AlertDialog; | |||
| import android.app.Dialog; | |||
| import android.content.DialogInterface; | |||
| @@ -11,6 +12,7 @@ import android.os.Bundle; | |||
| import android.view.Gravity; | |||
| import android.view.Menu; | |||
| import android.view.MenuItem; | |||
| import android.view.View; | |||
| import android.view.View.OnClickListener; | |||
| @@ -23,7 +25,9 @@ import android.widget.Button; | |||
| import android.widget.TextView; | |||
| import android.widget.Toast; | |||
| import ch.spherIC.recurvebowsight.DialogFactory; | |||
| import ch.spherIC.recurvebowsight.R; | |||
| import ch.spherIC.recurvebowsight.RBSMainActivity; | |||
| import ch.spherIC.recurvebowsight.components.FontArrayAdapter; | |||
| import ch.spherIC.recurvebowsight.components.RiserSpinner; | |||
| import ch.spherIC.recurvebowsight.components.SightSpinner; | |||
| @@ -59,6 +63,8 @@ public class ArcherySetupConfigurationActivity extends Activity { | |||
| private TextView asBowPulloutTxtFld; | |||
| private TextView asArrowNockHeightTxtFld; | |||
| private TextView ashNATxtFld; | |||
| private TextView asNockRaisingTxtFld; | |||
| private TextView asBraceHeightTxtFld; | |||
| private TextView asDeltaTimeTxtFld; | |||
| private TextView asCalcPrecisionTxtFld; | |||
| private TextView asSightVertScaleMiddleTxtFld; | |||
| @@ -118,6 +124,8 @@ public class ArcherySetupConfigurationActivity extends Activity { | |||
| this.asBowPulloutTxtFld = (TextView) findViewById(R.id.asBowPulloutTxtFld); | |||
| this.asArrowNockHeightTxtFld = (TextView) findViewById(R.id.asNockHeightTxtFld); | |||
| this.ashNATxtFld = (TextView) findViewById(R.id.ashNATxtFld); | |||
| this.asNockRaisingTxtFld = (TextView) findViewById(R.id.asNockRaisingTxtFld); | |||
| this.asBraceHeightTxtFld = (TextView) findViewById(R.id.asBraceHeightTxtFld); | |||
| this.asDeltaTimeTxtFld = (TextView) findViewById(R.id.asDeltaTimeTxtFld); | |||
| this.asCalcPrecisionTxtFld = (TextView) findViewById(R.id.asCalcPrecisionTxtFld); | |||
| this.asSightVertScaleMiddleTxtFld = (TextView) findViewById(R.id.asSightVertScaleMiddleTxtFld); | |||
| @@ -156,6 +164,8 @@ public class ArcherySetupConfigurationActivity extends Activity { | |||
| ArcherySetupConfigurationActivity.this.asBowPulloutTxtFld.setText(DF.format(as.getBowPullout())); | |||
| ArcherySetupConfigurationActivity.this.asArrowNockHeightTxtFld.setText(DF.format(as.getArrowNockHeight())); | |||
| ArcherySetupConfigurationActivity.this.ashNATxtFld.setText(DF.format(as.getHNA())); | |||
| ArcherySetupConfigurationActivity.this.asNockRaisingTxtFld.setText(DF.format(as.getNockRaising())); | |||
| ArcherySetupConfigurationActivity.this.asBraceHeightTxtFld.setText(DF.format(as.getBraceHeight())); | |||
| ArcherySetupConfigurationActivity.this.asDeltaTimeTxtFld.setText(DF.format(as.getDeltaTime())); | |||
| ArcherySetupConfigurationActivity.this.asCalcPrecisionTxtFld.setText(DF.format(as.getCalcPrecision())); | |||
| ArcherySetupConfigurationActivity.this.asSightVertScaleMiddleTxtFld.setText(DF.format(as.getSightVertSkalaMiddle())); | |||
| @@ -230,7 +240,8 @@ public class ArcherySetupConfigurationActivity extends Activity { | |||
| && !this.asArrowCwTxtFld.getText().toString().isEmpty() && !this.asArrowWeightTxtFld.getText().toString().isEmpty() | |||
| && !this.asArrowV0TxtFld.getText().toString().isEmpty() && !this.asArrowCenterHeightTxtFld.getText().toString().isEmpty() | |||
| && !this.asArrowNockHeightTxtFld.getText().toString().isEmpty() && !this.asBowPulloutTxtFld.getText().toString().isEmpty() | |||
| && !this.ashNATxtFld.getText().toString().isEmpty() && !this.asDeltaTimeTxtFld.getText().toString().isEmpty() | |||
| && !this.ashNATxtFld.getText().toString().isEmpty() && !this.asNockRaisingTxtFld.getText().toString().isEmpty() | |||
| && !this.asBraceHeightTxtFld.getText().toString().isEmpty() && !this.asDeltaTimeTxtFld.getText().toString().isEmpty() | |||
| && !this.asCalcPrecisionTxtFld.getText().toString().isEmpty() && !this.asSightVertScaleMiddleTxtFld.getText().toString().isEmpty() | |||
| && !this.asSightHorzSettingTxtFld.getText().toString().isEmpty()) { | |||
| @@ -245,6 +256,8 @@ public class ArcherySetupConfigurationActivity extends Activity { | |||
| this.selectedArcherySetup.setArrowNockHeight(Double.valueOf(this.asArrowNockHeightTxtFld.getText().toString())); | |||
| this.selectedArcherySetup.setBowPullout(Double.valueOf(this.asBowPulloutTxtFld.getText().toString())); | |||
| this.selectedArcherySetup.setHNA(Double.valueOf(this.ashNATxtFld.getText().toString())); | |||
| this.selectedArcherySetup.setNockRaising(Double.valueOf(this.asNockRaisingTxtFld.getText().toString())); | |||
| this.selectedArcherySetup.setBraceHeight(Double.valueOf(this.asBraceHeightTxtFld.getText().toString())); | |||
| this.selectedArcherySetup.setDeltaTime(Double.valueOf(this.asDeltaTimeTxtFld.getText().toString())); | |||
| this.selectedArcherySetup.setCalcPrecision(Double.valueOf(this.asCalcPrecisionTxtFld.getText().toString())); | |||
| this.selectedArcherySetup.setSightVertSkalaMiddle(Double.valueOf(this.asSightVertScaleMiddleTxtFld.getText().toString())); | |||
| @@ -292,6 +305,8 @@ public class ArcherySetupConfigurationActivity extends Activity { | |||
| this.asBowPulloutTxtFld.setText(""); | |||
| this.asArrowNockHeightTxtFld.setText(""); | |||
| this.ashNATxtFld.setText(""); | |||
| this.asNockRaisingTxtFld.setText(""); | |||
| this.asBraceHeightTxtFld.setText(""); | |||
| this.asDeltaTimeTxtFld.setText(""); | |||
| this.asCalcPrecisionTxtFld.setText(""); | |||
| this.asSightVertScaleMiddleTxtFld.setText(""); | |||
| @@ -304,4 +319,25 @@ public class ArcherySetupConfigurationActivity extends Activity { | |||
| return super.onCreateOptionsMenu(menu); | |||
| } | |||
| @Override | |||
| public boolean onOptionsItemSelected(final MenuItem item) { | |||
| // Handle item selection | |||
| switch (item.getItemId()) { | |||
| case R.id.itemAbout: | |||
| showDialog(RBSMainActivity.DLG_ABOUT); | |||
| return true; | |||
| default: | |||
| return super.onOptionsItemSelected(item); | |||
| } | |||
| } | |||
| @Override | |||
| protected Dialog onCreateDialog(final int id) { | |||
| return DialogFactory.createDialog(id, this); | |||
| } | |||
| } | |||
| @@ -1,6 +1,7 @@ | |||
| package ch.spherIC.recurvebowsight.configuration; | |||
| import android.app.Activity; | |||
| import android.app.Dialog; | |||
| import android.content.Intent; | |||
| @@ -9,12 +10,15 @@ import android.content.pm.ActivityInfo; | |||
| import android.os.Bundle; | |||
| import android.view.Menu; | |||
| import android.view.MenuItem; | |||
| import android.view.View; | |||
| import android.widget.AdapterView; | |||
| import android.widget.ListView; | |||
| import ch.spherIC.recurvebowsight.DialogFactory; | |||
| import ch.spherIC.recurvebowsight.R; | |||
| import ch.spherIC.recurvebowsight.RBSMainActivity; | |||
| import ch.spherIC.recurvebowsight.components.MainConfigurationArrayAdapter; | |||
| import ch.spherIC.recurvebowsight.utilities.CompatibilityUtil; | |||
| @@ -87,4 +91,25 @@ public class MainConfigurationActivity extends Activity { | |||
| super.onActivityResult(requestCode, resultCode, data); | |||
| setResult(resultCode); | |||
| } | |||
| @Override | |||
| public boolean onOptionsItemSelected(final MenuItem item) { | |||
| // Handle item selection | |||
| switch (item.getItemId()) { | |||
| case R.id.itemAbout: | |||
| showDialog(RBSMainActivity.DLG_ABOUT); | |||
| return true; | |||
| default: | |||
| return super.onOptionsItemSelected(item); | |||
| } | |||
| } | |||
| @Override | |||
| protected Dialog onCreateDialog(final int id) { | |||
| return DialogFactory.createDialog(id, this); | |||
| } | |||
| } | |||
| @@ -4,15 +4,18 @@ | |||
| package ch.spherIC.recurvebowsight.configuration; | |||
| import android.app.Activity; | |||
| import android.app.AlertDialog; | |||
| import android.app.Dialog; | |||
| import android.content.pm.ActivityInfo; | |||
| import android.content.DialogInterface; | |||
| import android.database.sqlite.SQLiteConstraintException; | |||
| import android.content.pm.ActivityInfo; | |||
| import android.os.Bundle; | |||
| import android.view.Gravity; | |||
| import android.view.Menu; | |||
| import android.view.MenuItem; | |||
| import android.view.View; | |||
| import android.view.View.OnClickListener; | |||
| @@ -25,13 +28,16 @@ import android.widget.Button; | |||
| import android.widget.TextView; | |||
| import android.widget.Toast; | |||
| import ch.spherIC.recurvebowsight.DialogFactory; | |||
| import ch.spherIC.recurvebowsight.R; | |||
| import ch.spherIC.recurvebowsight.RBSMainActivity; | |||
| import ch.spherIC.recurvebowsight.components.FontArrayAdapter; | |||
| import ch.spherIC.recurvebowsight.components.RiserSpinner; | |||
| import ch.spherIC.recurvebowsight.database.dao.RiserDao; | |||
| import ch.spherIC.recurvebowsight.model.IRiser; | |||
| import ch.spherIC.recurvebowsight.model.Riser; | |||
| import ch.spherIC.recurvebowsight.utilities.CompatibilityUtil; | |||
| import ch.spherIC.recurvebowsight.utilities.PlatformUtils; | |||
| import java.text.DecimalFormat; | |||
| @@ -142,16 +148,26 @@ public class RiserConfigurationActivity extends Activity { | |||
| * Löschen. | |||
| */ | |||
| protected void onDeleteRiser() { | |||
| if (this.selectedRiser != null) { | |||
| try { | |||
| RiserDao.getInstance().delete(this.selectedRiser); | |||
| loadRiserSpinner(); | |||
| setResult(1); | |||
| } catch (SQLiteConstraintException e) { | |||
| Toast toast = Toast.makeText(this, getResources().getString(R.string.caption_Cfg_DeleteNotPossible), Toast.LENGTH_LONG); | |||
| toast.setGravity(Gravity.CENTER, 0, 0); | |||
| toast.show(); | |||
| } | |||
| android.content.DialogInterface.OnClickListener deleteBtnListener = new android.content.DialogInterface.OnClickListener() { | |||
| @Override | |||
| public void onClick(final DialogInterface dialog, final int which) { | |||
| try { | |||
| RiserDao.getInstance().delete(RiserConfigurationActivity.this.selectedRiser); | |||
| loadRiserSpinner(); | |||
| } catch (Exception e) { | |||
| Toast toast = Toast.makeText(RiserConfigurationActivity.this, | |||
| getResources().getString(R.string.caption_Cfg_DeleteNotPossible), Toast.LENGTH_LONG); | |||
| toast.setGravity(Gravity.CENTER, 0, 0); | |||
| toast.show(); | |||
| } | |||
| } | |||
| }; | |||
| AlertDialog dlg = PlatformUtils.getDeleteConfirmDialog(this, this.selectedRiser.toString(), deleteBtnListener); | |||
| dlg.show(); | |||
| } | |||
| } | |||
| @@ -207,4 +223,24 @@ public class RiserConfigurationActivity extends Activity { | |||
| return super.onCreateOptionsMenu(menu); | |||
| } | |||
| @Override | |||
| public boolean onOptionsItemSelected(final MenuItem item) { | |||
| // Handle item selection | |||
| switch (item.getItemId()) { | |||
| case R.id.itemAbout: | |||
| showDialog(RBSMainActivity.DLG_ABOUT); | |||
| return true; | |||
| default: | |||
| return super.onOptionsItemSelected(item); | |||
| } | |||
| } | |||
| @Override | |||
| protected Dialog onCreateDialog(final int id) { | |||
| return DialogFactory.createDialog(id, this); | |||
| } | |||
| } | |||
| @@ -4,6 +4,10 @@ | |||
| package ch.spherIC.recurvebowsight.configuration; | |||
| import android.app.Activity; | |||
| import android.app.AlertDialog; | |||
| import android.app.Dialog; | |||
| import android.content.DialogInterface; | |||
| import android.content.pm.ActivityInfo; | |||
| @@ -13,6 +17,7 @@ import android.os.Bundle; | |||
| import android.view.Gravity; | |||
| import android.view.Menu; | |||
| import android.view.MenuItem; | |||
| import android.view.View; | |||
| import android.view.View.OnClickListener; | |||
| @@ -25,13 +30,16 @@ import android.widget.Button; | |||
| import android.widget.TextView; | |||
| import android.widget.Toast; | |||
| import ch.spherIC.recurvebowsight.DialogFactory; | |||
| import ch.spherIC.recurvebowsight.R; | |||
| import ch.spherIC.recurvebowsight.RBSMainActivity; | |||
| import ch.spherIC.recurvebowsight.components.FontArrayAdapter; | |||
| import ch.spherIC.recurvebowsight.components.SightSpinner; | |||
| import ch.spherIC.recurvebowsight.database.dao.SightDao; | |||
| import ch.spherIC.recurvebowsight.model.ISight; | |||
| import ch.spherIC.recurvebowsight.model.Sight; | |||
| import ch.spherIC.recurvebowsight.utilities.CompatibilityUtil; | |||
| import ch.spherIC.recurvebowsight.utilities.PlatformUtils; | |||
| import java.text.DecimalFormat; | |||
| @@ -148,16 +156,26 @@ public class SightConfigurationActivity extends Activity { | |||
| * Löschen. | |||
| */ | |||
| protected void onDeleteSight() { | |||
| if (this.selectedSight != null) { | |||
| try { | |||
| SightDao.getInstance().delete(this.selectedSight); | |||
| loadSightSpinner(); | |||
| setResult(1); | |||
| } catch (SQLiteConstraintException e) { | |||
| Toast toast = Toast.makeText(this, getResources().getString(R.string.caption_Cfg_DeleteNotPossible), Toast.LENGTH_LONG); | |||
| toast.setGravity(Gravity.CENTER, 0, 0); | |||
| toast.show(); | |||
| } | |||
| android.content.DialogInterface.OnClickListener deleteBtnListener = new android.content.DialogInterface.OnClickListener() { | |||
| @Override | |||
| public void onClick(final DialogInterface dialog, final int which) { | |||
| try { | |||
| SightDao.getInstance().delete(SightConfigurationActivity.this.selectedSight); | |||
| loadSightSpinner(); | |||
| } catch (SQLiteConstraintException e) { | |||
| Toast toast = Toast.makeText(SightConfigurationActivity.this, | |||
| getResources().getString(R.string.caption_Cfg_DeleteNotPossible), Toast.LENGTH_LONG); | |||
| toast.setGravity(Gravity.CENTER, 0, 0); | |||
| toast.show(); | |||
| } | |||
| } | |||
| }; | |||
| AlertDialog dlg = PlatformUtils.getDeleteConfirmDialog(this, this.selectedSight.toString(), deleteBtnListener); | |||
| dlg.show(); | |||
| } | |||
| } | |||
| @@ -219,4 +237,24 @@ public class SightConfigurationActivity extends Activity { | |||
| return super.onCreateOptionsMenu(menu); | |||
| } | |||
| @Override | |||
| public boolean onOptionsItemSelected(final MenuItem item) { | |||
| // Handle item selection | |||
| switch (item.getItemId()) { | |||
| case R.id.itemAbout: | |||
| showDialog(RBSMainActivity.DLG_ABOUT); | |||
| return true; | |||
| default: | |||
| return super.onOptionsItemSelected(item); | |||
| } | |||
| } | |||
| @Override | |||
| protected Dialog onCreateDialog(final int id) { | |||
| return DialogFactory.createDialog(id, this); | |||
| } | |||
| } | |||