原来想直接想调用程序的东西,但是使用class="Apple-style-span" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important;">R.styleable的时候 eclipse不能解析了,后来发现原来被删除了此方法
Java代码
这种方法也就不能用了
然后
monospace, serif; white-space: pre; font-size: 14px; vertical-align: baseline; border-width: 0px; padding: 0px;">publicImageAdapter(Context c){
mContext = c;
TypedArray a = c.obtainStyledAttributes(R.styleable.Gallery1);
mGalleryItemBackground = a.getResourceId(R.styleable.Gallery1_android_galleryItemBackground,0);
a.recycle();}
唯一要做的就是自己去做一个styleable
res\values
<?xml version="1.0" encoding="utf-8"?><resources>
<declare-styleablename="Gallery1">
<attrname="android:galleryItemBackground"/>
</declare-styleable></resources>