Irlance_Dox

Dialog2

Aug 28th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.18 KB | None | 0 0
  1. package com.example.hoa.dialog;
  2.  
  3. import android.app.DialogFragment;
  4. import android.os.Bundle;
  5. import android.view.LayoutInflater;
  6. import android.view.View;
  7. import android.view.ViewGroup;
  8. import android.widget.TextView;
  9.  
  10.  
  11. public class Dialog2 extends DialogFragment implements DialogFragm.OnInputListner {
  12.  
  13.  
  14.     private static final String TAG = "Dialog2";
  15.     public TextView EventType;
  16.  
  17.  
  18.     @Override
  19.     public View onCreateView(LayoutInflater inflater, ViewGroup container,
  20.                              Bundle savedInstanceState) {
  21.         // Inflate the layout for this
  22.         View v2 = inflater.inflate(R.layout.fragment_dialog2, container, false);
  23.         EventType = (TextView) v2.findViewById(R.id.event);
  24.  
  25.         return v2;
  26.     }
  27.  
  28.     @Override
  29.     public void sendInput(String Input) {
  30.         EventType.setText(Input);
  31.     }
  32.  
  33. //    @Override
  34. //    public void onActivityCreated(Bundle savedInstanceState) {
  35. //        super.onActivityCreated(savedInstanceState);
  36. //        Bundle args = getArguments();
  37. //        if (args != null) {
  38. //            //String name = args.getString("username");
  39. //            EventType.setText("123456");
  40. //        }
  41. //    }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment