I gave a presentation last week at my local Android developers’ meetup group, Tridroid. The topic of the meeting was fragments. In my presentation, I described a fragment I built to implement simple switches. The figures below show what the demo app looks like.
Usually what I do on this blog is provide a full write-up of how a demo app works. I will do that eventually for this one too, but I am starting with the set of slides and the source code.
Switch Fragment Demo presentation – project structure, layouts, separation of ui and rest of app, fragments versus views.
Source code for Switch Fragment Demo – zip of Eclipse project; runs on Android API level 10 and up.