Skip to content

Instantly share code, notes, and snippets.

@klaaspieter
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaaspieter/8936339 to your computer and use it in GitHub Desktop.
Save klaaspieter/8936339 to your computer and use it in GitHub Desktop.

Activity / fragment layout for the Karma Android app

I'm new to Android development and through trial and error in the past week I've come up with the hereafter described layout for the Karma app. If you're an Android developer I would love to know what you think and how I can improve. For context this is what the app looks like in it's two most important states, connected and disconnected.

You'll notice that both states share a custom background color, the signal strength label, the user's balance and the ssid. This is what I have right now in terms of Activities / Fragments:

  • MainActivity
  • TextualStatusFragment
  • VisualDisconnectedStatusFragment or VisualDisconnectedStatusFragment

Furthermore the MainActivity will host several UI-less activities responsible for updating the signal strength, user and ssid.

Again I'm new to Android development and simply looking for feedback. If you have a better way of doing this please let me know. No seriously I can handle it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment