我得到一个错误找不到符号
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
View row = mInflater.inflate(R.layout.theme_item, parent, false);
row.setTag(new ViewHolder(row));
return row;
}
@SuppressWarnings("deprecation")
@Override
public void bindView(View view, Context context, Cursor cursor) {
ThemeItem themeItem = mDAOItem;
ViewHolder holder = (ViewHolder) view.getTag();
// int orientation =
// context.getResources().getConfiguration().orientation;
// holder.preview.setImageURI(themeItem.getPreviewUri(orientation));
String hash = themeItem.getPreviewHash(); (this line seems to be the error)
if (mBitmaps.containsKey(hash)) {
holder.preview.setImageBitmap(mBitmaps.get(hash));
} else {
Log.w("Theme","Hit else");
// make sure it is not null to fix bug caused by a shitty theme
// provider
if (hash == null || hash.isEmpty()) {// holder.preview.getDrawable()==null){
// TODO: find a more suitable image
holder.preview
.setImageResource(android.R.drawable.ic_delete);
} else {
byte[] bitmap = Base64.decode(hash, 0);
holder.preview.setImageBitmap(BitmapFactory
.decodeByteArray(bitmap, 0, bitmap.length));