SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Downloaden Sie, um offline zu lesen
Android Design Support Library
Ibnu Sina Wardy
Google Dev Expert: Android
About	
  Me	
  
Ibnu Sina Wardy
Google Developer Expert, Android
CEO of PT GITS Indonesia (gits.co.id)
Ibnu Sina Wardy
Google Developer Expert, Android
CEO of PT GITS Indonesia
Floating Action Button
Text Input Layout
Snackbar
Tab
Progress: 1%
Coordinator Layout
Navigation View
Floating Action Button
Floating Action Button
Floating Action Button
Floating action button redlines Mini floating action button redlines
Floa,ng	
  Ac,on	
  Bu1on	
  
•  Round button for a primary action on your interface
•  The color of this button is set in colorAccent from
your theme.
Floating Label
Floating Label
Hint Problem
Floating Label
When the user engages with the text input
field,
the floating inline labels move to float
above the field.
Floating Label
TextInputLayout
Snackbar
Snackbar
Providing lightweight, quick feedback about an operation
Snackbars are shown on the bottom of the screen and contain text
with an optional single action
Users can swipe them away before the timeout
They automatically time out after the given time length by
animating off the screen.
Snackbar
Snackbar
Tabs
Tabs
•  Implements both fixed tabs as well as
scrollable tabs
•  Tabs can be added programmatically.
Tabs
Tab Layout
Coordinator Layout
Coordinator Layout
provides additional level of control
over touch events between child
views.
CoordinatorLayout with FloatingActionButton & Snackbar
•  CoordinatorLayout resolve the issue of snackbar
displaying over the FloatingActionButton.
•  FloatingActionButton automatically moves upward
as the snackbar animates in and returns to its
position when the snackbar hides.
•  CoordinatorLayout enables user to swipe snackbar
away before the timeout.
CoordinatorLayout with FloatingActionButton & Snackbar
CoordinatorLayout with AppBarLayout
•  AppBarLayout allows your Toolbar and other views (such
as tabs provided by TabLayout) to react to scroll events in
a sibling view.
•  the AppBarLayout can respond to those events by using
the children’s scroll flags.
•  Toolbar reacts to scroll events in a sibling view
app:layout_scrollFlags="scroll|enterAlways"
•  TabLayout remains pinned to the top of the screen while
Toolbar view collapses.
•  includes a layout with CardView views
<android.support.design.widget.CoordinatorLayout	
  
android:layout_height="match_parent"	
  
	
  	
  	
  	
  android:layout_width="match_parent">	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  
	
  	
  	
  	
  <android.support.design.widget.AppBarLayout	
  
android:layout_width="match_parent"	
  
	
  	
  	
  	
  	
  	
  	
  	
  android:layout_height="wrap_content”>	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  <android.support.v7.widget.Toolbar	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:layout_width="match_parent"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:layout_height="?a1r/ac,onBarSize"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:background="?a1r/colorPrimary"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  app:layout_scrollFlags="scroll|enterAlways"/>	
  
	
  	
  	
  	
  	
  
	
  	
  	
  	
  </android.support.design.widget.AppBarLayout>	
  
	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  <!-­‐-­‐	
  Your	
  Scrollable	
  View	
  -­‐-­‐>	
  
	
  	
  	
  	
  ………………	
  
	
  	
  	
  	
  	
  
	
  	
  	
  	
  <android.support.design.widget.Floa,ngAc,onBu1on	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:layout_width="wrap_content"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:layout_height="wrap_content"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:src="@drawable/ic_ac,on_loca,on_found"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:layout_marginBo1om="20dp"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:layout_marginRight="20dp"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  android:layout_gravity="bo1om|right"	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  app:fabSize="normal"	
  />	
  
	
  	
  	
  	
  	
  
</android.support.design.widget.CoordinatorLayout>	
  
CoordinatorLayout with FloatingActionButton &
Snackbar
CoordinatorLayout with AppBarLayout & TabLayout
CoordinatorLayout with AppBarLayout & TabLayout
CollapsingToolbarLayout
•  CollapsingToolbarLayout to ensure that
the Toolbar itself remains pinned to the
top of the screen while the view collapses.
•  Toolbar title will automatically appear
larger when the layout is fully visible, then
transition to its default size as it is
collapsed.
CollapsingToolbarLayout
CollapsingToolbarLayout
Navigation View
Navigation View
•  NavigationView makes adding navigation drawer to your app easier
than before.
•  You can inflate your navigation items through a menu resource.
•  NavigationView should go inside DrawerLayout.
•  app:headerLayout attribute controls the (optional) layout used for the
header.
•  app:menu attribute is the menu resource for the navigation items
(which can also be updated at runtime).
Navigation View
Navigation View
References
•  Google Design http://www.google.com/design/
•  Android Developers Blog
http://android-developers.blogspot.com/
2015/05/android-design-support-library.html
•  HMKCode
http://hmkcode.com/material-design-app-
android-design-support-library-appcompat/
Topic: Android Design Support Library
Ibnu Sina Wardy
Google Dev Expert (ID): Android
ibnu.wardy@gmail.com
Terima Kasih.

Weitere ähnliche Inhalte

Was ist angesagt?

01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgetsSiva Kumar reddy Vasipally
 
12. Android Basic Google Map
12. Android Basic Google Map12. Android Basic Google Map
12. Android Basic Google MapOum Saokosal
 
Advance Android application development workshop day 2
Advance Android application development workshop day 2Advance Android application development workshop day 2
Advance Android application development workshop day 2cresco
 
2011 08-24 mobile web app
2011 08-24  mobile web app2011 08-24  mobile web app
2011 08-24 mobile web appSholto Maud
 
Desenvolver para Chromecast
Desenvolver para ChromecastDesenvolver para Chromecast
Desenvolver para ChromecastPedro Veloso
 
Android Layout
Android LayoutAndroid Layout
Android Layoutmcanotes
 
4.preference management
4.preference management 4.preference management
4.preference management maamir farooq
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14Vivek chan
 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfacesC.o. Nieto
 
Designing and implementing_android_uis_for_phones_and_tablets
Designing and implementing_android_uis_for_phones_and_tabletsDesigning and implementing_android_uis_for_phones_and_tablets
Designing and implementing_android_uis_for_phones_and_tabletsTeddy Koornia
 

Was ist angesagt? (20)

01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgets
 
Chapter 10 - Views Part 2
Chapter 10 - Views Part 2Chapter 10 - Views Part 2
Chapter 10 - Views Part 2
 
Hierarchy viewer
Hierarchy viewerHierarchy viewer
Hierarchy viewer
 
01 08 - graphical user interface - layouts
01  08 - graphical user interface - layouts01  08 - graphical user interface - layouts
01 08 - graphical user interface - layouts
 
12. Android Basic Google Map
12. Android Basic Google Map12. Android Basic Google Map
12. Android Basic Google Map
 
Advance Android application development workshop day 2
Advance Android application development workshop day 2Advance Android application development workshop day 2
Advance Android application development workshop day 2
 
Android layouts
Android layoutsAndroid layouts
Android layouts
 
Basic Android Layout
Basic Android LayoutBasic Android Layout
Basic Android Layout
 
2011 08-24 mobile web app
2011 08-24  mobile web app2011 08-24  mobile web app
2011 08-24 mobile web app
 
Desenvolver para Chromecast
Desenvolver para ChromecastDesenvolver para Chromecast
Desenvolver para Chromecast
 
Android Layout
Android LayoutAndroid Layout
Android Layout
 
Android Widget
Android WidgetAndroid Widget
Android Widget
 
Android best practices
Android best practicesAndroid best practices
Android best practices
 
Google Maps in Android
Google Maps in AndroidGoogle Maps in Android
Google Maps in Android
 
4.preference management
4.preference management 4.preference management
4.preference management
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14
 
Activity
ActivityActivity
Activity
 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfaces
 
Designing and implementing_android_uis_for_phones_and_tablets
Designing and implementing_android_uis_for_phones_and_tabletsDesigning and implementing_android_uis_for_phones_and_tablets
Designing and implementing_android_uis_for_phones_and_tablets
 
Android development session 3 - layout
Android development   session 3 - layoutAndroid development   session 3 - layout
Android development session 3 - layout
 

Ähnlich wie Android Design Support Library

EIA 2015 Creating Apps with Android Material Design
EIA 2015 Creating Apps with Android Material DesignEIA 2015 Creating Apps with Android Material Design
EIA 2015 Creating Apps with Android Material DesignEuropean Innovation Academy
 
Migrating a large scale banking app to compose
Migrating a large scale banking app to composeMigrating a large scale banking app to compose
Migrating a large scale banking app to composeFatih Giris
 
User experience and interactions design
User experience and interactions design User experience and interactions design
User experience and interactions design Rakesh Jha
 
Application Development - Overview on Android OS
Application Development - Overview on Android OSApplication Development - Overview on Android OS
Application Development - Overview on Android OSPankaj Maheshwari
 
Getting Started With Material Design
Getting Started With Material DesignGetting Started With Material Design
Getting Started With Material DesignYasin Yildirim
 
android layouts
android layoutsandroid layouts
android layoutsDeepa Rani
 
Lecture 5 _ Building Layouts (1).pptx
Lecture 5 _ Building Layouts (1).pptxLecture 5 _ Building Layouts (1).pptx
Lecture 5 _ Building Layouts (1).pptxssuser0ee7de1
 
Android JetPack: easy navigation with the new Navigation Controller
Android JetPack: easy navigation with the new Navigation ControllerAndroid JetPack: easy navigation with the new Navigation Controller
Android JetPack: easy navigation with the new Navigation ControllerLeonardo Pirro
 
Android ActionBar Navigation reloaded
Android ActionBar Navigation reloadedAndroid ActionBar Navigation reloaded
Android ActionBar Navigation reloadedDominik Helleberg
 
03.Controls in Windows Phone
03.Controls in Windows Phone03.Controls in Windows Phone
03.Controls in Windows PhoneNguyen Tuan
 
Android ui patterns
Android ui patternsAndroid ui patterns
Android ui patternsMobile March
 
Android ui patterns
Android ui patternsAndroid ui patterns
Android ui patternsvpulec
 
Fragments: Why, How, What For?
Fragments: Why, How, What For?Fragments: Why, How, What For?
Fragments: Why, How, What For?Brenda Cook
 
Make your app dance with MotionLayout
Make your app dance with MotionLayoutMake your app dance with MotionLayout
Make your app dance with MotionLayouttimmy80713
 
Android Erası 2 - UI və layoutlar
Android Erası 2 - UI və layoutlarAndroid Erası 2 - UI və layoutlar
Android Erası 2 - UI və layoutlarOrkhan Ahmadov
 
WMP_MP02_revd(10092023).pptx
WMP_MP02_revd(10092023).pptxWMP_MP02_revd(10092023).pptx
WMP_MP02_revd(10092023).pptxfahmi324663
 

Ähnlich wie Android Design Support Library (20)

EIA 2015 Creating Apps with Android Material Design
EIA 2015 Creating Apps with Android Material DesignEIA 2015 Creating Apps with Android Material Design
EIA 2015 Creating Apps with Android Material Design
 
Migrating a large scale banking app to compose
Migrating a large scale banking app to composeMigrating a large scale banking app to compose
Migrating a large scale banking app to compose
 
User experience and interactions design
User experience and interactions design User experience and interactions design
User experience and interactions design
 
06 UI Layout
06 UI Layout06 UI Layout
06 UI Layout
 
Prototyping + User Journeys
Prototyping + User JourneysPrototyping + User Journeys
Prototyping + User Journeys
 
Application Development - Overview on Android OS
Application Development - Overview on Android OSApplication Development - Overview on Android OS
Application Development - Overview on Android OS
 
Getting Started With Material Design
Getting Started With Material DesignGetting Started With Material Design
Getting Started With Material Design
 
android layouts
android layoutsandroid layouts
android layouts
 
Lecture 5 _ Building Layouts (1).pptx
Lecture 5 _ Building Layouts (1).pptxLecture 5 _ Building Layouts (1).pptx
Lecture 5 _ Building Layouts (1).pptx
 
Android JetPack: easy navigation with the new Navigation Controller
Android JetPack: easy navigation with the new Navigation ControllerAndroid JetPack: easy navigation with the new Navigation Controller
Android JetPack: easy navigation with the new Navigation Controller
 
Ui 5
Ui   5Ui   5
Ui 5
 
Android ActionBar Navigation reloaded
Android ActionBar Navigation reloadedAndroid ActionBar Navigation reloaded
Android ActionBar Navigation reloaded
 
03.Controls in Windows Phone
03.Controls in Windows Phone03.Controls in Windows Phone
03.Controls in Windows Phone
 
Android ui patterns
Android ui patternsAndroid ui patterns
Android ui patterns
 
Android ui patterns
Android ui patternsAndroid ui patterns
Android ui patterns
 
Fragments: Why, How, What For?
Fragments: Why, How, What For?Fragments: Why, How, What For?
Fragments: Why, How, What For?
 
Make your app dance with MotionLayout
Make your app dance with MotionLayoutMake your app dance with MotionLayout
Make your app dance with MotionLayout
 
Android Erası 2 - UI və layoutlar
Android Erası 2 - UI və layoutlarAndroid Erası 2 - UI və layoutlar
Android Erası 2 - UI və layoutlar
 
Android programming basics
Android programming basicsAndroid programming basics
Android programming basics
 
WMP_MP02_revd(10092023).pptx
WMP_MP02_revd(10092023).pptxWMP_MP02_revd(10092023).pptx
WMP_MP02_revd(10092023).pptx
 

Kürzlich hochgeladen

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Android Design Support Library

  • 1. Android Design Support Library Ibnu Sina Wardy Google Dev Expert: Android
  • 2. About  Me   Ibnu Sina Wardy Google Developer Expert, Android CEO of PT GITS Indonesia (gits.co.id)
  • 3. Ibnu Sina Wardy Google Developer Expert, Android CEO of PT GITS Indonesia Floating Action Button Text Input Layout Snackbar Tab Progress: 1% Coordinator Layout Navigation View
  • 6. Floating Action Button Floating action button redlines Mini floating action button redlines
  • 7. Floa,ng  Ac,on  Bu1on   •  Round button for a primary action on your interface •  The color of this button is set in colorAccent from your theme.
  • 10. Floating Label When the user engages with the text input field, the floating inline labels move to float above the field.
  • 14. Snackbar Providing lightweight, quick feedback about an operation Snackbars are shown on the bottom of the screen and contain text with an optional single action Users can swipe them away before the timeout They automatically time out after the given time length by animating off the screen.
  • 17. Tabs
  • 18. Tabs •  Implements both fixed tabs as well as scrollable tabs •  Tabs can be added programmatically.
  • 19. Tabs
  • 22. Coordinator Layout provides additional level of control over touch events between child views.
  • 23. CoordinatorLayout with FloatingActionButton & Snackbar •  CoordinatorLayout resolve the issue of snackbar displaying over the FloatingActionButton. •  FloatingActionButton automatically moves upward as the snackbar animates in and returns to its position when the snackbar hides. •  CoordinatorLayout enables user to swipe snackbar away before the timeout.
  • 25. CoordinatorLayout with AppBarLayout •  AppBarLayout allows your Toolbar and other views (such as tabs provided by TabLayout) to react to scroll events in a sibling view. •  the AppBarLayout can respond to those events by using the children’s scroll flags. •  Toolbar reacts to scroll events in a sibling view app:layout_scrollFlags="scroll|enterAlways" •  TabLayout remains pinned to the top of the screen while Toolbar view collapses. •  includes a layout with CardView views
  • 26. <android.support.design.widget.CoordinatorLayout   android:layout_height="match_parent"          android:layout_width="match_parent">                                      <android.support.design.widget.AppBarLayout   android:layout_width="match_parent"                  android:layout_height="wrap_content”>                                        <android.support.v7.widget.Toolbar                        android:layout_width="match_parent"                          android:layout_height="?a1r/ac,onBarSize"                          android:background="?a1r/colorPrimary"                          app:layout_scrollFlags="scroll|enterAlways"/>                    </android.support.design.widget.AppBarLayout>                      <!-­‐-­‐  Your  Scrollable  View  -­‐-­‐>          ………………                    <android.support.design.widget.Floa,ngAc,onBu1on                          android:layout_width="wrap_content"                          android:layout_height="wrap_content"                          android:src="@drawable/ic_ac,on_loca,on_found"                          android:layout_marginBo1om="20dp"                          android:layout_marginRight="20dp"                          android:layout_gravity="bo1om|right"                          app:fabSize="normal"  />             </android.support.design.widget.CoordinatorLayout>   CoordinatorLayout with FloatingActionButton & Snackbar
  • 29. CollapsingToolbarLayout •  CollapsingToolbarLayout to ensure that the Toolbar itself remains pinned to the top of the screen while the view collapses. •  Toolbar title will automatically appear larger when the layout is fully visible, then transition to its default size as it is collapsed.
  • 33. Navigation View •  NavigationView makes adding navigation drawer to your app easier than before. •  You can inflate your navigation items through a menu resource. •  NavigationView should go inside DrawerLayout. •  app:headerLayout attribute controls the (optional) layout used for the header. •  app:menu attribute is the menu resource for the navigation items (which can also be updated at runtime).
  • 36.
  • 37. References •  Google Design http://www.google.com/design/ •  Android Developers Blog http://android-developers.blogspot.com/ 2015/05/android-design-support-library.html •  HMKCode http://hmkcode.com/material-design-app- android-design-support-library-appcompat/
  • 38. Topic: Android Design Support Library Ibnu Sina Wardy Google Dev Expert (ID): Android ibnu.wardy@gmail.com Terima Kasih.