我試圖用Polymer材料和Paper Spinner從Polymer重新構建Android上的微調器。但它從來不是對稱的。 這是我做過什麼: https://jsbin.com/ciqova/edit?html,console,outputPaper Spinner like Android
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<!-- Polymer Imports -->
<base href="https://polygit.org/polymer+:master/components/">
<link href="polymer/polymer.html" rel="import">
<script type="text/JavaScript" src="webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="paper-material/paper-material.html">
<link rel="import" href="paper-spinner/paper-spinner.html">
<!-- MDL Import -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.indigo-pink.min.css">
<script defer src="https://code.getmdl.io/1.1.3/material.min.js"></script>
<!-- JavaScript -->
<style is="custom-style" include="iron-flex iron-flex-alignment">
.center {
@apply(--layout-horizontal);
@apply(--layout-center-justified);
}
paper-material.round {
border-radius: 50%;
height: 34px;
width: 36px;
}
paper-spinner.size {
height: 30px;
width: 30px;
}
</style>
</head>
<body>
<div class="center">
<paper-material elevation="5" class="round size">
<div class="center">
<paper-spinner class="size" active></paper-spinner>
</div>
</paper-material>
</div>
</body>
</html>
我希望你能幫助我。我的意思是這個微調: https://www.google.com/design/spec/components/progress-activity.html#progress-activity-behavior看下行爲的第一個視頻。
尼爾斯
歡迎#1。請直接將相關信息添加到問題中,而不僅僅是鏈接到外部資源。 –