Android Community Forums - Blog Entries
Register Members List Social Groups Calendar Search Today's Posts Mark Forums Read


Go Back   Android Community Forums > Blogs


Old

Lots more apps

Posted 11-16-2009 at 12:34 AM by divestoclimb

I've released updates to all my apps in the past couple days. Too much coding! The plus side is my new checklist app, d2cchecklist, is complete and ready on the Market. This is the most complex app I've yet written, weighing in at ~5700 lines of Java code and comments (and that's after rewriting many sections at least once as I learned to do things the right way!)

This has been a great learning experience and I have lots more development tips to share, if there's interest. Some possibilities:...
Has a life!
Posted in Uncategorized
Views 96 Comments 0 divestoclimb is offline
Old

Custom view component in a DialogPreference

Posted 10-12-2009 at 11:08 PM by divestoclimb

There are several sites out there (like these) that show you how to use Android preferences, but I haven't seen anyone explain how to extend DialogPreference to get your own custom preference stored. I had to dig into the Android source to figure this out since reading Google's documentation on DialogPreference is like reading Greek!

I did this twice in Gas Mixer; once using my NumberSelector component I explained in my last posts, and also with my TrimixSelector. Because the TrimixSelector,...
Has a life!
Posted in Uncategorized
Views 375 Comments 0 divestoclimb is offline
Old

Building reusable custom views, part 2

Posted 10-11-2009 at 07:09 PM by divestoclimb

This is a continuation from my last post. This gets into the complicated, annoying parts that are the result of some limitations in the Android framework.

Internal listeners
I'll omit most of the internals of my Button OnClickListener and TextWatcher implementations, except where there's something really strange going on. For instance, how I detect whether a value change came from the user or not (which I need to pass to my ValueChangedListener) is not easy.

...
Has a life!
Posted in Uncategorized
Views 243 Comments 0 divestoclimb is offline
Old

Building reusable custom views

Posted 10-11-2009 at 06:21 PM by divestoclimb
Updated 10-11-2009 at 10:29 PM by divestoclimb

It was waaay too hard to figure all of this out, and I documented some of the solution on anddev.org, but it's pretty complex so I thought I'd lay it out step-by-step for how I built a real Spinner widget in Android.

I wanted to build a special widget class that would show an EditText and two buttons for entering numeric values. The two buttons would be plus and minus buttons, allowing the user to adjust the value in the box by a set increment. The box itself needed to have enforced...
Has a life!
Posted in Uncategorized
Views 541 Comments 5 divestoclimb is offline
Old

Gas Mixer activity

Posted 10-11-2009 at 05:22 PM by divestoclimb

I've been putting a lot of time into Gas Mixer lately! I released v 2.0 and followed it up today with 2.5.

2.0 was a nearly complete rewrite of the interface. I've removed the OpenIntents sliders and replaced them with Android SeekBars, color-coded for oxygen and helium. I also made lots of UI changes to avoid scrolling at all costs. I came to realize on a mobile platform it's just as inconvenient to have to navigate to a new screen as it is to scroll down on a long one. Support for...
Has a life!
Posted in Uncategorized
Views 156 Comments 0 divestoclimb is offline

All times are GMT -5. The time now is 10:52 PM.



Copyright © 2008-2009 Android Community / R3 Media LLC, All Rights Reserved.