1 / 8

Font

Font. Giới thiệu. Font mặc định : DroidSans.ttf Ưu điểm : Khá chuẩn , đẹp Font cho ứng dụng android có hỗ trợ cả tiếng việt và không. Lấy font. Trong thư mục asset, tạo 1 thư mục fonts Tìm font copy vào thư mục font này Lấy font để set:

lavina
Télécharger la présentation

Font

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. Font

  2. Giớithiệu • Font mặcđịnh: DroidSans.ttf • Ưuđiểm: Kháchuẩn, đẹp • Font choứngdụng android cóhỗtrợcảtiếngviệtvàkhông.

  3. Lấy font • Trongthưmục asset, tạo 1 thưmục fonts • Tìm font copy vàothưmục font này • Lấy font để set: Typeface myNewFace = Typeface.createFromAsset(getAssets(), "fonts/VNARABIAH.TTF");

  4. Set font • Tạo 1 đốitượngkiểu Typeface • SauđógọiphươngthứcsetTypefacechođốitượngnhư: TextView, EditText, …

  5. Lưu ý • Nhiều font khônghỗtrợtiếngviệt • Kiểmtraứngdụngthuộcloạinàotrướckhi set font

  6. ToGGELButTOn

  7. Giớithiệu • Là 1 Button • Có 1 đènsáng • Hiểnthị text tươngứngvới check and uncheck

  8. Cácđặctính • <ToggleButton • android:id="@+id/alrm" • android:layout_width="150dp" • android:layout_height="wrap_content“ • android:gravity="center" • android:textOff="Off" • android:textOn="On" />

More Related