Search:

Type: Posts; User: docco2020

Search: Search took 0.35 seconds.

  1. Replies
    1
    Views
    1,616

    How to change cursor of Edit Text

    I set the cursor of Edit Text in activity_main.xml in android

    android:textCursorDrawable="@drawable/large_cursor"

    I want to change the cursor to "@drawable/small_cursor" BY JAVA CODE. Can...
  2. Replies
    3
    Views
    210

    Re: ActionListener in Java

    In this case, if a button invokes to sound a midi note, how can you prolong the sound until you click the button STOP or another button?
  3. Replies
    0
    Views
    818

    Midi in Android Studio

    I search for a "simple code to play a sound note" in Android but can not find anything. In Java Eclipse, it is easy to use javax.sound.midi.*.
    Synthesizer midiSynth =...
  4. Replies
    3
    Views
    210

    ActionListener in Java

    I wonder whether everything else stops while ActionListener running?
    If I loop a button ActionListener when this button is pressed, I can not invoke another button ActionListener
    I want to toggle 2...
  5. Replies
    3
    Views
    192

    Re: What's wrong with the calculation?

    Float Value1, Value2;
    .
    .
    .
    btn_Result.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
    Value2 =...
  6. Replies
    3
    Views
    192

    What's wrong with the calculation?

    A simple addition in Java:
    Float Value1 = 4.7, Value2 = 7.6
    Addition Result = Value1 + Value2 = 12.299999 not 12.3 ?
    Can someone help me to solve the problem without rounding the result?
Results 1 to 6 of 6