diff --git a/app/src/main/java/org/ntlab/amaryllis/client/MyDialogFragment.java b/app/src/main/java/org/ntlab/amaryllis/client/MyDialogFragment.java index 7818735..e37ab11 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/MyDialogFragment.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/MyDialogFragment.java @@ -88,19 +88,25 @@ @NonNull @Override public Dialog onCreateDialog(@Nullable Bundle savedInstanceState){ - final EditText editText = new EditText(getActivity()); - editText.setHint("編集できます。"); + final EditText editTextTitle = new EditText(getActivity()); + final EditText editTextOverview = new EditText(getActivity()); + editTextTitle.setHint("タイトル"); + editTextOverview.setHint("概要"); AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity()) //Dialog dialog = new AlertDialog.Builder(getActivity()) - .setTitle("購入") - .setMessage("購入しますか?") - .setView(editText) - .setPositiveButton("購入する", new DialogInterface.OnClickListener() { + .setTitle("ボイスメモ") + .setMessage("タイトル、概要を入力してください。") + .setView(editTextTitle) + .setView(editTextOverview) + .setPositiveButton("決定", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialogFragmentListener.onDialogPositiveButtonClicked(); - TextView Title = (TextView)getActivity().findViewById(R.id.radioDog); - Title.setText(editText.getText()); + TextView Title = (TextView)getActivity().findViewById(R.id.VoiceTitle); + Title.setText(editTextTitle.getText()); + + TextView Overview = (TextView)getActivity().findViewById(R.id.VoiceOverview); + Overview.setText(editTextOverview.getText()); //Title.setText("aaa"); } })