Browse Source

GUI Layouting

master
gitsvn 12 years ago
parent
commit
a9e8bf35aa
1 changed files with 8 additions and 4 deletions
  1. 8
    4
      src/ch/spherIC/recurvebowsight/RBSMainActivity.java

+ 8
- 4
src/ch/spherIC/recurvebowsight/RBSMainActivity.java View File

import android.os.Handler; import android.os.Handler;
import android.text.SpannableString; import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.TabStopSpan; import android.text.style.TabStopSpan;
+ DF_FC.format(flightCurve[flightCurve.length - 1][TrajectoryCalculator.IDX_T]) + DF_FC.format(flightCurve[flightCurve.length - 1][TrajectoryCalculator.IDX_T])
+ " sec\n\n"); + " sec\n\n");
int width = this.flightCurveTxtFld.getMeasuredWidth();
SpannableString line = new SpannableString("t [sec]\tVx [m/s]\tVy [m/s]\tx [m]\ty [m]\n\n"); SpannableString line = new SpannableString("t [sec]\tVx [m/s]\tVy [m/s]\tx [m]\ty [m]\n\n");
line.setSpan(new TabStopSpan.Standard(100), 7, 9, 0);
line.setSpan(new TabStopSpan.Standard(200), 17, 19, 0);
line.setSpan(new TabStopSpan.Standard(300), 27, 29, 0);
line.setSpan(new TabStopSpan.Standard(400), 34, 36, 0);
line.setSpan(new TabStopSpan.Standard(width / 5), 0, 36, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
line.setSpan(new TabStopSpan.Standard(width / 5 * 2), 0, 36, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
line.setSpan(new TabStopSpan.Standard(width / 5 * 3), 0, 36, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
line.setSpan(new TabStopSpan.Standard(width / 5 * 4), 0, 36, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
this.flightCurveTxtFld.append(line); this.flightCurveTxtFld.append(line);

Loading…
Cancel
Save