O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

What’s new for Android Developers in 2015 - Material Design, Android Studio, Gradle

2.699 visualizações

Publicada em

This is the slide used by Kamal of Travancore Analytics for his session on "What’s new for Android Developers in 2015"

Material Design
Android Studio
Gradle

Publicada em: Tecnologia
  • I like this service ⇒ www.HelpWriting.net ⇐ from Academic Writers. I don't have enough time write it by myself.
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • Don't forget another good way of simplifying your writing is using external resources (such as ⇒ www.HelpWriting.net ⇐ ). This will definitely make your life more easier
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • One of the key benefits of ⇒ www.HelpWriting.net ⇐ clients is that you communicate with writer directly and manage your order personally.
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui

What’s new for Android Developers in 2015 - Material Design, Android Studio, Gradle

  1. 1. KAMAL K KISHORE 29-Apr-2015 & What’s new in
  2. 2. Material Design
  3. 3. Material Theme • @android:style/Theme.Material (dark version) • @android:style/Theme.Material.Light (light version) • @android:style/Theme.Material.Light.DarkActionBar
  4. 4. Customizing • colorPrimary • textColorPrimary • colorPrimaryDark • windowBackground • navigationBarColor
  5. 5. Customizing <?xml version="1.0" encoding="UTF-8"?> <resources> <!-- inherit from the material theme --> <style name="AppTheme" parent="android:Theme.Material“> <!-- Main theme colors --> <!-- your app branding color for the app bar --> <item name="android:colorPrimary">@color/primary</item> <!-- darker variant for the status bar and contextual app bars  <item name="android:colorPrimaryDark">@color/primary_dark</item> <!-- theme UI controls like checkboxes and text fields  <item name="android:colorAccent">@color/accent</item> </style> </resources>
  6. 6. • A different theme • New widgets for complex views • New API’s for Custom shadows and animations Elements of Material Design
  7. 7. Lists <!-- A RecyclerView with some commonly used attributes --> <android.support.v7.widget.RecyclerVie w android:id="@+id/my_recycler_view“ android:scrollbars="vertical“ android:layout_width="match_parent" android:layout_height="match_parent"/ > public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewH older> dependencies { compile 'com.android.support:recyclerview- v7:21.0.+‘ }
  8. 8. Cards <android.support.v7.widget.CardView xmlns:card_view="http://schemas.andr oid.com/apk/res-auto" android:id="@+id/card_view" android:layout_gravity="center" android:layout_width="200dp" android:layout_height="200dp" card_view:cardCornerRadius="4dp"> card_view:cardCornerRadius card_view:cardBackgroundColor dependencies { compile 'com.android.support:cardview- v7:21.0.+' }
  9. 9. View Shadows • The Z property – android:elevation attribute
  10. 10. Clip Views • Transforming shape of a view – android:clipToOutline
  11. 11. Animations
  12. 12. Vector Drawables • Drawable tinting – android:tint – android:tintMode • Prominent color extraction – Palette.getVibrantColor • Vector drawables – <vector > – <path android:fillColor="#8fff" – android:pathData=…. – </vector >
  13. 13. Defining Custom Animations • Touch feedback • Circular Reveal • Activity transitions • Curved motion • View state changes
  14. 14. Reveal Effect • create the animator for this view (the start radius is zero) • Animator anim = ViewAnimationUtils.createCircularRev eal(myView, cx, cy, 0, finalRadius); • make the view visible and start the animation • myView.setVisibility(View.VISIBLE); • anim.start();
  15. 15. Compatibility • Using styles – Define a theme that inherits from an older theme (like Holo) in res/values/styles.xml. – Define a theme with the same name that inherits from the material theme in res/values-v21/styles.xml. – Set this theme as your app's theme in the manifest file.
  16. 16. Compatibility • Using layouts – res/layout-v21/ – res/layout/ • Using Support Library v7-21 – Some system widgets when you apply one of the Theme.AppCompat themes. – Color palette theme attributes in the Theme.AppCompat themes. – The RecyclerView widget to display data collections. – The CardView widget to create cards. – The Palette class to extract prominent colors from images.
  17. 17. google.com/design
  18. 18. What is Gradle? • Gradle is an advanced build toolkit that manages dependencies and allows you to define custom build logic. • This means that you can build your Android apps from which Android Studio and from the command line on your machine or on machines where Android Studio is not installed. • The build files are called build.gradle, and they are plain text files that use Groovy syntax
  19. 19. Why Gradle? • The Gradle build system is designed to support complex scenarios in creating Android applications. – Multi-distribution: the same application must be customized for several clients or companies – Multi-apk: supporting the creation of multiple apk for different device types while reusing parts of the the code
  20. 20. Using Gradle to build different variants • applying plugin – apply plugin: 'com.android.application‘ • setting defaultConfig – applicationId, minSdkVersion, targetSdkVersion, versionCode, versionName • setting buildTypes – proguardFiles, minifyEnabled
  21. 21. Using Gradle to build different variants • adding productFlavors – sets applicationId & versionName for different flavors (like paid, free etc.) • adding dependencies – Module dependency - compile project(":lib") – Remote binary dependency - compile 'com.android.support:appcompat-v7:19.0.1' – Local binary dependency - compile fileTree(dir: 'libs', include: ['*.jar'])
  22. 22. gradle.org
  23. 23. Thank you

×