Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources$NotFoundException #9

Open
Pakniat opened this issue Aug 3, 2015 · 0 comments
Open

Resources$NotFoundException #9

Pakniat opened this issue Aug 3, 2015 · 0 comments

Comments

@Pakniat
Copy link

Pakniat commented Aug 3, 2015

hi,
in robodemo-sample,when "MainActivityDemoActivity" intends to execute it gives "Unable to start activity android.content.res.Resources$NotFoundException: File res/mipmap-xhdpi-v4/ic_launcher.png from xml type layout resource ID #0x7f030000" message in Logcat

public class MainActivityDemoActivity extends DemoActivity {
private static final int DEFAULT_FONT_SIZE = 22;
@OverRide
public DrawViewAdapter getDrawViewAdapter() {
Drawable drawable = getResources().getDrawable( R.drawable.ic_launcher);
TextPaint textPaint = new TextPaint();
textPaint.setColor( getResources().getColor( android.R.color.white ) );
textPaint.setShadowLayer( 2.0f, 0, 2.0f, getResources().getColor( android.R.color.black ) );
textPaint.setAntiAlias( true );
// http://stackoverflow.com/questions/3061930/how-to-set-unit-for-paint-settextsize
textPaint.setTextSize( TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, DEFAULT_FONT_SIZE, getResources().getDisplayMetrics()) );
return new DefaultDrawViewAdapter( this, drawable, textPaint, getListPoints() );
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant