帮酷LOGO
  • 显示原文与译文双语对照的内容
文章标签:Material  Showcaseview  theme  设计  DES  MATE  MAT  显示  
A Material Design themed ShowcaseView for Android

  • 源代码名称:MaterialShowcaseView
  • 源代码网址:http://www.github.com/deano2390/MaterialShowcaseView
  • MaterialShowcaseView源代码文档
  • MaterialShowcaseView源代码下载
  • Git URL:
    git://www.github.com/deano2390/MaterialShowcaseView.git
  • Git Clone代码到本地:
    git clone http://www.github.com/deano2390/MaterialShowcaseView
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/deano2390/MaterialShowcaseView
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
  • MaterialShowcaseView

    面向Android的材料设计主题 ShowcaseView

    这个库受到最初的ShowcaseView库的强烈启发。

    谷歌介绍了材料设计理念,我看到了相当多的应用,有一个干净的,平面的展示视图,( Youtube应用是一个很好的例子) 。 然而,惟一的库是原来的库。 这是一个很好的库,但是主题现在看起来有点过时了。

    Logo

    Animation

    Gradle

    jitpack

    将 jitpack repo 添加到你的项目的build.gradle ( 在库的末尾)

    /生成。gradle

    allprojects {
     repositories {
     jcenter()
     maven { url "https://jitpack.io" }
     }
    }

    然后将依赖项添加到模块的build.gradle 中:

    /app/build.gradle

    compile 'com.github.deano2390:MaterialShowcaseView:1.2.0'

    注意:有些人提到,需要添加 @aar 后缀才能从JitPack解析它:

    compile 'com.github.deano2390:MaterialShowcaseView:1.2.0@aar'
    :如何使用

    这是单个展示视图的基本用法,你应该查看示例应用程序以获得更高级的用法。

    // single examplenewMaterialShowcaseView.Builder(this)
    . setTarget(mButtonShow)
    . setDismissText("GOT IT")
    . setContentText("This is some amazing feature you should know about")
    . setDelay(withDelay) // optional but starting animations immediately in onCreate can make them choppy. singleUse(SHOWCASE_ID) // provide a unique ID used to ensure it is only shown once. show();
     // sequence example ShowcaseConfig config =newShowcaseConfig();
     config.setDelay(500); // half second between each showcase viewMaterialShowcaseSequence sequence =newMaterialShowcaseSequence(this, SHOWCASE_ID);
     sequence.setConfig(config);
     sequence.addSequenceItem(mButtonOne,
     "This is button one", "GOT IT");
     sequence.addSequenceItem(mButtonTwo,
     "This is button two", "GOT IT");
     sequence.addSequenceItem(mButtonThree,
     "This is button three", "GOT IT");
     sequence.start();
     
    为什么 Jitpack

    将库发布到 Maven 是一个需要花费时间和精力的琐事。 Jitpack.io 允许我发布而不离开 GitHub,这样我就可以轻松地发布。

    使用MaterialShowcaseView的应用程序许可证
    Copyright 2015 Dean Wild
    Licensed under the Apache License, Version 2.0 (the"License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an"AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.


    文章标签:DES  theme  MAT  设计  显示  Material  MATE  材料设计  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语