liguofeng29’s blog

個人勉強用ブログだっす。

2016-01-06から1日間の記事一覧

AndroidのResource - Property Animation

Animatorは抽象クラスであり、通常はそのサブクラスを使用する。 サブクラス AnimatorSet ValueAnimator ObjectAnimator TimeAnimator ルート要素 <set.../> <objectAnimator.../> <animator.../> サンプルコード ① color_anim.xml </animator.../></objectanimator.../></set.../>

AndroidのResource - ClipDrawableサンプルコード

① my_clip.xml <clip xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/skytree" android:clipOrientation="horizontal" android:gravity="center"> </clip> ② activity_main2.xml

AndroidのResource - Drawableリソースサンプルコード

① StateListDrawableリソース <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/red" android:state_pressed="true" /> </item></selector>

AndroidのResource - Drawableリソース

DrawableリソースはAndroidで最も使われるリソースである。 直接.png,.jpg,.gif,.9.png等を使用するかXMLの使用も可能。 イメージリソース 直接.png,.jpg,.gif,.9.png等を/res/drawable-xxxフォルダに配置する。 [<package_name>.]R.drawable.<file_name> @[<package_name>:]drawable/file_name Stat</package_name></file_name></package_name>…