代码如下
-
<string-array name="app_center_img">
-
<item>@drawable/app_business_form</item>
-
<item>@drawable/app_summary</item>
-
<item>@drawable/app_development</item>
-
<item>@drawable/app_aboutfield</item>
-
<item>@drawable/app_field</item>
-
<item>@drawable/app_teach</item>
-
<item>@drawable/app_course</item>
-
<item>@drawable/app_ice_borke</item>
-
<item>@drawable/app_sell</item>
-
<item>@drawable/app_chase_off</item>
-
</string-array>
代码获取
private TypedArray mThumbIds = getResources().obtainTypedArray(R.array.app_center_img);
image.setImageResource(mThumbIds.getResourceId(position,0));
阅读(637) | 评论(0) | 转发(0) |