Download presentation
Presentation is loading. Please wait.
Published byAngel Golden Modified over 8 years ago
1
Android intro Building UI #1: basics
2
UI layout.xml Controls Layouts AdapterViews Toasts dp/sp/px Animations 2
3
layout.xml xmlns (app for custom attrs, tools for design) onClick 3
4
Controls Button/ToggleButton EditText ImageView/ImageButton Spinner Picker Radio CheckBox 4
5
Layouts FrameLayout LinearLayout (http://android.amberfog.com/?p=328) RelativeLayout PercentLayout (support) GridLayout (support) CardView (support) 5
6
AdapterViews ListView GridView Spinner RecyclerView ViewPager 6
7
Toasts Short/long.show() Snackbar (support) Should not be customized 7
8
dp/sp/px mdpi/hdpi/xhdpi/xxhdpi/xxxhdpi/xxxxhdpi dp x 1 : 1.5 : 2 : 3 : 4 : 6 = px HVGA/WVGA(S2)/HD(S3)/FHD(S4)/QHD(S6)/4 k sp – fonts dp==dip 8
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.