暂无描述

GroupExitPopup.java 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package ai.pai.client.views;
  2. import android.app.Activity;
  3. import android.view.LayoutInflater;
  4. import android.view.View;
  5. import android.view.animation.Animation;
  6. import com.android.views.popup.BasePopupWindow;
  7. import ai.pai.client.R;
  8. public class GroupExitPopup extends BasePopupWindow {
  9. private View popupView;
  10. private View.OnClickListener listener;
  11. public GroupExitPopup(Activity context,View.OnClickListener listener) {
  12. super(context);
  13. this.listener = listener;
  14. bindEvent();
  15. }
  16. @Override
  17. protected Animation getShowAnimation() {
  18. return getTranslateAnimation(250*2,0,200);
  19. }
  20. @Override
  21. protected View getClickToDismissView() {
  22. return popupView.findViewById(com.android.views.R.id.click_to_dismiss);
  23. }
  24. @Override
  25. public View getPopupView() {
  26. popupView= LayoutInflater.from(mContext).inflate(R.layout.popup_exit_group,null);
  27. return popupView;
  28. }
  29. @Override
  30. public View getAnimaView() {
  31. return popupView.findViewById(com.android.views.R.id.popup_anima);
  32. }
  33. private void bindEvent() {
  34. if (popupView!=null){
  35. popupView.findViewById(R.id.tv_pop_exit_group).setOnClickListener(listener);
  36. popupView.findViewById(R.id.tv_pop_cancel).setOnClickListener(listener);
  37. }
  38. }
  39. }
Kodo/kodo - Gogs: Go Git Service

2 Commits (c21f4c7f3dd61ca327f35cf1f1fcb07e23da09ae)

Autore SHA1 Messaggio Data
  Brightcells 13816e8774 Fix Bug: REQUEST 7 anni fa
  Brightcells 63eaee0951 modify guest_login_api 9 anni fa