You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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() );
}
}
The text was updated successfully, but these errors were encountered:
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() );
}
}
The text was updated successfully, but these errors were encountered: