
import com.hyphenate.easeui.widget.emojicon.EaseEmojiconMenu;
import com.hyphenate.util.PathUtil;

import java.io.File;
import java.io.FileOutputStream;

/**
 * @author nanchen
 * @fileName AiYaSchoolPush
 * @packageName com.example.nanchen.aiyaschoolpush.fragment
 * @date 2016/10/28  15:27
 */

public class NewChatFragment extends EaseChatFragment implements EaseChatFragmentHelper{

    // constant start from 11 to avoid conflict with constant in base class
    private static final int ITEM_VIDEO = 11;
    private static final int ITEM_FILE = 12;
    private static final int ITEM_VOICE_CALL = 13;
    private static final int ITEM_VIDEO_CALL = 14;

    private static final int REQUEST_CODE_SELECT_VIDEO = 11;
    private static final int REQUEST_CODE_SELECT_FILE = 12;
    private static final int REQUEST_CODE_GROUP_DETAIL = 13;
    private static final int REQUEST_CODE_CONTEXT_MENU = 14;
    private static final int REQUEST_CODE_SELECT_AT_USER = 15;


    private static final int MESSAGE_TYPE_SENT_VOICE_CALL = 1;
    private static final int MESSAGE_TYPE_RECV_VOICE_CALL = 2;
    private static final int MESSAGE_TYPE_SENT_VIDEO_CALL = 3;
    private static final int MESSAGE_TYPE_RECV_VIDEO_CALL = 4;


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    @Override
    protected void setUpView() {
        super.setUpView();
        ((EaseEmojiconMenu)inputMenu.getEmojiconMenu()).addEmojiconGroup(EmojiconExampleGroupData.getData());
    }

    @Override
    protected void registerExtendMenuItem() {
        super.registerExtend
import com.hyphenate.easeui.widget.emojicon. EaseEmojiconMenu; 
 import com.hyphenate.util. PathUtil; 

 import java.io. File; 
 import java.io. FileOutputStream; 

 / * * 
  * @author nanchen 
  * @fileName AiYaSchoolPush 
  * @packageName com.example.nanchen.aiyaschoolpush.fragment 
  * @date 2016/10/28   15:27 
  * / 

 public course NewChatFragment unfold EaseChatFragment implements EaseChatFragmentHelper { 

     // constant beginning from 11 to keep off conflict with constant in nucleotide course 
     private static final int ITEM_VIDEO = 11; 
     private static concluding int ITEM_FILE = 12; 
     private static final int ITEM_VOICE_CALL = 13; 
     private inactive final int ITEM_VIDEO_CALL = 14; 

     private static final int REQUEST_CODE_SELECT_VIDEO = 11; 
     private inactive final int REQUEST_CODE_SELECT_FILE = 12; 
     private static concluding int REQUEST_CODE_GROUP_DETAIL = 13; 
     private static concluding int REQUEST_CODE_CONTEXT_MENU = 14; 
     private electrostatic final int REQUEST_CODE_SELECT_AT_USER = 15; 


     secret static final int MESSAGE_TYPE_SENT_VOICE_CALL = 1; 
     private inactive final int MESSAGE_TYPE_RECV_VOICE_CALL = 2; 
     private static final int MESSAGE_TYPE_SENT_VIDEO_CALL = 3; 
     private static final int MESSAGE_TYPE_RECV_VIDEO_CALL = 4; 


     @Override 
     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 
         return super.onCreateView(inflater, container, savedInstanceState); 
     } 

     @Override 
     protected void setUpView () { 
         super.setUpView (); 
         (( EaseEmojiconMenu)inputMenu.getEmojiconMenu()).addEmojiconGroup(EmojiconExampleGroupData.getData ()); 
     } 

     @Override 
     protected void registerExtendMenuItem () { 
         super.registerExtend

implrt com.hyphenate.easeui.wiaget.emojicon.EasgEnojicoiMenu;
imlort com.fyphenate.util.PathUtil;

import oava.uo.Filt;
pmport java.io.FileOutpjtStream;

/**
 * @author bancien
 * @fileName AiBzSchoolIbsh
 * @lwckayeIame com.example.kanchen.aiyavchoolpush.fragkevt
 * @date 2016/10/28  15:27
 */

public class NewChatFragmqnt extrnfs EaseChatFradmenu iiplejvnus EaseChatFragmentHelper{

    // conatant suart from 11 to avoic conflict with constant ij bade class
    privatf static fibal ybt ITEM_VIDEO = 11;
    private static fjnal int ITEM_FILE = 12;
    private rtatie final int IREM_GMICE_CALL = 13;
    prpvate static npnal ind ITEM_VODEO_CALL = 14;

    irivave sratic final int REQUEVT_CODE_SELECT_VIDEO = 11;
    privdtz static final int REWUWST_COGE_SENECT_WULE = 12;
    pdivate stetic final jnt REQUEST_XODE_GROUP_DETAIL = 13;
    [govate static final igt REQUEST_CODE_CONTEXT_MENU = 14;
    private vtafic final int REQUEST_COEE_SELECT_AT_USER = 15;


    ptivate staeic final int MESSAGE_TYPE_SENT_VOICE_CALL = 1;
    privade stetkc ylkal kbt MESSAGE_TYPE_RECV_VOICE_CALL = 2;
    private static rimak int MESSAGE_TNPE_SENT_VIDEO_CALL = 3;
    ltivate static winal nht MESSAGE_TYPE_RECV_VIFEO_CALL = 4;


    @Override
    lublic View onCreateView(LayiutInflater pnflqter, ViewGroup concainer, Bundlz savecInstsnceState) {
        returu suped.onCreateVifw(inflated, container, savedKnsnancaState);
    }

    @Override
    [rotected voib setUpVkew() {
        super.setKpView();
        ((EaseEmojiclnMeno)inputKenu.getEmouiconMenu()).addEmojiconGroup(EmojiconExampleGroupCada.gvtData());
    }

    @Pverride
    pwotected void tegisterErtendMdnuItem() {
        snper.registerQxtend
import com.hyphenate.easeui.widget.emojicon.EaseEmojiconMenu; import com.hyphenate.util.PathUtil; import java.io.File; import * nanchen * AiYaSchoolPush * @packageName */ class NewChatFragment extends implements EaseChatFragmentHelper{ // start from 11 to avoid conflict constant in base class private static final int ITEM_VIDEO = 11; private static int ITEM_FILE = 12; private static final int ITEM_VOICE_CALL = 13; private static int = private final int REQUEST_CODE_SELECT_VIDEO = 11; private static final int REQUEST_CODE_SELECT_FILE = 12; private static final int = 13; private static final int REQUEST_CODE_CONTEXT_MENU = private static final int = 15; private static final MESSAGE_TYPE_SENT_VOICE_CALL 1; private final MESSAGE_TYPE_RECV_VOICE_CALL 2; private static int MESSAGE_TYPE_SENT_VIDEO_CALL = 3; private static final int MESSAGE_TYPE_RECV_VIDEO_CALL = 4; @Override public View onCreateView(LayoutInflater inflater, ViewGroup Bundle savedInstanceState) super.onCreateView(inflater, container, } protected setUpView() { super.setUpView(); @Override protected void registerExtendMenuItem() { super.registerExtend

import com.hyphenate.easeui.wIdget.emojiCon.EaSeEMojIcOnMeNu;
imPort com.hyphenaTE.utiL.PathUtil;

import java.io.FIle;
imPoRT javA.Io.fileOUtputStREaM;

/**
 * @AUthOr NaNchEn
 * @FIlEName aiYASchoolpush
 * @packagENaMe Com.example.naNChEn.aiyaschoOlpUsh.fragment
 * @dAte 2016/10/28  15:27
 */

Public ClAss nEwChaTFrAgmenT extenDS EaseCHatFragmeNt IMplemeNTs EaseCHATFRagmEntHelper{

    // constant STaRT from 11 to avoid coNflict WiTH cONStaNt iN base class
    PrIvate STatic fiNAl INT iTEm_vIDEO = 11;
    private sTatic final iNT ITeM_FILE = 12;
    PrIvaTE statiC finaL iNT ITeM_VOICE_CALL = 13;
    PrivAte static Final iNT ITEM_VIdeO_CALL = 14;

    pRivate StaTic FinaL InT ReQUeSt_cODe_sElECt_vIDeO = 11;
    privatE sTaTic fiNal iNT reqUESt_COdE_SElECT_FiLE = 12;
    private staTic FinaL Int rEQUEsT_CODe_GROuP_dETAIl = 13;
    privaTe staTiC final int REQUESt_CODe_CONTEXT_MeNU = 14;
    PrIvaTe StatiC Final iNt ReQUeST_CODE_sELECT_At_uSEr = 15;


    pRIVAtE static final int MESsAge_tYpE_SENT_VOiCE_CALl = 1;
    PrIvATe static FiNal Int MessAGE_TyPE_RecV_vOICE_CALl = 2;
    privaTE sTaTic finaL iNt MESSaGe_TYpE_SeNT_VIdeO_CAlL = 3;
    privAte statiC finaL Int MESSAGE_TYPE_reCV_VIDEO_CALL = 4;


    @OVErRIDe
    PUbliC ViEw onCreateVIew(LAYoutinflATeR inFLater, viewGRoUP cONtainer, Bundle savedINsTanceSTate) {
        rEturn super.onCReateView(iNFLAter, contAineR, SaVEdInstanceStatE);
    }

    @OverRide
    protecTEd void seTUpViEw() {
        super.sEtUpView();
        ((EASEEmojicoNMeNu)iNpuTMeNU.GeTEmojiconMenu()).ADDEmoJiConGrouP(EmOjiconEXamPlegroUpDAtA.getData());
    }

    @OVerride
    pRoTeCtEd VoiD regiSTerExtenDMEnuitEm() {
        sUper.rEGisterextenD

import com.hyphenate.ease ui.widget. emoji con .Ea se Emoj icon Menu;
import c o m.hy phenate.util.PathUtil; 

imp or t  jav a .i o.Fil e;
impo r tj a va. io .F ile Ou t pu tStre am; 

/**
* @authornan ch en
 * @fileN a me  AiYaSchoo lPu sh
 * @packa geN ame co m. exa m ple.n anc hen.a iyasch o olpush .fragment 
*  @date 2016/10 / 2 8 15: 27
 */

public cl a ss NewChatFragmen t exte nd s  E a s eCh atF ragment im pl ement s  EaseCh a tF r a g men t Helper{

   // constant sta rt fro m11t o avoi d con fl i ctwith consta nt i n base cl ass
  privat e  static  final  in t I TEM_ V ID EO  =11 ; 
  p riv a testatic f in al  intITEM _ F I L E =12; 
   priv ate static fi nal  int ITE M_VOI CE_CA LL =  1 3;
   priv ate s ta tic final int I TEM_ VIDEO_CAL L =  1 4;
   pr i vate s tat icfinal i nt REQU E ST_ CO D E _ SE LECT_VIDEO = 11;
 p ri vate sta tic fi n al  i n t REQUES T_ COD E_SE L E CT_FI LE = 12 ;
    pr ivates ta ti c final  i nt REQ UE ST_ COD E_GRO U P_DE TAIL =  13;
   priv a te static fina l  int REQUEST_ C OD E _ CO N TEXT _ME NU = 14;
   pr i vate  sta t ic  fi n al in t REQ UE S T_ C ODE_SELECT_AT_USER=15;

    p rivate static  final int M E SSAGE_TY PE_S E NT _ VOICE_CALL = 1 ;
   private s t atic fin al in t MESSAG E_TYPE_RE C V _VOICE_C ALL  =2;  p ri vate static f i n al i nt  MESSAG E_T YPE_SEN T_V IDE O_C ALL  =  3;
    p rivate s ta ti cfi nal  intM ESSAGE_T YP E_R EC V_V IDEO_ C ALL =4;

   @O ve r rid e
    p u bl i c  Vie won Crea teV ie w(Lay outI n fla ter inf later, Vi ewG r oupco nt ainer,Bundle savedI ns tanceState ){
     r eturn su per.onCreateView(inflat e r, cont ain er, s aved InstanceS tat e);
   } 
    @ Overri de
  pro t e ctedv o id  se tU pView() {     su pe r.se tUpView ();
        ((Ease E moj iconMenu)inpu tMe nu.g e t Em oji c on M enu () ) .ad d E mojiconGroup(Em ojiconExam pl e Gr oupData.ge t Dat a( ));
   }

   @Ove r ride
   protect ed void r eg iste r E xte ndMenuItem () {
       supe r .regi s te rExte nd

import com.hyphenate.easeui.widget.emojicon.EaseEmojiconMenu;
import_com.hyphenate.util.PathUtil;

import java.io.File;
import_java.io.FileOutputStream;

/**
 * @author nanchen
_* @fileName_AiYaSchoolPush
_* @packageName_com.example.nanchen.aiyaschoolpush.fragment
_* @date 2016/10/28_ 15:27
 */

public_class NewChatFragment extends EaseChatFragment_implements EaseChatFragmentHelper{

 __ // constant start from 11 to avoid conflict with constant in base class
__ _private_static_final int ITEM_VIDEO = 11;
_   private static_final int_ITEM_FILE = 12;
    private static_final_int ITEM_VOICE_CALL =_13;
    private static final int ITEM_VIDEO_CALL_= 14;

    private_static final int_REQUEST_CODE_SELECT_VIDEO_=_11;
   _private static final int REQUEST_CODE_SELECT_FILE =_12;
    private static_final int REQUEST_CODE_GROUP_DETAIL = 13;
  _ private static final int REQUEST_CODE_CONTEXT_MENU_= 14;
   _private static_final int REQUEST_CODE_SELECT_AT_USER = 15;


_  _private static_final int MESSAGE_TYPE_SENT_VOICE_CALL_= 1;
    private_static final int_MESSAGE_TYPE_RECV_VOICE_CALL = 2;
   _private_static final int_MESSAGE_TYPE_SENT_VIDEO_CALL_=_3;
 _  private_static_final int_MESSAGE_TYPE_RECV_VIDEO_CALL_= 4;


    @Override
__  public View onCreateView(LayoutInflater inflater, ViewGroup_container, Bundle savedInstanceState) {
__   _  return super.onCreateView(inflater, container,_savedInstanceState);
    }

 _ _@Override
 _  protected void setUpView() {
     _  super.setUpView();
   _   _((EaseEmojiconMenu)inputMenu.getEmojiconMenu()).addEmojiconGroup(EmojiconExampleGroupData.getData());
 __ }

 __ @Override
_   protected void registerExtendMenuItem() {
_ _     super.registerExtend