Google android 2 20110604

993 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
993
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Google android 2 20110604

  1. 1. ChinhLX<br />UI in Android<br />Thông tin tổchức<br />AITI-APTECH và VietAndroid.com phốihợptổchứcvàthựchiện<br />
  2. 2. UI<br />Google Android<br />Nội dung cungcấpbởi : www.vietandroid.com<br />Sony Ericsson UX<br />HTC Sense<br />Samsung TouchWiz<br />Moto Blue<br />
  3. 3. Twitter<br />Nội dung cungcấpbởi : www.vietandroid.com<br />
  4. 4. Custom<br />Nội dung cungcấpbởi : www.vietandroid.com<br />Layout<br />Button<br />ListView<br />
  5. 5. Custom<br />Nội dung cungcấpbởi : www.vietandroid.com<br />
  6. 6. LinkHayVietandroid<br />Nội dung cungcấpbởi : www.vietandroid.com<br />LinearLayout<br />RelativeLyout<br />
  7. 7. LinearLayout<br />Nội dung cungcấpbởi : www.vietandroid.com<br />android:layout_weight=“1”<br />
  8. 8. Google Android<br />Nội dung cungcấpbởi : www.vietandroid.com<br />RelativeLayout<br />
  9. 9. Layout<br />Nội dung cungcấpbởi : www.vietandroid.com<br /><ul><li>Dùngđơnvịdp(sp cho text) thayvìpx
  10. 10. Tránhdùngnhiều progress và dialog
  11. 11. Khôngsửdụng small font size
  12. 12. TránhdùngAbsoluteLayout</li></li></ul><li>Button<br />Button<br />ImageButton<br />ToggleButton<br />RadioButton<br />Nội dung cungcấpbởi : www.vietandroid.com<br />
  13. 13. Bảngphânloạitrạngthái button<br />Nội dung cungcấpbởi : www.vietandroid.com<br />
  14. 14. Button, ImageButton<br />Nội dung cungcấpbởi : www.vietandroid.com<br /><?xml version="1.0" encoding="utf-8"?><br /><selector xmlns:android="http://schemas.android.com/apk/res/android"><br /><item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/image1" /><br /><item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/image2" /><br /><item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/image3" /><br /><item android:drawable="@drawable/image4" /><br /> </selector><br />
  15. 15. Button<br />Nội dung cungcấpbởi : www.vietandroid.com<br />Sửdụng button nàotrongchươngtrìnhnghenhạc?<br /><ul><li>Button
  16. 16. imageButton
  17. 17. ToggleButton
  18. 18. …</li></li></ul><li>ListView<br />Nội dung cungcấpbởi : www.vietandroid.com<br />Custom view:<br />public View getView(int position, View convertView, ViewGroup parent){<br /> View item=mInflater.inflate(R.layout.list_item_icon_text, null);<br /> ((TextView) item.findViewById(R.id.text)).setText(DATA[position]);<br /> ((ImageView) item.findViewById(R.id.icon)).setImageBitmap(<br />(position&1) == 1 ? mIcon1 : mIcon2);<br />return item; <br />}<br />
  19. 19. ListView<br />Nội dung cungcấpbởi : www.vietandroid.com<br />Nên<br />android:smoothScrollbar=”false”<br />android:cacheColorHint=”#00000000”<br />Khôngnên<br />android:layout_height=”wrap_content”<br />ListViewbêntrongScrollView<br />DùngListViewnếusốlượng item ít<br />
  20. 20. Thamkhảo<br />http://www.vietandroid.com<br />http://developer.android.com<br />http://www.anddev.org<br />http://androidcore.com<br />http://stackoverflow.com/questions/tagged/android<br />Nội dung cungcấpbởi : www.vietandroid.com<br />

×