Android Open Source - ScoreKeeper Name Input Dialog Fragment






From Project

Back to project page ScoreKeeper.

License

The source code is released under:

GNU General Public License

If you think the Android project ScoreKeeper 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 com.fletch.gamescorekeeper.dialogs;
/*from www.  j ava2 s  .c  o m*/
import android.app.Dialog;
import android.os.Bundle;
import android.text.InputFilter;
import android.widget.EditText;

import com.fletch.gamescorekeeper.R;

public class NameInputDialogFragment extends InputDialogFragment {

    @Override
    public void setArguments(Bundle arguments) {

        super.setArguments(arguments);
    }

    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {

        inputField = new EditText(getActivity());
        inputField.setId(1);
        inputField.setSingleLine();
        inputField.setFilters(new InputFilter[] { new InputFilter.LengthFilter(getResources()
                .getInteger(R.integer.max_name_length)) });

        return super.onCreateDialog(savedInstanceState);
    }
}




Java Source Code List

com.fletch.gamescorekeeper.PlayerSpinnerAdapter.java
com.fletch.gamescorekeeper.Player.java
com.fletch.gamescorekeeper.ScoreBoardActivity.java
com.fletch.gamescorekeeper.ScoreSectionFragment.java
com.fletch.gamescorekeeper.constants.Constants.java
com.fletch.gamescorekeeper.dialogs.Dialogs.java
com.fletch.gamescorekeeper.dialogs.InputDialogFragment.java
com.fletch.gamescorekeeper.dialogs.InputDialogType.java
com.fletch.gamescorekeeper.dialogs.NameInputDialogFragment.java
com.fletch.gamescorekeeper.dialogs.RemovePlayerDialogFragment.java
com.fletch.gamescorekeeper.dialogs.ScoreInputDialogFragment.java
com.fletch.gamescorekeeper.dialogs.SelectPlayerScoreInputDialogFragment.java
com.fletch.gamescorekeeper.listeners.InputDialogListener.java
com.fletch.gamescorekeeper.utils.NfcUtils.java