官术网_书友最值得收藏!

Back to our layout

Inside the grid, we have declared a track-list component to represent our track listing, which will flex vertically, taking up all the vertical space and leaving only a height of 100 for player-controls. We indicate track-list as row="0" col="0", since rows and columns are index-based. The flexible (remainder) vertical height is defined via the GridLayout's * in the rows attribute. The bottom section of the grid (row 1) will represent the player controls, allowing users to play/pause the mix and shuttle the playback position.

Now that we have the app's primary view defined in a rather abstract way, let's dive into the two custom components we need to build, track-list and player-controls.

主站蜘蛛池模板: 永济市| 利津县| 涞水县| 明溪县| 长海县| 苏州市| 赤峰市| 澜沧| 察隅县| 丁青县| 平果县| 德庆县| 南宫市| 胶南市| 米林县| 保定市| 博白县| 富源县| 鄂伦春自治旗| 大庆市| 肥乡县| 平山县| 漳平市| 漳平市| 资溪县| 万源市| 渭源县| 江达县| 通山县| 铅山县| 威远县| 京山县| 通许县| 沂水县| 景德镇市| 永吉县| 龙井市| 潞城市| 栾城县| 汉源县| 青冈县|