Showing posts with label Fragments. Show all posts
Showing posts with label Fragments. Show all posts

Passing Data Between Fragments

Here is clear picture how to pass Data between Activity and different fragements..

in intent pass data using putExtra method


intent.putExtra(PROGRAM_SCREEN,  ItemDetails);


in fragment check bundle is null or not and fetch the data

      private  ProgramItemDetails mProgramItemDetails;

        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            mProgramItemDetails= ( ProgramItemDetails) bundle.getSerializable(PROGRAM_SCREEN);
        }


         

Select DateRange UsingRangePicker.

  /* * This Method is for select range from picker. * */ private fun selectDateRangeUsingRangePicker () { pageNumber = 1 val displ...