Search in sources :

Example 6 with MainActivity

use of kogvet.eye.MainActivity in project Eye by tommyolsson.

the class FragmentBooking method onCreateView.

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_booking, container, false);
    ((MainActivity) getActivity()).setActionBarTitle(getResources().getString(R.string.menu_booking));
    ((MainActivity) getActivity()).showBackButton();
    mSwipeRefreshLayout = view.findViewById(R.id.swiperefresh);
    mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {

        @Override
        public void onRefresh() {
            myUpdateOperation();
        }
    });
    return view;
}
Also used : MainActivity(kogvet.eye.MainActivity) RecyclerView(android.support.v7.widget.RecyclerView) View(android.view.View) SwipeRefreshLayout(android.support.v4.widget.SwipeRefreshLayout) Nullable(android.support.annotation.Nullable)

Aggregations

Nullable (android.support.annotation.Nullable)6 View (android.view.View)6 MainActivity (kogvet.eye.MainActivity)6 TextView (android.widget.TextView)3 SwipeRefreshLayout (android.support.v4.widget.SwipeRefreshLayout)2 RecyclerView (android.support.v7.widget.RecyclerView)2 LocalDate (org.threeten.bp.LocalDate)2 DatePickerDialog (android.app.DatePickerDialog)1 TimePickerDialog (android.app.TimePickerDialog)1 TabLayout (android.support.design.widget.TabLayout)1 DatePicker (android.widget.DatePicker)1 TimePicker (android.widget.TimePicker)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Calendar (java.util.Calendar)1 DayOfWeek (org.threeten.bp.DayOfWeek)1 TemporalField (org.threeten.bp.temporal.TemporalField)1