Back to project page permission-explorer.
The source code is released under:
Copyright (C) 2012 Rui Gon?alves and Daniel Cibr?o Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),...
If you think the Android project permission-explorer 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 pt.up.fe.ssin.pexplorer.utils.ui; // ww w. ja v a 2 s . co m import pt.up.fe.ssin.pexplorer.R; import android.app.AlertDialog.Builder; import android.content.Context; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class InputDialogBuilder extends Builder { private View content; public InputDialogBuilder(Context context) { super(context); buildBase(context); } public EditText getEditText() { return (EditText) content.findViewById(R.id.input); } @Override public Builder setMessage(int messageId) { return setMessage(content.getContext().getString(messageId)); } @Override public Builder setMessage(CharSequence message) { ((TextView) content.findViewById(R.id.label)).setText(message); return this; } private void buildBase(Context context) { content = View.inflate(context, R.layout.input_dialog, null); setCancelable(true); setView(content); } }