android Programming Glossary: resizelayout
Making a ListAdapter-recycleable Resizable View http://stackoverflow.com/questions/14128018/making-a-listadapter-recycleable-resizable-view use is as follows Your list item XML should have your ResizeLayout as the root of the hierarchy and from there you can build any.. Basically just wrap your normal list item layout in a ResizeLayout tag. In your layout you should have one view with the id collapse_to.. throw this into a git repo but for now here's the code ResizeLayout.java This is the bulk of the code. I'll also include my Activity..
Making a ListAdapter-recycleable Resizable View http://stackoverflow.com/questions/14128018/making-a-listadapter-recycleable-resizable-view with a duration of 0 i.e. scrollToPosition int . The general use is as follows Your list item XML should have your ResizeLayout as the root of the hierarchy and from there you can build any layout structure you want. Basically just wrap your normal.. and from there you can build any layout structure you want. Basically just wrap your normal list item layout in a ResizeLayout tag. In your layout you should have one view with the id collapse_to . This is the view that the layout will wrap to i.e... the state it was in before it was recycled I may eventually throw this into a git repo but for now here's the code ResizeLayout.java This is the bulk of the code. I'll also include my Activity and Adapter that I used for testing further down. They're..
|