That Titanium Grey looks nice. Hope I can buy just the back battery door when they release. What you guys think?
http://www.droid-life.com/2012/08/28...titanium-grey/
Paint paint = new Paint();
paint.setColor(Color.WHITE);
paint.setTextSize(fontSize);
paint.setAntiAlias(true);
Typeface t = Typeface.createFromAsset(context.getAssets(), name)
paint.setTypeface(t);
FontMetricsInt fm = paint.getFontMetricsInt();
if (fm.bottom-fm.top <= 0)
{
Log.v("Cocos2dxBitmap", "invalid font metrics "+fm.bottom+", "+fm.top);
return;
}
This code failed on
I am trying to make a custom chronometer
here is my code this is wrking perfectly
The problem am stic with is i want to have inner shadow
public class CustomChronometer extends Chronometer {
private boolean start = false;
private long startTime, elapsedTime;
private float angle = 0f;
private Paint paint, p;
private RectF r;
public CustomChronometer(Context context, AttributeSet attrs) {
sup
I'm creating a custom drawable (it extends from Drawable) and i'm trying to put a shadow effect on it.
Here's a part of my code :
public void draw(Canvas canvas) {
Path path = new Path();
path.moveTo(0, 0);
path.lineTo(0, Y/2);
path.lineTo(X/2, Y);
path.lineTo(X, Y/2);
path.lineTo(X, 0);
path.lineTo(0, 0);
Paint paint = new Paint();
paint.setColor(context.getR
I'm working on an AFreeChart project and trying to get gradient paint on the bars of my graph. However, It appears as if gradient paint is not supported? All my research said to use the following code:
renderer2.setSeriesPaintType(0, new GradientPaint(0, 0, Color.WHITE, 0, 1000,
Color.BLUE));
GradientPaint is throwing an error though.
So I'm doing my usual thing of scanning the web and the mobile phone stores online for note information and I see good news and bad news. Good news is, the White version is in stock. Bad news is, the Titanium Grey model has been delayed until 15th of Oct. UK.
Building yourself up for a Monday release to be told to wait an extra two weeks is a very sobering feeling. Inner sadness.
Item Description : Titanium Grey Few Months Old NO scratches never dropped. Battery life is amazing.
Price : $525
Condition : Like New
Includes : Orange OEM flip cover, Note 2, OEM Battery, OEM charger, Box, and a cheaper grey snap on case.
Item Location : Wichita, KS
Shipping Details : If pay asking price i will cover shipping.
Payment Options : paypal.....or open to other suggestions.
in my application on touch event i want to drawrectangle-i tried this.butnot getting exactly how to draw.please help me.
i want to draw rectangle on points where is touched.
how can i use getX() and getY() in drawRect() method?
below is code-
public boolean onTouch(View v, MotionEvent event) {
if(event.getAction()==MotionEvent.ACTION_DOWN) {
int X=even
how to make that text was written vertically? how to rotate text 90 degrees?
Write each letter individually is stupid, but now ,i don't know another way.
Paint paint = new Paint();
public DrawView(Context context, double arr[])
{
super(context);
paint.setColor(Color.BLACK);
}
@Override
public void onDraw(Canvas canvas)
{
canvas.drawText("Test",50, 50, paint);
}