7. Drawable Resources in mobile app development

23 views 6 slides May 29, 2024
Slide 1
Slide 1 of 6
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6

About This Presentation

Drawable resources in mobile app development


Slide Content

Drawable resources Mobile Application Development

Drawable resources A drawable resource is a general concept for a graphic ( images or icons or vector assests ) that can be drawn to the screen. It can be applied to another XML resource with attributes such as  android: drawable   android: icon . android: src etc. We can directly drag and drop or copy paste images in the drawable .

Drawable resources Location Open project Window  app  res  drawable

Adding vector assets in drawable Step 2: right-clicking on the drawable folder  New  Vector Asset . 1 2 3 4

Adding vector assets in drawable In Step 2, when you right-clicking on the drawable folder  New  Vector Asset. The window [Configure Vector Asset] will appear. Here you can add Clip art or Local files . 1. Click Clip Art 2. Select icon 3. Click Ok 4. Click Next 1 2 3 4

Adding vector assets in drawable The icons will be added In the drawable folder.