Search in sources :

Example 1 with AutoCompleteContactView

use of com.moez.QKSMS.ui.view.AutoCompleteContactView in project qksms by moezbhatti.

the class ComposeFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_compose, container, false);
    mRecipients = (AutoCompleteContactView) view.findViewById(R.id.compose_recipients);
    mRecipients.setOnItemClickListener(this);
    mComposeView = (ComposeView) view.findViewById(R.id.compose_view);
    mComposeView.onOpenConversation(null, null);
    mComposeView.setActivityLauncher(this);
    mComposeView.setRecipientProvider(this);
    mComposeView.setOnSendListener(this);
    mComposeView.setLabel("Compose");
    mStarredContactsView = (StarredContactsView) view.findViewById(R.id.starred_contacts);
    mStarredContactsView.setComposeScreenViews(mRecipients, mComposeView);
    new Handler().postDelayed(() -> KeyboardUtils.showAndFocus(mContext, mRecipients), 100);
    return view;
}
Also used : Handler(android.os.Handler) ComposeView(com.moez.QKSMS.ui.view.ComposeView) AutoCompleteContactView(com.moez.QKSMS.ui.view.AutoCompleteContactView) StarredContactsView(com.moez.QKSMS.ui.view.StarredContactsView) View(android.view.View) AdapterView(android.widget.AdapterView)

Aggregations

Handler (android.os.Handler)1 View (android.view.View)1 AdapterView (android.widget.AdapterView)1 AutoCompleteContactView (com.moez.QKSMS.ui.view.AutoCompleteContactView)1 ComposeView (com.moez.QKSMS.ui.view.ComposeView)1 StarredContactsView (com.moez.QKSMS.ui.view.StarredContactsView)1