seekBar and refresh
<p>I've a seekBar and I can increase and decrease text size but I've a problem: when I change tha value by seekBar and press a button (x++) new TextSwitched is ok but if again I press I've old value (text decreased). Pressing again I've new value... Reading logs values doesn't change when I press button. Value changes only when use seekBar. Thanks for patience.</p>

<pre><code>seekBar1.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
          public void onStopTrackingTouch(SeekBar seekBar) {
          // TODO Auto-generated method stub
          if(seek&lt;10)
          {
          seek=10;
          seekBar1.setProgress(seek);
          }

          }
          public void onStartTrackingTouch(SeekBar seekBar) {
          // TODO Auto-generated method stub
          }
          public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {
          // TODO Auto-generated method stub
          seek=progress;

          TextView t = (TextView) mSwitcher.getChildAt(0); 
          t.setTextSize(seek);
          Log.i("MyActivity", "MyClass.getView() — list " + seek);

          SharedPreferences prefs = getSharedPreferences(PRIVATE_PREF, 0);
          SharedPreferences.Editor editor = prefs.edit();
          editor.putInt("seek", seek);
          editor.putInt("progress", progress);
          editor.commit();
</code></pre>

<p>Button:</p>

<pre><code>button2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                    x++;
                    mSwitcher.setText(""+prog[x]);
</code></pre>

<p>public View makeView() {
    TextView t = new TextView(this);</p>

<pre><code>return t;
</code></pre>
