Giter VIP home page Giter VIP logo

cuteloadinglayoutgit's Introduction

CuteLoadingLayoutGit

####Author:Ezreal Wang ####Blog:http://blog.csdn.net/ddwhan0123 演示效果:
Demo


比较轻量级的自定义Loading界面,圆形的长条状的看腻了,不妨换一种体验

如何使用?
XML引入

<pro.cuteloadingview.wjj.cuteloadingview.CustomView.CuteLoadingLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        wjj:image_AnimType="rotationY"
        wjj:image_height="50dp"
        wjj:image_text="Loading  "
        wjj:image_width="50dp"/>

下面3个标签为通常的大小,文字内容.
image_AnimType为动画模式标签,“rotationY”,“rotationX”,默认为“rotationY”

也可以用java代码动态加载,像这样

public CuteLoadingLayout(Context context, AttributeSet attrs, int defStyleAttr)
public CuteLoadingLayout(Context context, AttributeSet attrs) //new 一个CuteLoadingLayout的实例,并传入构造函数所需的参数
 public void setDefaultColor()//设置颜色
 public void setTextSize//设置字体大小
 public void setDefaultColor()//设置默认颜色(如果没有调用过setColor(),就无需调用此方法)
 public void setColor(int[] value)//设置边框颜色。如果数组长度不足6将抛出异常
 public void hideTextView()//隐藏六边形下方的文字部分
 public void stopTextJump()//关闭文字跳动动画
 public void startAnim()//开始动画,显示控件
 public void stopAnim()//结束动画,隐藏控件

cuteloadinglayoutgit's People

Contributors

ddwhan0123 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.