This app has distance and weight converting features.
- It contains three activities (
MainActivity,DistanceConverterandWeightConverter) - In
MainActivitytwo cardviews are used, when clicked on these cardviews intent is called to move flow to other activities - In each of these activities two
spinnersare used to store units of measures (Kilogram,gram etc) - Values of
spinnerare stored instrings.xml ArrayAdapteris used to get the values from resourcestrings.xmlfile and set those values inspinner- Two inner classes (
FromSpinnerClassandToSpinnerClass) which implementsAdapterView.OnItemSelectedListenerare created to get the selected item from thespinner - When the convert button is clicked,
convertValues()method is called where text is fetched from the field and calculation is done
- App converts units of two measures (distance and weight)
- In distance measure, it can convert units from
Miles-Kilometer,Miles-Meter,Miles-Centimeter,Kilometer-Miles,Kilometer-Meter,Kilometer-Centimeter,Meter-Miles,Meter-Kilometer,Meter-Centimeter,Centimeter-Miles,Centimeter-Kilometer, andCentimeter-Meter - In weight measure, it can convert units from
Kilogram-Pound,Kilogram-Gram,Pound-Kilogram,Pound-Gram,Gram-KilogramandGram-Pound
- Material Design will be implemented next
