Search in sources :

Example 1 with LoadingIndicatorView

use of com.waz.zclient.views.LoadingIndicatorView in project wire-android by wireapp.

the class SharingConversationListManagerFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_conversation_list_manager, viewGroup, false);
    loadingIndicatorView = ViewUtils.getView(view, R.id.liv__conversations__loading_indicator);
    loadingIndicatorView.setColor(getResources().getColor(R.color.people_picker__loading__color));
    sharingIndicatorView = ViewUtils.getView(view, R.id.siv__sharing_indicator);
    getControllerFactory().getNavigationController().setLeftPage(Page.CONVERSATION_LIST, TAG);
    if (savedInstanceState == null) {
        FragmentManager fragmentManager = getChildFragmentManager();
        fragmentManager.beginTransaction().add(R.id.fl__conversation_list_main, ConversationListFragment.newInstance(ConversationListFragment.Mode.SHARING), ConversationListFragment.TAG).commit();
    }
    return view;
}
Also used : FragmentManager(android.support.v4.app.FragmentManager) LoadingIndicatorView(com.waz.zclient.views.LoadingIndicatorView) View(android.view.View)

Example 2 with LoadingIndicatorView

use of com.waz.zclient.views.LoadingIndicatorView in project wire-android by wireapp.

the class ParticipantFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_participant, container, false);
    FragmentManager fragmentManager = getChildFragmentManager();
    optionsMenuControl = new OptionsMenuControl();
    if (savedInstanceState == null) {
        fragmentManager.beginTransaction().replace(R.id.fl__participant__header__container, ParticipantHeaderFragment.newInstance(userRequester), ParticipantHeaderFragment.TAG).commit();
        IConversation currentConversation = getStoreFactory() != null && !getStoreFactory().isTornDown() ? getStoreFactory().getConversationStore().getCurrentConversation() : null;
        if (currentConversation != null && (currentConversation.getType() == IConversation.Type.ONE_TO_ONE || userRequester == IConnectStore.UserRequester.POPOVER)) {
            fragmentManager.beginTransaction().replace(R.id.fl__participant__container, TabbedParticipantBodyFragment.newInstance(getArguments().getInt(ARG__FIRST__PAGE)), TabbedParticipantBodyFragment.TAG).commit();
        } else {
            fragmentManager.beginTransaction().replace(R.id.fl__participant__container, ParticipantBodyFragment.newInstance(userRequester), ParticipantBodyFragment.TAG).commit();
        }
        getChildFragmentManager().beginTransaction().replace(R.id.fl__participant__settings_box, OptionsMenuFragment.newInstance(false), OptionsMenuFragment.TAG).commit();
    }
    Fragment overlayFragment = fragmentManager.findFragmentById(R.id.fl__participant__overlay);
    if (overlayFragment != null) {
        fragmentManager.beginTransaction().remove(overlayFragment).commit();
    }
    bodyContainer = ViewUtils.getView(view, R.id.fl__participant__container);
    loadingIndicatorView = ViewUtils.getView(view, R.id.liv__participants__loading_indicator);
    loadingIndicatorView.setColor(getResources().getColor(R.color.people_picker__loading__color));
    participantsContainerView = ViewUtils.getView(view, R.id.ll__participant__container);
    pickUserContainerView = ViewUtils.getView(view, R.id.fl__add_to_conversation__pickuser__container);
    conversationSettingsOverlayLayout = ViewUtils.getView(view, R.id.fl__conversation_actions__sliding_overlay);
    conversationSettingsOverlayLayout.setVisibility(View.GONE);
    return view;
}
Also used : FragmentManager(android.support.v4.app.FragmentManager) IConversation(com.waz.api.IConversation) View(android.view.View) LoadingIndicatorView(com.waz.zclient.views.LoadingIndicatorView) BlockedUserProfileFragment(com.waz.zclient.pages.main.connect.BlockedUserProfileFragment) Fragment(android.support.v4.app.Fragment) PendingConnectRequestFragment(com.waz.zclient.pages.main.connect.PendingConnectRequestFragment) SendConnectRequestFragment(com.waz.zclient.pages.main.connect.SendConnectRequestFragment) PickUserFragment(com.waz.zclient.pages.main.pickuser.PickUserFragment) BaseFragment(com.waz.zclient.pages.BaseFragment)

Example 3 with LoadingIndicatorView

use of com.waz.zclient.views.LoadingIndicatorView in project wire-android by wireapp.

the class ConversationManagerFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_conversation_manager, container, false);
    if (savedInstanceState == null) {
        FragmentManager fragmentManager = getChildFragmentManager();
        fragmentManager.beginTransaction().add(R.id.fl__conversation_manager__message_list_container, ConversationFragment.newInstance(), ConversationFragment.TAG).commit();
    }
    loadingIndicatorView = ViewUtils.getView(view, R.id.liv__conversation_manager__loading_indicator);
    return view;
}
Also used : FragmentManager(android.support.v4.app.FragmentManager) View(android.view.View) LoadingIndicatorView(com.waz.zclient.views.LoadingIndicatorView)

Aggregations

FragmentManager (android.support.v4.app.FragmentManager)3 View (android.view.View)3 LoadingIndicatorView (com.waz.zclient.views.LoadingIndicatorView)3 Fragment (android.support.v4.app.Fragment)1 IConversation (com.waz.api.IConversation)1 BaseFragment (com.waz.zclient.pages.BaseFragment)1 BlockedUserProfileFragment (com.waz.zclient.pages.main.connect.BlockedUserProfileFragment)1 PendingConnectRequestFragment (com.waz.zclient.pages.main.connect.PendingConnectRequestFragment)1 SendConnectRequestFragment (com.waz.zclient.pages.main.connect.SendConnectRequestFragment)1 PickUserFragment (com.waz.zclient.pages.main.pickuser.PickUserFragment)1