Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NumberPickerEditText.java « internal « holoeverywhere « org « src « library « HoloEverywhere « 3rd_party « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a0d6fe7394535b2475abc34a37416107a1c584b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

package org.holoeverywhere.internal;

import org.holoeverywhere.widget.EditText;

import android.content.Context;
import android.util.AttributeSet;
import android.view.inputmethod.EditorInfo;

public class NumberPickerEditText extends EditText {
    public NumberPickerEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void onEditorAction(int actionCode) {
        super.onEditorAction(actionCode);
        if (actionCode == EditorInfo.IME_ACTION_DONE) {
            clearFocus();
        }
    }
}