1 / 11

การลงสีแบบไล่โทนสี

การลงสีแบบไล่โทนสี. ง 30217 การเขียนโปรแกรมบนระบบไร้สาย. การไล่โทนสี. 1. กำหนดในขณะออกแบบ 2. เขียนคำสั่ง JAVA สั่งให้ลงสีแบบ Gradient. กำหนดในขณะออกแบบ. ไปที่ esdrawable-dhpi คลิ๊กขวาที่ drawable-dhpi แล้วเลือก new->other. กำหนดในขณะออกแบบ. กำหนดในขณะออกแบบ.

waylon
Download Presentation

การลงสีแบบไล่โทนสี

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. การลงสีแบบไล่โทนสี ง30217 การเขียนโปรแกรมบนระบบไร้สาย

  2. การไล่โทนสี • 1. กำหนดในขณะออกแบบ • 2. เขียนคำสั่ง JAVA สั่งให้ลงสีแบบ Gradient

  3. กำหนดในขณะออกแบบ • ไปที่ \res\drawable-dhpi • คลิ๊กขวาที่ drawable-dhpi แล้วเลือก new->other

  4. กำหนดในขณะออกแบบ

  5. กำหนดในขณะออกแบบ

  6. กำหนดในขณะออกแบบ

  7. เขียนคำสั่งในไฟล์ bggradient.xml

  8. กำหนดสี • หากต้องการไล่สีให้กำหนดที่ปุ่ม …

  9. กำหนดสี • หากต้องการไล่สีให้คลิ๊กขวาที่พื้นหลังแล้วเลือก • Edit background … • ไปที่ drawable -> ชื่อไฟล์ xml • ในที่นี้คือ drawable->bggradient.xml

  10. กำหนดสี

  11. ผลที่ได้

More Related