public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.textchat_fragment_layout, container, false); mListView = (ListView)rootView.findViewById(R.id.msgs_list); mSendButton = (Button)rootView.findViewById(R.id.send_button); mMsgCharsView = (TextView)rootView.findViewById(R.id.characteres_msg); mMsgCharsView.Text = maxTextLength.ToString(); mMsgNotificationView = (TextView)rootView.findViewById(R.id.new_msg_notification); mMsgEditText = (EditText)rootView.findViewById(R.id.edit_msg); mMsgDividerView = (View)rootView.findViewById(R.id.divider_notification); mMsgEditText.addTextChangedListener(mTextEditorWatcher); mSendButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); mMessageAdapter = new MessageAdapter(Activity, R.layout.sent_msg_row_layout, mMsgsList); mListView.Adapter = mMessageAdapter; mMsgNotificationView.OnTouchListener = new OnTouchListenerAnonymousInnerClassHelper(this); return(rootView); }
public ViewHolder(MessageAdapter outerInstance) { this.outerInstance = outerInstance; }