0

我得到一个错误找不到符号

@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));
4

1 回答 1

1

http://pastie.org/7997386

供应商/tmobile/apps/ThemeChooser/src/com/tmobile/themechooser/ThemeChooser.java:345:找不到符号符号:方法getPreviewHash()位置:com.tmobile.themes.provider.ThemeItem String hash = themeItem.getPreviewHash( ); ^

于 2013-06-02T18:11:22.800 回答