Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Create and Distribute Your Own Custom View Library

Create and Distribute Your Own Custom View Library

Esa Firman

May 04, 2018
Tweet

More Decks by Esa Firman

Other Decks in Programming

Transcript

  1. Cara buat custom views 1. Compound View Mengkombinasikan View dan

    Viewgroup yang sudah ada menjadi satu komponen, ex: Support Lib’s TextInputLayout 2. (True) Custom View Custom rendered-view, you draw your view yourself! Biasanya berurusan sama yang namanya Canvas
  2. Cara upload ke jitpack 1. Pastikan repository sudah di push

    ke GitHub 2. Tambahkan url "https://jitpack.io" pada maven repo gradle kalian 3. Buat Tag release pada GitHub 4. Masuk ke Jitpack dengan akun GitHub > Pilih Repository > Get It 5. Hasilnya allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } dependencies { implementation 'com.github.User:Repo:Version' }