今時のProgress indicator / Replacing ProgressDialo...

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

今時のProgress indicator / Replacing ProgressDialog with ProgressBar

punchdrunker

October 06, 2018

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

27 slides
  1. ༻ޠͷઆ໌ ‣ ProgressDialog ‣ ͔ͭͯར༻͞Ε͍ͯͨΫϧΫϧDialogΫϥε ‣ ProgressBar ‣ ࠓ࠷΋ར༻͞Ε͍ͯͦ͏ͳΫϧΫϧΛදࣔ͢ΔΫϥε ‣

    Progress indicators ‣ Material Design Guidelineʹग़ͯ͘Δ໊শͰɺ୯ʹ ʮਐḿΛදࣔ͢Δ෦඼ʯ
  2. ࣮૷ class CustomButton(context: Context, attrs: AttributeSet?) : ConstraintLayout(context, attrs) {

    var cListener: OnClickListener? = null constructor() { ... // inflate} override fun setOnClickListener(listener: OnClickListener?) { cListener = listener } override fun dispatchTouchEvent(ev: MotionEvent): Boolean { ... // ACTION_UPͰonClickΛinvoke } // Activity͔ΒݺͿ fun toggle() { ... // visibilityߋ৽ } }
  3. FIN

More Decks by punchdrunker

Other Decks in Programming