You :) Check out "Romain Guy" he is a Google Engineer
On Sunday, January 27, 2013 2:31:21 AM UTC, Justin Buser wrote: > > Who should Google who's name? > > > On Sun, Nov 18, 2012 at 3:13 AM, Piren <[email protected] <javascript:>>wrote: > >> Holy fuck dude... you should really google his name... >> >> >> On Saturday, November 17, 2012 10:18:27 PM UTC+2, Justin Buser wrote: >>> >>> I don't understand why I keep finding different posts by you >>> about forcing layout passes. The View instance this person is referring >>> would never go through a layout pass, regardless of the point at which his >>> code was executed for several reasons, most notably because it's never even >>> added to the display list. Additionally, even if it *was* added to the >>> Window correctly, calling layout() would not "force the layout", you would >>> call forceLayout() for that but even that would be pointless because the >>> View doesn't have a layout assigned to it or even have anything to layout >>> in the first place. >>> >>> The truly aggravating thing however is the fact that neither the >>> question itself, nor the *actual* answer ever have anything to do with >>> "forcing layouts". Do you understand that when other people come across >>> invalid/irrelevant information like this and believe it (if not because you >>> claim to be a developer then simply because they don't know any better) >>> then it's no longer a forgivable case of simply being wrong about >>> something. At that point you are responsible for every adverse reaction >>> your bad information results in. Every application crash/exception >>> thrown/hour lost/dead kitten/etc... that occurs when someone tries your >>> solution and it doesn't work is on your head. >>> >>> As a human being you should feel morally obligated to not present >>> anything as fact unless you are 100% confident that it is indeed so. At the >>> very least you should have first hand experience as it pertains to the >>> information you are providing and if not then test / verify it before hand. >>> Although each individual failure in this may seem relatively >>> insignificant, the aggregate result will ultimately have a negative impact >>> on our evolutionary progress as a species. As far fetched as you may find >>> this to be the vast multitude of problems that threaten our very existence >>> are at some level caused by ignorance, as such it should not be taken >>> lightly at *any* level. >>> >>> On Monday, November 17, 2008 11:20:41 AM UTC-5, Romain Guy wrote: >>>> >>>> Hi, >>>> >>>> If you do this in onCreate(), then the View didn't go through a layout >>>> pass yet, so its size is null (0 by 0 pixels.) You need to either wait >>>> for the first layout, or force the layout by calling layout() on the >>>> View. >>>> >>>> On Mon, Nov 17, 2008 at 2:34 AM, Jose Cortes <[email protected]> >>>> wrote: >>>> > >>>> > Hello everybody. >>>> > >>>> > I am working with OpenGL and Android, and I was wondering if there is >>>> > any way to create a Bitmap or a Drawable using a view (layout). The >>>> > purpose is to use this Bitmap as Texture for an OpenGL figure. >>>> > >>>> > All I have untill now is: >>>> > >>>> > ** I create a new view from the context and the Id. >>>> > >>>> > View l = new View(context); >>>> > >>>> > l.findViewById(R.layout.main); >>>> > >>>> > ** I used DrawingCache...but dont know if it is well used: >>>> > >>>> > l.setDrawingCacheEnabled(true)**; >>>> > >>>> > Bitmap bmp = l.getDrawingCache(); >>>> > >>>> > this bmp is null... >>>> > >>>> > >>>> > Any idea? >>>> > >>>> > Thanks >>>> > > >>>> > >>>> >>>> >>>> >>>> -- >>>> Romain Guy >>>> www.curious-creature.org >>>> >>> -- >> >> > > > -- > > > -- NOT Sent from an iPhone -- > -- -- 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

