Presentation is loading. Please wait.

Presentation is loading. Please wait.

Jozef Goetz 2016 1 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved 1 Credits: Copyright  2092-2016 Pearson Education, Inc. All rights.

Similar presentations


Presentation on theme: "Jozef Goetz 2016 1 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved 1 Credits: Copyright  2092-2016 Pearson Education, Inc. All rights."— Presentation transcript:

1

2 Jozef Goetz 2016 1 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved 1 Credits: Copyright  2092-2016 Pearson Education, Inc. All rights reserved. expanded by J. Goetz, 2016

3 Jozef Goetz 2016 2 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

4 Jozef Goetz 2016 3 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

5 Jozef Goetz 2016 4 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

6 Jozef Goetz 2016 5 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

7 Jozef Goetz 2016 6 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Activities, services, content providers, broadcast receivers  Activity class (package android.app )

8 Jozef Goetz 2016 7 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Activity lifecycle  Active—visible and has focus  Paused—visible and does not have the focus  Stopped—not visible, could be killed by the OS

9 Jozef Goetz 2016 8 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Activity Lifecycle methods  onCreate —app starting, GUI about to be displayed  onStart,  onPause,  onRestart,  onResume,  onStop,  onDestroy  Must call superclass versions  http://developer.android.com/reference/android/app/Activit y.html http://developer.android.com/reference/android/app/Activit y.html

10 Jozef Goetz 2016 9 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Challenge developers face—backward compatibility  Android Support Library  Enable you to use newer Android features in apps targeting current and past Android platforms  AppCompat library  Provide an app bar (formerly the action bar) and more on devices running Android 2.1 (API 7) and higher

11 Jozef Goetz 2016 10 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Android Studio app templates use AppCompatActivity  Indirect subclass of Activity   Some Android features are not available in earlier Android versions, even if you use the AppCompat libraries  http://developer.android.com/tools/support-library http://developer.android.com/tools/support-library

12 Jozef Goetz 2016 11 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  GridLayout (package android.widget )  Android 4 (API level 14)  Android Support Library contains version for earlier platforms  Layout editor and Component Tree window  EditText (package android.widget )  SeekBar (package android.widget )  0-100 by default

13 Jozef Goetz 2016 12 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  NumberFormat (package java.text )  Locale-specific currency and percentage  TextWatcher Interface (package android.text )  SeekBar.OnSeekBarChangeListener interface (package android.widget )

14 Jozef Goetz 2016 13 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Theme—Look-and-feel consistent with Android  Android 5+ projects use Material Design themes  “light”—white app bar, white app background, black/dark grey text  “light” theme with a dark app bar —app bar is black with white text by default  “dark”—black app bar, dark gray app background, white/light gray text

15 Jozef Goetz 2016 14 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Theme.Material (Android 5+) and Theme.AppCompat (Android 2.1+) versions  Theme.AppCompat.Light.DarkActionBar  Apps that use the AppCompat libraries must use AppCompat themes  http://www.google.com/design/spec/style/color.ht ml#color-themes http://www.google.com/design/spec/style/color.ht ml#color-themes  http://developer.android.com/training/material/the me.html http://developer.android.com/training/material/the me.html

16 Jozef Goetz 2016 15 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Material design guidelines  Objects should cast shadows as in the real world  elevation property  Android automatically casts a shadow for that view  Larger values result in more pronounced shadows  Recommendations for various views  http://www.google.com/design/spec/what-is- material/elevationshadows.html http://www.google.com/design/spec/what-is- material/elevationshadows.html

17 Jozef Goetz 2016 16 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Customize a theme’s colors (e.g., to match a company’s branding)  Material design color guidelines  primary color—with no more than three hues (shades)  accent color  http://www.google.com/design/spec/style/color.html http://www.google.com/design/spec/style/color.html  Primary colors —status bar, app bar  Accent color tints views — SeekBar, CheckBox, RadioButton

18 Jozef Goetz 2016 17 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  Android Studio’s Theme Editor  Recommended sample color swatches  http://www.google.com/design/spec/style/color.html#color- colorpalette http://www.google.com/design/spec/style/color.html#color- colorpalette  Palette color recommendations  http://www.materialpalette.com/ http://www.materialpalette.com/

19 Jozef Goetz 2016 18 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved Tip Calculator Technologies Overview  AndroidManifest.xml  Soft keyboard  Orientation

20 Jozef Goetz 2016 19 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

21 Jozef Goetz 2016 20 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

22 Jozef Goetz 2016 21 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

23 Jozef Goetz 2016 22 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

24 Jozef Goetz 2016 23 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

25 Jozef Goetz 2016 24 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

26 Jozef Goetz 2016 25 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

27 Jozef Goetz 2016 26 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

28 Jozef Goetz 2016 27 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

29 Jozef Goetz 2016 28 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

30 Jozef Goetz 2016 29 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

31 Jozef Goetz 2016 30 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

32 Jozef Goetz 2016 31 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved

33 Jozef Goetz 2016 32 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved


Download ppt "Jozef Goetz 2016 1 © Copyright 1992-2016 by Pearson Education, Inc. All Rights Reserved 1 Credits: Copyright  2092-2016 Pearson Education, Inc. All rights."

Similar presentations


Ads by Google