public override Dialog onCreateDialog(Bundle savedInstanceState)
        {
            AlertDialog.Builder builder = new AlertDialog.Builder(Activity);

            LayoutInflater inflater = Activity.LayoutInflater;
            View           view     = inflater.inflate(R.layout.dialog_file_list, (ViewGroup)Activity.findViewById(android.R.id.content).RootView, false);

            ListView listView = (ListView)view.findViewById(R.id.listView1);

            listView.OnItemClickListener = this;
            fileAdapter      = new FileAdapter(this, Activity);
            listView.Adapter = fileAdapter;

            pathTextView = (TextView)view.findViewById(R.id.textViewTitle);
            pathTextView.OnClickListener = this;

            okButton = (Button)view.findViewById(R.id.buttonOk);
            okButton.OnClickListener = this;
            view.findViewById(R.id.buttonCancel).OnClickListener = this;

            builder.setView(view).setTitle(getString([email protected]));

            updateFileList(new File(Environment.ExternalStorageDirectory.AbsolutePath));

            return(builder.create());
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @NonNull public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
		public override Dialog onCreateDialog(Bundle savedInstanceState)
		{
			Bundle args = Arguments;
			string title = args.getString(KEY_TITLE);
			string message = args.getString(KEY_MESSAGE);

			AlertDialog.Builder builder = new AlertDialog.Builder(Activity);
			builder.setTitle(title).setMessage(message).setPositiveButton([email protected], new OnClickListenerAnonymousInnerClassHelper(this));

			return builder.create();
		}
示例#3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @NonNull public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
        public override Dialog onCreateDialog(Bundle savedInstanceState)
        {
            Bundle args    = Arguments;
            string title   = args.getString(KEY_TITLE);
            string message = args.getString(KEY_MESSAGE);

            AlertDialog.Builder builder = new AlertDialog.Builder(Activity);
            builder.setTitle(title).setMessage(message).setPositiveButton([email protected], new OnClickListenerAnonymousInnerClassHelper(this));

            return(builder.create());
        }
示例#4
0
        public override Dialog onCreateDialog(Bundle savedInstanceState)
        {
            string title = Arguments.getString(KEY_TITLE);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String[] items = getArguments().getStringArray(KEY_ITEMS);
            string[] items = Arguments.getStringArray(KEY_ITEMS);

            AlertDialog.Builder builder = new AlertDialog.Builder(Activity);
            builder.setTitle(title).setItems(items, new OnClickListenerAnonymousInnerClassHelper(this, items));
            return(builder.create());
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @NonNull public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
		public override Dialog onCreateDialog(Bundle savedInstanceState)
		{
			Bundle args = Arguments;
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String title = args.getString(KEY_TITLE);
			string title = args.getString(KEY_TITLE);
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String[] items = args.getStringArray(KEY_ITEMS);
			string[] items = args.getStringArray(KEY_ITEMS);

			AlertDialog.Builder builder = new AlertDialog.Builder(Activity);
			builder.setTitle(title).setItems(items, new OnClickListenerAnonymousInnerClassHelper(this, title, items));
			return builder.create();
		}