collapsable

Expandable GridView with view recycling in Android

陌路散爱 提交于 2019-11-30 03:47:05
问题 I am trying to implement a android activity where I have sections of items (for example car brands and their models). I want to be able to display the items in a grid (e.g. fixed to 3 columns) and each of the grids can be collapsed. Actually I want exactly what the ExpandableList view does for ListViews but with a GridView. Unfortunately if I return a GridView in the ExpandableListAdapter, the items inside this GridView won't be recycled as they are moving off the screen during scrolling. And

Jquery Mobile: Dynamically change the text of the header of a collapsible div?

非 Y 不嫁゛ 提交于 2019-11-30 03:29:48
问题 <div data-role="collapsible" data-content-theme="e" id="collapsePlace"> <h3>Place:</h3> <!--things...--> </div> How can I dynamically change the text of the <h3> header ('Place:') in the collapsible div? I tried: $('#collapsePlace').children('h3').text('new text'); And it changes the text - but loses all of the styling! 回答1: The actual HTML structure of a collapsible in jQuery Mobile 1.0RC2 is the following (after the framework has made its pass on the HTML): <div id="collapsePlace" data

Meteor + Materialize: collapsable in for each doesn't work

喜你入骨 提交于 2019-11-29 23:15:53
问题 I have a collapsable (materialize) whose elements are created from a for each , however the "dropdown" doesn't work. Everything that isn't in the for each works. How can I fix this problem? jobList.html <template name="jobList"> <ul class="collapsible" data-collapsible="accordion"> {{#each jobs}} <li> <div class="collapsible-header">{{title}}</div> <div class="collapsible-body"><p>{{description}}</p></div> </li> {{/each}} </ul> jobList.js Template.jobList.rendered = function () { $('

Pure CSS collapse/expand div

纵饮孤独 提交于 2019-11-26 04:37:30
问题 I have a pure CSS collapsable div which is based on someone else\'s code who uses the :target psuedoclass. What I am trying to set up is a page with 12+ questions, and when you click on the + button the answer div expands beneath. I cannot figure out how to make multiple collapsing div elements on this page without writing a ton of extra CSS. Anyone have suggestions on how to write this so my CSS code is minimized? (i.e., so i dont have to input a bunch of unique selectors for each of the 12+