Android Session 6 - UI Part 1

  • View
    248

  • Download
    0

  • Category

    Career

Preview:

Citation preview

AndroidSession 6 - UI

Previous Sessions

Permissions

UI Components - ScrollView and ListView

Today’s agenda

ListView - more customization, GridView

More UI - CheckBox, ProgressBar, Pickers

...and Some more UI - WebView, Dialogs

ListView - Customization

ListView - Customization

Add ImageView, Buttons and other views in rows.

Change background, font sizes, font colors etc.

Add animations.

Animations

ListView - getView()

Inflate row layout

Get reference to the UI components in the row view (TextViews, ImageViews, Buttons)

Get the Item Object to be used for the row using ‘position’.

Fill the data from Object in the row views.

***

More UI - CheckBox

More UI - ProgressBar

More UI - Date Picker and Time Picker

WebView

To show HTML content in app.

To show a website url in your app.

Acts as a mini browser embedded in the app.

Dialogs

Dialogs

Dialogs

To show alert messages to user.

To ask for user confirmation before doing some critical task.

To ask user to select an option from given options.

***

Why Good UI is Important

Smooth performance.

Attracts users and keeps them.

Does not irritate users.

Does what is expected.

Hardware

Camera

GPS

Speakers/ Audio Jack

Mic

Screen

Charging point/ usb port

Power Button

Wi-fi

Hardware

Volume Button

Battery

Sensors

● Light sensor

● Proximity sensor

● Motion sensors - accelerometer, gravity sensors

● Orientation sensors

Finger scanner

About Me

Paramvir Singh, Android Developer and Trainer

paramvir.singh88@gmail.com

https://in.linkedin.com/in/paramvir-singh-android-developer-b45b5321