¡@

Home 

2014/10/16 ¤W¤È 08:11:14

android Programming Glossary: collapse_to

Making a ListAdapter-recycleable Resizable View

http://stackoverflow.com/questions/14128018/making-a-listadapter-recycleable-resizable-view

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. what view.. that has been selected as the collapse to view ID R.id.collapse_to View viewToCollapseTo child.findViewById R.id.collapse_to if.. View viewToCollapseTo child.findViewById R.id.collapse_to if viewToCollapseTo null The collapsed height should be the..

Making a ListAdapter-recycleable Resizable View

http://stackoverflow.com/questions/14128018/making-a-listadapter-recycleable-resizable-view

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. what view determines the collapsed height . Important things to do.. the child using WRAP_CONTENT for the height Get the View that has been selected as the collapse to view ID R.id.collapse_to View viewToCollapseTo child.findViewById R.id.collapse_to if viewToCollapseTo null The collapsed height should be the height.. View that has been selected as the collapse to view ID R.id.collapse_to View viewToCollapseTo child.findViewById R.id.collapse_to if viewToCollapseTo null The collapsed height should be the height of the collapseTo view any top or bottom padding collapsedHeight..