I have already given u the piece of code....
what else do u want?

On 28 December 2011 13:10, chowdary nani <[email protected]> wrote:

> Hi,
> Thanks for replay
> will you please help me by brief example
>
> On Wed, Dec 28, 2011 at 12:47 PM, vandana toshniwal <
> [email protected]> wrote:
>
>>
>> hi
>>
>> create a custom textview and override the onDraw method.
>> the code is as follows...
>>
>>
>> *protected* *void* onDraw(Canvas canvas) {
>>
>> //This saves off the matrix that the canvas applies to draws, so it can
>> be restored later.
>>
>> canvas.save();
>>
>> //We need to rotate around the center of our text
>>
>> //Otherwise it rotates around the origin.
>>
>> *float* py = *this*.getHeight()/2.0f;
>>
>> *float* px = *this*.getWidth()/2.0f;
>>
>> canvas.rotate(90, px, py);
>>
>> //draw the text with the matrix applied.
>>
>> *super*.onDraw(canvas);
>>
>> //restore the old matrix.
>>
>> canvas.restore();
>>
>> }
>>
>>
>>  On 28 December 2011 12:42, chowdary nani <[email protected]>wrote:
>>
>>>  Hi All,
>>> I need help on rotating the text in textview for 90 degrees
>>> please help me from anyone
>>> Thank you
>>> Naveeen
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to