Android ã¢ããªéçºã®ããã®ãµãã¼ãã©ã¤ãã©ãªã«ã¤ãã¦
Android ã®æ°ãã API level ã§è¿½å ãããæ©è½ãå¤ã API level ã§ã使ç¨ã§ããããã«ãããããã®ä»ä¾¿å©æ©è½ãæä¾ãããµãã¼ãã©ã¤ãã©ãªããAndroid SDK ã«ããæä¾ããã¦ãã¾ãã ãããªãã«å¤ã端æ«ããµãã¼ãããªããã¢ããªéçºãããå ´åã¯ãµãã¼ãã©ã¤ãã©ãª (ã®ä¸é¨) ã¯ã»ã¼å¿ é ãªã®ã§ããããµãã¼ãã©ã¤ãã©ãªã«ã¤ãã¦åå¿è åãã«æ¸ããã¦ããæ å ±ããã¾ããªãã®ã§ã¾ã¨ãã¦ããã¾ãã
ãµãã¼ãã©ã¤ãã©ãªã®ç¨®é¡
ãµãã¼ãã©ã¤ãã©ãªã®ç¨®é¡ã¨ãã¦ã¯ã2015 å¹´ 6 æ 13 æ¥ç¾å¨ (support library revision 22.2.0) ã®ã¨ãã以ä¸ã®ãã®ãããã¾ãã
- v4 Support Library: Android 1.6 (API level 4) 以éã対象ã¨ããã©ã¤ãã©ãªã§ãFragment ãªã©ã使ããããã«ãªãã å¤ã API level ã®ç«¯æ«ããµãã¼ãããå ´åã¯ã»ã¼å¿ é ã
- v7 Support Libraries: Android 2.1 (API level 7) 以éã対象ã¨ããã©ã¤ãã©ãªç¾¤ã
- v7 appcompat library: Action Bar ã®å®è£ ãæä¾ããã å¤ã API level ã®ç«¯æ«ããµãã¼ãããå ´åã¯ã»ã¼å¿ é ã
- v7 cardview library:
CardView
ã¦ã£ã¸ã§ãã ã使ããããã«ãªãã Material design ã®å®è£ ã«ä¾¿å©ã - v7 gridlayout library:
GridLayout
ã¯ã©ã¹ ãæä¾ããã - v7 mediarouter library
- v7 palette library: ç»åããéè¦ãªè²ãæãã ãããã®
Palette
ã¯ã©ã¹ ãæä¾ããã - v7 recyclerview library: 巨大ãªãã¼ã¿éåã®ä¸é¨ããªã¹ãå½¢å¼ãã°ãªãããã¥ã¼å½¢å¼ã§ç»é¢ã«è¡¨ç¤ºããã®ã«ä½¿ç¨ã§ãã
RecyclerView
ã¯ã©ã¹ ãæä¾ãããã
- v8 Support Library: Android 2.2 (API level 8) 以éã®ããã®ãã®ã RenderScript æ¼ç®ãã¬ã¼ã ã¯ã¼ã¯ ã®ãµãã¼ãã追å ãã v8 renderscript library ãå«ã¾ããã ãã®ã©ã¤ãã©ãªã®ã¢ããªã¸ã®çµã¿è¾¼ã¿æ¹ã¯ä»ã®ã©ã¤ãã©ãªã¨ã¯éã£ã¦ããã
- v13 Support Library: Android 3.2 (API level 13) 以éã®ããã®ãã®ã
- v17 Leanback Library: TV 端æ«ç¨ã® UI ãæ§ç¯ãããã¨ãæ¯æ´ãã API ãæä¾ãããã
- Design Support Library: ããã²ã¼ã·ã§ã³ããã¯ã¼ (navigation drawers) ãããã¼ãã£ã³ã°ã¢ã¯ã·ã§ã³ãã¿ã³ (floating action buttons; FAB)ãã¹ããã¯ãã¼ (snackbars) ãã¿ã (tabs) ã¨ãã£ãããããªã¢ã«ãã¶ã¤ã³ã®ããã®ç¨®ã ã®ã³ã³ãã¼ãã³ãããã¿ã¼ã³ã®å®è£ ãæä¾ãããã®ã
- Multidex Support Library: è¤æ°ã® Dalvik å®è¡ãã¡ã¤ã« (Dalvik Executable ãã¡ã¤ã«; DEX ãã¡ã¤ã«) ã§ã¢ããªããã«ããããã¨ãæ¯æ´ããã©ã¤ãã©ãªã åç §ããã¡ã½ããæ°ã 65,536 以ä¸ã®ã¢ããªã®å ´å㯠multidex æ§æ (multidex configurations) ã使ãå¿ è¦ãããã
- Annotations Support Library: Android ã¢ããªéçºæã«å½¹ç«ã¤å種ã¢ããã¼ã·ã§ã³ãæä¾ãããã (ãã®ã©ã¤ãã©ãªã«ã¤ãã¦ã¯ä»¥åã¨ã³ããªãæ¸ãã¾ããã®ã§åç §ãã¦ãã ããã)
ãµãã¼ãã©ã¤ãã©ãªã®ã»ããã¢ãã
ãµãã¼ãã©ã¤ãã©ãªã使ç¨ããããã«ãã¾ã㯠Android SDK Manager ã使ã£ã¦ãµãã¼ãã©ã¤ãã©ãªããã¦ã³ãã¼ããã¾ãã ä¸è¨ãã¼ã¸ã«æ¸ãã¦ããããã«ãAndroid SDK Manager ãéããâExtrasâ ã® âAndroid Support Repositoryâ ãé¸æãã¦ãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã (Android Studio ã§éçºãã¦ããå ´åã)
次ã«ããµãã¼ãã©ã¤ãã©ãªã«å¯¾ããä¾åé¢ä¿ãããã¸ã§ã¯ãã® build.gradle ã«è¨è¿°ãã¾ãã ä¾ãã° v4 support library ã® revision 22.2.0 ã使ç¨ããå ´åã¯ä»¥ä¸ã®ããã«ãªãã¾ãã (Support Library Features ã®ãã¼ã¸ã«ãåã©ã¤ãã©ãªã®ä¾åé¢ä¿ã®è¨è¿°æ¹æ³ãæ¸ããã¦ãã¾ãã)
dependencies { ... compile "com.android.support:support-v4:22.2.0" }
Gradle ã使ç¨ããªãå ´åã®æ¹æ³ã¯ ãSupport Library Setupã ã«æ¸ãã¦ããã¾ãã
android-support-v4.jar ã£ã¦ ãã¼ã¸ã§ã³ 4 ãããªããã§ãã
android-support-v4.jar ã£ã¦ãæåè¦ãã¨ãã« ãAndroid Support Libraryã ã® version 4 ã ã¨æã£ã¦ã (ã¤ã¾ããandroid-support-v4.jar ã«ã¯ãã¼ã¸ã§ã³éãã®ãã®ãåå¨ããããã¼ã¸ã§ã³ã¢ããããã android-support-v5.jar ã¨ãã«ãªãã¨æã£ã¦ã) ã®ã§ããããããªãã¨ã¯ãªããã§ããã
ã¨ãããã¨ãããªãã ç¥ã£ãã®ã§ãã®è¨äºãæ¸ãã¾ããã
æ´æ°å±¥æ´
- 2015-06-13 : Android Support Library revision 22.2.0 ã®å 容ã«åããã¦ã¨ã³ããªã®å 容ãæ´æ°ã