August 2016
Intermediate to advanced
360 pages
8h 44m
English
Or, Building a Conversion Interface
We’ve got a solid foundation in place for getting data to and from the API. Now let’s get into building an interface for the app.
To allow the user to be able to do the conversion of one currency to another, we’ll need an interface. Android’s interface definition is done mostly in XML, with sensible layout language and a very powerful system for dealing with device differences. Let’s start by building a form for the user to specify two currencies and convert an amount in one to an amount in the other.
The activity_convert.xml layout is the view that ConvertActivity manages. Here’s the first line of input fields for currencies. ...
Read now
Unlock full access