• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Communication between DialogFragment and class

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys!

I have a problem with TimePickerDialog.
I use a class that extends RelativeLayout it's my own view (MyViewCalss). In this class I have a button (named "Select time") and a TextView that display selected date. After clicking on that button I show mentioned TimePickerDialog usieng: mTimePickerFragment.show(((Activity) context).getFragmentManager(), "TAG"); in MyViewCalss.
MyViewCalss contains method named setTimeLabel() for setting my TextView.

This is my TimePickerDialog class:



All i need is to call method (placed in MyViewCalss) when time is chnged - from onTimeSet() method. How can I do that?
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic