Back to project page ScoreKeeper.
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.
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); } }