content: package com.androidavanzado.cl05_minitwitter.ui.profile;
  
  import android.arch.lifecycle.ViewModelProviders;
  import android.os.Bundle;
  import android.support.annotation.NonNull;
  import android.support.annotation.Nullable;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.ImageView;
  import android.widget.Toast;
  
  import com.androidavanzado.cl05_minitwitter.data.ProfileViewModel;
  import com.androidavanzado.cl05_minitwitter.R;
  
  public class ProfileFragment extends Fragment {
  
      private ProfileViewModel mViewModel;
      ImageView ivAvatar;
      EditText etUsername, etEmail, etPassword;
      Button btnSave, btnChangePassword;
  
      public static ProfileFragment newInstance() {
          return new ProfileFragment();
      }
  
      @Override
      public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
                               @Nullable Bundle savedInstanceState) {
          View v = inflater.inflate(R.layout.profile_fragment, container, false);
  
          ivAvatar = v.findViewById(R.id.imageViewAvatar);
          etUsername = v.findViewById(R.id.editTextUsername);
          etEmail = v.findViewById(R.id.editTextEmail);
          etPassword = v.findViewById(R.id.editTextCurrentPassword);
          btnSave = v.findViewById(R.id.buttonSave);
          btnChangePassword = v.findViewById(R.id.buttonChangePassword);
  
          // Eventos
          btnSave.setOnClickListener(view -> {
              Toast.makeText(getActivity(), "Click on save", Toast.LENGTH_SHORT).show();
          });
  
          btnChangePassword.setOnClickListener(view -> {
              Toast.makeText(getActivity(), "Click on save", Toast.LENGTH_SHORT).show();
          });
  
          return v;
  
      }
  
      @Override
      public void onActivityCreated(@Nullable Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
          mViewModel = ViewModelProviders.of(this).get(ProfileViewModel.class);
      }
  
  }
  