Android Open Source - NotesTrainer Note Seek Bar Preference






From Project

Back to project page NotesTrainer.

License

The source code is released under:

GNU General Public License

If you think the Android project NotesTrainer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package ydirson.notestrainer;
/*from   w  w w .java 2s .  c o m*/
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.robobunny.SeekBarPreference;
import ydirson.notestrainer.Globals;

public class NoteSeekBarPreference extends SeekBarPreference {
    // dummy ctor to prevent generation of a zero-arg ctor
    public NoteSeekBarPreference(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void updateStatusText(TextView statusText, int value) {
        if (Globals.displayedNoteNames == null) return;
        statusText.setText(Globals.displayedNoteNames[value % 7]);
    }
}




Java Source Code List

com.robobunny.SeekBarPreference.java
ydirson.notestrainer.Globals.java
ydirson.notestrainer.MainMenu.java
ydirson.notestrainer.NoteSeekBarPreference.java
ydirson.notestrainer.Prefs.java
ydirson.notestrainer.ReadNotes.java
ydirson.notestrainer.ScoreView.java