Wednesday, February 26, 2014

GridView dislocation in the GLSurfaceView


Recent increases in dynamic gridview in a GLSurfaceView to display video, but a sliding scroll bar, GLSurfaceView would be misplaced, and ran in the other item, look for a reason for a long time can not be found, knowing the cause of the trouble enthusiastic people pointing, thank you very much.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
GLSurfaceView can not put a container inside Scrollable
Reply:
cited a floor youngc527 reply:
GLSurfaceView not put Scrollable container inside

What are the specific reasons you know?
Reply:
Forgot where seen, the casual link below to see it

http://developer.android.com/reference/android/view/TextureView.html
references
Unlike SurfaceView, TextureView does not create a separate window but behaves as a regular View. This key difference allows a TextureView to be moved, transformed, animated, etc. For instance, you can make a TextureView semi-translucent by calling myView.setAlpha (0.5f).

Reply:
reference to the second floor lynchyong reply:
Quote: references to a floor youngc527 reply:

GLSurfaceView not put Scrollable container inside

What are the specific reasons you know?

Some understanding from the side, thank you very much!
Reply:
reference to the third floor youngc527 reply:
forget where seen, here's the link just to see it

http://developer.android.com/reference/android/view/TextureView.html
references
Unlike SurfaceView, TextureView does not create a separate window but behaves as a regular View. This key difference allows a TextureView to be moved, transformed, animated, etc. For instance, you can make a TextureView semi-translucent by calling myView.setAlpha (0.5f).


Thank you very much for your guidance, in addition to then ask you a question: I have a layout so that the original hidden button inside gridview is displayed in an item in (each item which has a button), or other item in the button hidden, so that when pulling the scroll bar, this shows the button will go to the other item to go, this is not a caching problem? Is there a way to make it a good place?
Reply:
To understand how this view of the formation mechanism of Android GridView in GridView corresponding Adapter inside views are multiplexed, so you need to remember which items corresponding button is reality in getView realization inside the state of the button next update
Reply:
reference to the 6th floor youngc527 reply:
this to understand what the Android GridView view generation mechanism in the corresponding Adapter GridView inside views are multiplexed , so you need to remember which items corresponding button is reality in getView realization inside, the status update button next


Thinking to understand, I think being the case, is not possible to change each item are saved, that is a view of the entire class array item items saved, and then taken out in getview years, but the item many words, seemingly Very accounted memory.
Reply:
Generally speaking, is to have the data model, and then design the display template, and finally by the Adapter to achieve the data displayed on the template (BaseAdapter.getView).
If a change in the status of the data, the first reaction to the model, and then notify the template update (BaseAdapter.notifyDataSetChanged) or just update the specified View, such as that by clicking View
Reply:
reference to the 8th floor youngc527 reply:
usually is the first model with the data, and then display the template design, and finally by the Adapter to achieve the data into the template on (BaseAdapter.getView).
If a change in the status of the data, the first reaction to the model, and then notify the template update (BaseAdapter.notifyDataSetChanged) or just update the specified View, such as that by clicking View


Learn, thank you very much ~

No comments:

Post a Comment