【第15回】potatotips(iOS/Android開発Tips共有会) http://connpass.com/event/12140/
でLTした内容です。
7JFXͷڞ௨Խํ๏·ͱΊʢʣQPUBUPUJQTখ༟հ
View Slide
!LPOJGBSw "OESPJE࡞ͬͯ·͢ɻw ಙౡݝࠤಹՏଜग़ɻ 4BOTBOਆࢁΦϑΟεͷྡͷଜ
5BQUSJQw IUUQBQQNBSLFUJOHMBCPOFUUBQUSJQ
7JFXͷڞ௨Խํ๏ EJNFOTYNMɺDPMPSTYNM ESBXBCMFYNM TUZMFTYNM JODMVEF $VTUPN7JFX
7JFXͷڞ௨Խํ๏ EJNFOTYNMɺDPMPSTYNM ESBXBCMFYNM TUZMFTYNM JODMVEF $VTUPN7JFXˡࠓ͜͜ͷ
TUZMFTYNMandroid:textColor="@color/grey600"android:gravity="center_vertical"android:layout_width="match_parent"android:layout_height="wrap_content"android:maxLines="2"android:textSize="@dimen/text_small"/>
TUZMFTYNMstyle="@style/TextSub"android:layout_width="match_parent"android:layout_height="wrap_content"/><br/><item name="android:textSize">@dimen/text_small</item><br/><item name="android:textColor">@color/grey600</item><br/><item name=“android:gravity">center_vertical</item><br/><item name="android:maxLines">2</item><br/>
TUZMFTYNM<br/><item name="android:textSize">@dimen/text_medium</item><br/><br/><item name="android:textSize">@dimen/text_small</item><br/><item name="android:textColor">@color/grey600</item><br/><item name=“android:gravity">center_vertical</item><br/><item name="android:maxLines">2</item><br/>
TUZMFTYNMTUZMFTෳͷYNMʹ͚ͯཧͨ͠ํ͕͍͍͔͠Ε·ͤΜྫ[email protected]ɺ[email protected]!ৄ͘͠<༁>BOESPJECFTUQSBDUJDFΛࢀরɻIUUQRJJUBDPNLHNZTIJOJUFNTBE⒎CDE
JODMVEFandroid:layout_width="match_parent"android:layout_height=“wrap_content”>!!android:layout_width="match_parent"android:layout_height="wrap_content">!
JODMVEFandroid:layout_width="match_parent"android:layout_height=“wrap_content”>!!!7JFXͷωετ͕ଟ͘ͳΓ͕ͪͳͷͰɺNFSHFͷ͍ํΛ͓֮͑ͯ͘ͱΑ͍ɻ㱺8IBUJTUIFQVSQPTFPG"OESPJETUBHJO9.-MBZPVUT
$VTUPN7JFXandroid:layout_width="match_parent"android:layout_height="wrap_content">!android:id="@+id/triangle"android:background=“@drawable/left_triangle"… />!android:id=“@+id/txt_balloon" android:background="@drawable/bg_word_balloon"… />!
$VTUPN7JFXandroid:id="@+id/balloon_word"android:layout_width="match_parent"android:layout_height=“wrap_content" />
$VTUPN7JFXpublic class WordBalloonView extends RelativeLayout {...public WordBalloonView(Context context, AttributeSet attrs) {super(context, attrs);inflate(context, R.layout.ui_word_balloon, this);ButterKnife.inject(this);!TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.WordBalloonView);try {balloonText = a.getString(R.styleable.WordBalloonView_balloonText);} finally {a.recycle();}!mTxtBalloon.setText(balloonText);}!public void setBalloonText(String balloonText) {mTxtBalloon.setText(balloonText);}}
$VTUPN7JFX$VTUPN7JFXᇪༀɻաͳڞ௨ԽʹΑΔ$VTUPN7JFXཚཱʹҙ
·ͱΊEJNFOTYNM DPMPSTYNMESBXBCMFYNMԿग़ͯ͘ΔϨΠΞτ͔JODMVEF$VTUPN7JFXෳͷ7JFXͰߏ͞Ε͍ͯΔ͔ϩδοΫؚ͕·ΕΔ͔ϨΠΞτYNMʹهड़/P:FT/P:FT/P:FTσβΠϯʹ߹Θͤͯ༻TUZMFTYNM $VTUPN7JFX
͋Γ͕ͱ͏͍͟͝·ͨ͠٩ ๑❛ᴗ❛๑۶גࣜձࣾحฌୂΤϯδχΞେืूதͰ͢