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

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.

主站蜘蛛池模板: 钟祥市| 德钦县| 仪陇县| 茶陵县| 延长县| 普格县| 桐乡市| 怀宁县| 芒康县| 玉屏| 班戈县| 吉水县| 鹤庆县| 威远县| 廊坊市| 许昌县| 新晃| 拜城县| 杨浦区| 阳西县| 桂东县| 响水县| 休宁县| 景宁| 宁夏| 兰考县| 炉霍县| 阿巴嘎旗| 南郑县| 太白县| 翁牛特旗| 南通市| 十堰市| 西贡区| 兴隆县| 东山县| 亚东县| 隆林| 鹤山市| 资兴市| 松潘县|