• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Communication between DialogFragment and class

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?
    Bookmark Topic Watch Topic
  • New Topic