| import android.widget.ArrayAdapter; | import android.widget.ArrayAdapter; | ||||
| import android.widget.ListView; | import android.widget.ListView; | ||||
| import android.widget.ScrollView; | import android.widget.ScrollView; | ||||
| import android.widget.Spinner; | |||||
| import android.widget.TextView; | import android.widget.TextView; | ||||
| import android.widget.ViewFlipper; | import android.widget.ViewFlipper; | ||||
| private XTextView txtViewParams; | private XTextView txtViewParams; | ||||
| private XTextView txtViewResults; | private XTextView txtViewResults; | ||||
| private XTextView txtViewSight; | private XTextView txtViewSight; | ||||
| private Spinner calcTimeIntervalCboBox; | |||||
| private XSpinner calcAccuracyCboBox; | |||||
| private TextView arrowDiameterTxtFld; | private TextView arrowDiameterTxtFld; | ||||
| private TextView arrowCwTxtFld; | |||||
| private TextView arrowWeightTxtFld; | |||||
| private TextView bowPulloutTxtFld; | |||||
| private TextView arrowV0TxtFld; | |||||
| private TextView airTemperatureTxtFld; | |||||
| private TextView airRelativeHumidityTxtFld; | |||||
| private TextView shootingDistanzTxtFld; | |||||
| private TextView arrowNockHeightTxtFld; | |||||
| private TextView targetCenterHeightTxtFld; | |||||
| private XSpinner calcTimeIntervalCboBox; | |||||
| private XSpinner calcAccuracyCboBox; | |||||
| private XSpinner scRiserSpinner; | |||||
| private TextView scVvisHTxtFld; | |||||
| private TextView scVvisVTxtFld; | |||||
| private XSpinner scSightSpinner; | |||||
| private XSpinner scHeVSSpinner; | |||||
| private TextView scaVTxtFld; | |||||
| private TextView scVertScaleRngTxtFld; | |||||
| private TextView scVertSkalaMiddleTxtFld; | |||||
| private TextView scEvSValue; | |||||
| private Activity riserSightConfigActivity; | private Activity riserSightConfigActivity; | ||||
| RBSDatabaseHelper.setContext(this); | RBSDatabaseHelper.setContext(this); | ||||
| RBSDatabaseHelper.getInstance().initializeDB(); | RBSDatabaseHelper.getInstance().initializeDB(); | ||||
| this.viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper); | |||||
| this.paramsScrollView = (ScrollView) findViewById(R.id.paramsScrollView); | |||||
| this.sightCfgScrollView = (ScrollView) findViewById(R.id.sightCfgScrollView); | |||||
| this.txtViewParams = (XTextView) findViewById(R.id.viewParams); | |||||
| this.txtViewResults = (XTextView) findViewById(R.id.viewResults); | |||||
| this.txtViewSight = (XTextView) findViewById(R.id.viewSight); | |||||
| this.calcTimeIntervalCboBox = (Spinner) findViewById(R.id.deltaTimeCboBox); | |||||
| this.calcAccuracyCboBox = (XSpinner) findViewById(R.id.calcPrecisionCboBox); | |||||
| this.arrowDiameterTxtFld = (TextView) findViewById(R.id.arrowDiameterTxtFld); | |||||
| initializeComponents(); | |||||
| addTouchListeners(); | addTouchListeners(); | ||||
| xTextViewUp(this.txtViewParams); | xTextViewUp(this.txtViewParams); | ||||
| } | } | ||||
| private void initializeComponents() { | |||||
| this.viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper); | |||||
| this.paramsScrollView = (ScrollView) findViewById(R.id.paramsScrollView); | |||||
| this.sightCfgScrollView = (ScrollView) findViewById(R.id.sightCfgScrollView); | |||||
| this.txtViewParams = (XTextView) findViewById(R.id.viewParams); | |||||
| this.txtViewResults = (XTextView) findViewById(R.id.viewResults); | |||||
| this.txtViewSight = (XTextView) findViewById(R.id.viewSight); | |||||
| this.arrowDiameterTxtFld = (TextView) findViewById(R.id.arrowDiameterTxtFld); | |||||
| this.arrowCwTxtFld = (TextView) findViewById(R.id.arrowCwTxtFld); | |||||
| this.arrowWeightTxtFld = (TextView) findViewById(R.id.arrowWeightTxtFld); | |||||
| this.bowPulloutTxtFld = (TextView) findViewById(R.id.bowPulloutTxtFld); | |||||
| this.arrowV0TxtFld = (TextView) findViewById(R.id.arrowV0TxtFld); | |||||
| this.airTemperatureTxtFld = (TextView) findViewById(R.id.airTemperatureTxtFld); | |||||
| this.airRelativeHumidityTxtFld = (TextView) findViewById(R.id.airRelativeHumidityTxtFld); | |||||
| this.shootingDistanzTxtFld = (TextView) findViewById(R.id.shootingDistanzTxtFld); | |||||
| this.arrowNockHeightTxtFld = (TextView) findViewById(R.id.arrowNockHeightTxtFld); | |||||
| this.targetCenterHeightTxtFld = (TextView) findViewById(R.id.targetCenterHeightTxtFld); | |||||
| this.calcTimeIntervalCboBox = (XSpinner) findViewById(R.id.deltaTimeCboBox); | |||||
| this.calcAccuracyCboBox = (XSpinner) findViewById(R.id.calcPrecisionCboBox); | |||||
| this.scRiserSpinner = (XSpinner) findViewById(R.id.scRiserTxtFld); | |||||
| this.scVvisHTxtFld = (TextView) findViewById(R.id.scVvisHTxtFld); | |||||
| this.scVvisVTxtFld = (TextView) findViewById(R.id.scVvisVTxtFld); | |||||
| this.scSightSpinner = (XSpinner) findViewById(R.id.scSightSpinner); | |||||
| this.scHeVSSpinner = (XSpinner) findViewById(R.id.scHeVSSpinner); | |||||
| this.scaVTxtFld = (TextView) findViewById(R.id.scaVTxtFld); | |||||
| this.scVertScaleRngTxtFld = (TextView) findViewById(R.id.scVertScaleRngTxtFld); | |||||
| this.scVertSkalaMiddleTxtFld = (TextView) findViewById(R.id.scVertSkalaMiddleTxtFld); | |||||
| this.scEvSValue = (TextView) findViewById(R.id.scEvSValue); | |||||
| } | |||||
| private void addTouchListeners() { | private void addTouchListeners() { | ||||
| // Scrollview muss den Swipe selbst handeln | // Scrollview muss den Swipe selbst handeln |