小编fla*_*nes的帖子

Polymer:我在core-animated-pages元素中没有渲染我的核心列表

当我的自定义元素在core-animated-pages中时,我有一个core-list元素的渲染问题(没有渲染)

这是一个jsfiddle工作时(灰色列表)==> album-grid outside core-animated-pages http://jsfiddle.net/flagadajones/yq30u78d/

这里是一个jsfiddle当id不起作用(没有灰名单)==> album-grid inside core-animated-pages http://jsfiddle.net/flagadajones/m87sd0x3/2//

你能帮我谢谢吗

这是我的代码:

 <script src="https://www.polymer-project.org/components/webcomponentsjs/webcomponents.js">
  </script>

  <link href="https://www.polymer-project.org/components/core-drawer-panel/core-drawer-panel.html" rel="import">
  <link href="https://www.polymer-project.org/components/core-icons/core-icons.html" rel="import">
  <link href="https://www.polymer-project.org/components/core-icon-button/core-icon-button.html" rel="import">
  <link href="https://www.polymer-project.org/components/core-animated-pages/core-animated-pages.html" rel="import">
  <link href="https://www.polymer-project.org/components/core-toolbar/core-toolbar.html" rel="import">
  <link href="https://www.polymer-project.org/components/core-list/core-list.html" rel="import" >

  <style>
   html, body {
      margin: 0;
      -webkit-tap-highlight-color: transparent;
      overflow: hidden;
    }
      remote-app{ 
      display: block;
      height: 100%;
      margin: 0 auto;
    }

  </style>
  </head>
  <body fit>
    <remote-app ></remote-app>


<polymer-element name="album-detail" attributes="album" layout vertical>
  <template>
    <style>
      #details {
        width: 740px;
        margin: auto;
        height: 100%;
        box-shadow: 0 27px 24px …
Run Code Online (Sandbox Code Playgroud)

css web-component polymer core-elements

8
推荐指数
1
解决办法
1009
查看次数

优化复杂的布局

我为Android开发了一个音频播放器,在我的浏览专辑活动中,我遇到了一个性能问题:滚动时滞后很多.

在此图像中是我的布局表示:在此输入图像描述

这是一个显示行的ListView; 一行包含按艺术家分组的5张专辑.

每种不同的颜色都是不同的布局文件.每个文件都由适配器管理.

在专辑(橙色)中,我不在TextView上使用compoundDrawable,因为我有ImageView延迟加载,我不明白如何在textview compoundDrawable上进行这种延迟加载.

如果需要,我可以发布所有布局文件.

user-interface android android-layout

5
推荐指数
1
解决办法
1641
查看次数