LayerBase::drawWithOpenGL

by android-newbie » Thu, 03 Dec 2009 07:21:43 GMT


Sponsored Links
 Hi

I have been looking at LayerBase::drawWithOpenGL() and trying to
figure out if the scaling being done in this function is performing a
"stretch" or "crop", but not able to figure that out yet.

Can someone please let me know if LayerBase::drawWithOpenGL() is doing
"stretching" or "cropping" for scaling operation?

Thank you so much for your help,
an

--



LayerBase::drawWithOpenGL

by Dianne Hackborn » Thu, 03 Dec 2009 08:30:53 GMT


 Hi, questions about the non-public implementation of Android should be on
android-porting; thanks.




>


Sponsored Links


Other Threads

1. That would be nice

Hi,

My post won't probably add nothing really worth to the discussion, but
i just felt the need to let know the people that's working on this
project that i would be ready to pay a sum to have the option to
install Android on my Samsung Omnia.

The phone can be summed up this way: wonderful hardware, sucky OS,
with all due respect.

I will continue to monitor the web for any info about this subject.



--~--~---------~--~----~------------~-------~--~----~

2. Long click focus in expandable lists

I have an expandable list with a context menu that can be accessed by
long clicking any of the children.
The view template used to create the children consists of 2 nested
linear layouts with a textView inside the second one. There's more to
the GUI than that, but this is sufficient to cause the bug to appear.

As long as the groups and children only contain a text field
everything works fine. However if I add a button before my textView,
long clicks are not received anymore. I can fix this by flagging the
inner Linear Layout as LongClickable. The top most one does not need
this to work.

Doing this allows me to receive longClick events again, however the
visual feedback of long clicks (the slow orange to white gradient) is
gone. Nothing happens visually when I hold down, however I do
eventually receive the event. The weird thing is that the visual
feedback still happens fine in focus mode. It's only invisible in
touch mode.

Does anyone have any idea what I can do to fix this?


Here's the xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android" android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="vertical"
android:longClickable="true"
android:focusableInTouchMode="true"
android:focusable="true">
<LinearLayout android:layout_height="wrap_content"
android:id="@+id/EntryLineLinearLayout"
android:orientation="horizontal"
android:weightSum="1"
android:layout_width="fill_parent"
android:longClickable="true"
android:focusableInTouchMode="true"
android:focusable="true">
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="invisible"
android:text="@string/Hint"
android:id="@+id/Button">
</Button>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/EntryTextView"
android:layout_weight="0"
android:textSize="17sp">
</TextView>
</LinearLayout>
</LinearLayout>

--~--~---------~--~----~------------~-------~--~----~

3. Animated GIFs (and Marquee) into Android's WebView: a performance question.

4. problem with binding to a service from a BroadcastReceiver

5. Accessing the "Battery Info" activity (or any system general activity)

6. Accessing the "Battery Info" activity (or any system general activity)

7. Rotation Redux (2nd try)