Recent tips collection

054312bb8749ab2405c3c5364bc1be1e?s=47 yoppie
August 15, 2019

Recent tips collection

054312bb8749ab2405c3c5364bc1be1e?s=128

yoppie

August 15, 2019
Tweet

Transcript

  1. ࠷ۙͷTipsू

  2. yoppie Αͬͽʔ

  3. KotlinͷString 
 trimMargin() w ࠷ॳͱ࠷ޙͷۭനͱۭߦΛ࡟আ w cΑΓࠨͷۭനΛ࡟আ

  4. requireActivity() 'SBHNFOUͰHFU"DUJWJUZΛݺͿ৔߹/VMMBCMFͳͷͰɺ
 BDUJWJUZʹͳΔ

  5. requireActivity() 'SBHNFOUͰSFRVJSF"DUJWJUZΛݺͿͱ/PO/VMMͳͷͰɺ
 BDUJWJUZ͕SFRVJSF"DUJWJUZ ʹͳΔ

  6. Custom ViewͷAttribute BQQTFU*DPO5FYU!\IPHFOBNF^ BQQTFU#BDL(SPVOE!\IPHFOBNF^

  7. FragmentͷSnackbar 'SBHNFOUΛද͍ࣔͯ͠Δ"DUJWJUZͷ
 ਌ͷ7JFXΛࢦఆ͢΂͖ͩͬͨ

  8. HTMLͷtextarea෩
 EditText

  9. HTMLͷtextarea෩
 EditText <?xml version="1.0" encoding="UTF-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/bg_active" android:state_focused="true"

    /> <item android:drawable="@drawable/bg_inactive" /> </selector> <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dp" android:color="@color/colorPrimary" /> <corners android:topLeftRadius="2dp" android:topRightRadius="2dp" android:bottomLeftRadius="2dp" android:bottomRightRadius="2dp" /> </shape> <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dp" android:color="#CCCCCC" /> <corners android:topLeftRadius="2dp" android:topRightRadius="2dp" android:bottomLeftRadius="2dp" android:bottomRightRadius="2dp" /> </shape> CH@IPHFYNM
  10. HTMLͷtextarea෩
 EditText ͖ͬ͞ͷϦιʔε ࠨ্࢝·Γ ϓϨΠεϗϧμʔ ෳ਺ߦೖྗ ݟ͑Δߦ਺ͷ࠷େ஋ ϓϨΠεϗϧμʔͷ৭

  11. MediatorLiveData ผͷ-JWF%BUBΛ؂ࢹͯࣗ͠਎ͷ஋Λมߋ w FEJU5FYU w ૒ํ޲%BUB#JOEJOH w JT"CMF4VCNJU w ηʔϒதͷ৔߹GBMTF

    w ஋͕ۭͷ৔߹GBMTF
  12. ٕज़ॻయ