Mobile Hybrid development of Android file Management-->flexbox,webfont.

Source: Internet
Author: User

Add the Action Bar, use Felxbox Center, felx related reference URL: http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html

Use Webfont to add icons, Webfont to http://fontello.com/

Index.html:

<!   DOCTYPE html><!--Licensed to the Apache software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");  You are not a use of this file except in compliance with the License. Obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 unless required by applicable law or AG Reed to in writing, software distributed under the License are distributed on a "as is" BASIS, without warranties OR Condi  tions of any KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

  

Index.css

/* * Licensed to the Apache software Foundation (ASF) under one * or more contributor license agreements.  See the NOTICE file * Distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * under the Apache License, Version 2.0 (The * "License");  You are not a use of this file except in compliance * with the License. Obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * unless required by applicable l AW or agreed to writing, * software distributed under the License are distributed on A * "As is" BASIS, without WARRANT  IES or CONDITIONS of any * KIND, either express OR implied. See the License for the * Specific language governing permissions and limitations * under the License. */* {-webkit-tap-highlight-color:rgba (0,0,0,0);/* Make transparent link selection, adjust last value opacity 0 to 1.    0 */}.head{Position:absolute;    left:0;    right:0;    top:0;    Height:2rem; Line-hEight:2rem;    Background-color:orange;    Padding-left:.3rem;    Color:white; Text-align:center;}.    content{Position:absolute;    Top:2rem;    bottom:0;    left:0;    right:0; Overflow:hidden;}.    Content. nav{Position:absolute;    top:0;    Height:1.5rem;    left:0;    right:0; Background: #efefef;}.    Content. list{Position:absolute;    Top:1.5rem;    left:0;    right:0;    Bottom:3rem;    Background: #adadad; Overflow:hidden;}.    opeator{Position:absolute;    bottom:0;    left:0;    right:0;    Height:3rem;    /* Container Use DISPLAY:FELX properties */Display:flex; Display:-webkit-flex;    /* */}.opeator a{/* Use felx:1 to distribute content evenly */flex:1;    -webkit-box-flex:1; /* Treat Webfont as font, centered in font */Text-align:center;}.    Content ul{List-style:none;    padding:0; margin:0;}.    Content ul li{position:relative;    Height:4rem;    Line-height:2rem;    Padding-left:. 5rem;    border-bottom:1px solid Gray; Background:white;}. Content ul li.touchinside{    Background: #efefef;}.    Content ul Li. file-icon{position:absolute; Background:url ("..    /img/file.png ") No-repeat Center;    Background-size:1.2rem 1.2rem;    Width:1.2rem;    Height:1.2rem;    Left:1rem; Top:.3rem;}.    Content ul Li. file-name{position:absolute;    Line-height:2rem; Left:3.2rem;}. t{Display:none;} #upper {position:absolute;right:15px;top:5px;color:blue;}    #log {width:200px;    height:30px;    color:red; Float:right;}    /* Redefine icon position */.trash:before{Display:block;    padding-top:10px; /* This will make the font is not centered, the direct designation FontSize * * * FONT-SIZE:1.2REM;}.    icon-server:before{Display:block;    padding-top:10px; /* This will make the font is not centered, the direct designation FontSize * * * FONT-SIZE:1.2REM;}.    icon-html5:before{Display:block;    padding-top:10px; /* This will make the font is not centered, the direct designation FontSize * * * FONT-SIZE:1.2REM;}

  

Index.js no changes, refer to the previous essay

Mobile Hybrid development of Android file Management-->flexbox,webfont.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.