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

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.

主站蜘蛛池模板: 通渭县| 临沭县| 昆明市| 莱州市| 阿合奇县| 巴塘县| 霸州市| 阳新县| 牙克石市| 祥云县| 深水埗区| 夏津县| 安陆市| 钦州市| 荥经县| 韶山市| 全南县| 霍山县| 衡水市| 天津市| 文化| 林芝县| 荣昌县| 聂拉木县| 长垣县| 南陵县| 塘沽区| 永登县| 什邡市| 泰顺县| 司法| 四川省| 徐州市| 祁连县| 高安市| 泽普县| 瑞安市| 永德县| 黔东| 莱阳市| 兴宁市|