-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calendar trable #8
Comments
Can you clarify what you mean by 'calendar functionality'? Do you mean the DatePickerDialog? |
Yes, I mean the DatePickerDialog. and (declare date-picker) (defn date-picker [activity](proxy [DialogFragment DatePickerDialog$OnDateSetListener] [] (defn show-picker [activity dp](. dp show %28. activity getFragmentManager%29)) My app ends with the error after loading part and wright before starts. My code looks like yours: (ns org.stuff.events.main (declare android.widget.LinearLayout mylayout) (defn mt-listing [](atom %28sorted-map%29)) (defn format-events [events](->> %28map %28fn [[location event]] (defn format-listing [lst](->> %28map %28fn [[date events]] (defn main-layout [activity] (defn get-elmt [elmt](str %28.getText %28elmt %28.getTag mylayout%29%29%29)) (defn set-elmt [elmt s](on-ui %28.setText %28elmt %28.getTag mylayout%29%29 s%29)) (defn update-ui [](set-elmt ::listing %28format-listing @Listing%29) (defn add-event [](let [date-key %28try (defactivity org.stuff.events.MyActivity (defn date-picker [activity](proxy [DialogFragment DatePickerDialog$OnDateSetListener] [] (defn show-picker [activity dp](. dp show %28. activity getFragmentManager%29)) can you help my? 9 ÍÁÑ 2014, × 20:47, Kris Calabio [email protected] ÎÁÐÉÓÁÌ(Á):
|
Do the versions of the software stack match mine? If you're using newest version, they may cause problems. I know, my tutorial may be out of date. I haven't checked if my code works with the latest versions, but I will do so when I find the time. Until then, maybe you can post the output from |
Macj, I finally found the time to update my tutorial. It works with the newest stable versions at least on my machine. I made a one breaking change, namely the listing atom no longer calls a constructor. I'm not exactly sure what caused your problem, but a running app crashing and losing your REPL is not too uncommon due to the fragility of current tools. If your code looks exactly like mine, try running |
Hi! When I add a calendar functionality, my app start to
dies. When I click on a Event date button app shut down.
The text was updated successfully, but these errors were encountered: