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;
}
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;
}
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;
}
Aggregations