This is strange, since the text disappears completly as soon as the view is 
rotated just a little bit. And it only happens on 4.x. I'm already using 
the camera.

But I solved it rendering the textviews to bitmaps, for now.


Am Montag, 18. März 2013 23:07:53 UTC+1 schrieb Romain Guy (Google):
>
> If you're doing a 3D rotation the problem might be due to a combination of 
> angle of rotation and size of the rotated elements. The element you are 
> rotating might end up being clipped by the camera and disappear. To work 
> around this we expose an API in Camera that lets you specify the distance 
> of the camera to the scene.
>
>
> On Mon, Mar 18, 2013 at 3:02 PM, user123 <[email protected] <javascript:>
> > wrote:
>
>> Now I also noticed that it happens only with 
>> android:hardwareAccelerated="false". When true, the text is displayed.
>>
>> But I need to set it to false, because otherwise the views don't rotate 
>> correctly... (it's a well known issue e.g. with this 
>> <http://code.google.com/p/android-coverflow/>coverflow implementation).
>>
>>
>> Am Montag, 18. März 2013 12:52:28 UTC+1 schrieb user123:
>>>
>>> It seems to be 4.2 only. I tested in the emulator 4.0, 4.1 and 4.2 and 
>>> happened only on 4.2. 
>>>
>>> As mentioned, concerning devices, I have only 4.2, where it happens.
>>>
>>> I'm using Google maps api (the emulators have to be configured to use 
>>> this instead of "plain" 4.x), but I think it's not relevant for this.
>>>
>>>
>>>
>>>
>>> Am Montag, 18. März 2013 12:20:12 UTC+1 schrieb user123:
>>>>
>>>> I just have 2 devices, Galaxy Nexus and Nexus 7, both with 4.2. Can't 
>>>> test on more.
>>>>
>>>> If nobody else has feedback on this, I would submit the bug anyways (?).
>>>>
>>>>
>>>>
>>>> Am Montag, 18. März 2013 06:56:50 UTC+1 schrieb Romain Guy (Google):
>>>>>
>>>>> Does it happen on all 4.x versions? (4.0, 4.1 and 4.2?) If so, please 
>>>>> file a bug at b.android.com.
>>>>>
>>>>>
>>>>> On Sun, Mar 17, 2013 at 4:38 PM, user123 <[email protected]> wrote:
>>>>>
>>>>>> I'm rotating a custom view, which contains a textview, using 
>>>>>> getChildStaticTransformation:
>>>>>>
>>>>>> @Override
>>>>>> protected boolean getChildStaticTransformation(**View child, 
>>>>>> Transformation t) {
>>>>>>   t.clear();
>>>>>>   t.setTransformationType(**Transformation.TYPE_MATRIX);
>>>>>>   camera.save();
>>>>>>   final Matrix imageMatrix = t.getMatrix();
>>>>>>
>>>>>>   float transX = (textView.getWidth() / 2.0f);
>>>>>>   float transY = (textView.getHeight() / 2.0f);
>>>>>>
>>>>>>   camera.rotateY(rot);
>>>>>>   camera.getMatrix(imageMatrix);
>>>>>>   imageMatrix.preTranslate(-**transX, -transY);
>>>>>>   imageMatrix.postTranslate(**transX, transY);
>>>>>>   camera.restore();
>>>>>>   //...
>>>>>> }
>>>>>>
>>>>>> This works very well on all 2.x devices I have tested, but in 4.x 
>>>>>> devices, on angle != 0, the text dissapears. Rotation works well, but 
>>>>>> the 
>>>>>> text dissapears. It appears again if rotation is 0.
>>>>>>
>>>>>> What can I do to solve this? Thanks in advance!
>>>>>>
>>>>>> -- 
>>>>>> -- 
>>>>>> 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
>>>>>> android-developers+**[email protected]
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/**group/android-developers?hl=en<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 unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to android-developers+**[email protected].
>>>>>> For more options, visit 
>>>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>>>> .
>>>>>>  
>>>>>>  
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Romain Guy
>>>>> Android framework engineer
>>>>> [email protected]
>>>>>  
>>>>  -- 
>> -- 
>> 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]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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 unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Romain Guy
> Android framework engineer
> [email protected] <javascript:>
>  

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to