• Stars
    star
    418
  • Rank 103,620 (Top 3 %)
  • Language
    Java
  • Created almost 9 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AnimTextView (below chart)

#传入数据,执行动画 (下面有效果图)

ScreenShot

Image

简单示例

代码:

private void initView() {
    mTvBig = (AnimTextView) findViewById(R.id.mTvBig);
    mTvSmall = (AnimTextView) findViewById(R.id.mTvSmall);
    mTvBg = (AnimTextView) findViewById(R.id.mTvBg);
}

private void initData() {
    mTvBig.setText("2015","2016");

    mTvSmall.setText("2016",true);

    mTvBg.setText("2016",true);
}

xml

<Button
    android:id="@+id/mBtn"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Start Anim"
    android:onClick="onClick"
    android:layout_alignParentBottom="true"
    android:layout_marginBottom="10dp"
    android:layout_centerHorizontal="true"/>

<duguang.animtextview.AnimTextView
    android:id="@+id/mTvBig"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="60dp"
    android:minWidth="88dp"
    android:minHeight="77dp"
    android:layout_marginTop="70dp"
    android:layout_centerHorizontal="true"
    android:background="@drawable/bg_lesson_head_cont"/>

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/mTvBig"
    android:gravity="center_horizontal"
    android:layout_centerHorizontal="true"
    android:text="动画模式一:开启新数据替换老数据的动画\n背景是图片"/>

<duguang.animtextview.AnimTextView
    android:id="@+id/mTvSmall"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="30dp"
    android:layout_below="@id/mTvBig"
    android:layout_marginTop="70dp"
    android:layout_centerHorizontal="true"
    android:background="@drawable/bg_lesson_head_cont"/>
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/mTvSmall"
    android:gravity="center_horizontal"
    android:layout_centerHorizontal="true"
    android:text="动画模式二:开启递增动画\n背景是图片"/>

<duguang.animtextview.AnimTextView
    android:id="@+id/mTvBg"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/mTvSmall"
    android:layout_marginTop="70dp"
    android:textSize="45dp"
    android:layout_centerHorizontal="true"
    android:background="@android:color/white"/>

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/mTvBg"
    android:gravity="center_horizontal"
    android:layout_centerHorizontal="true"
    android:text="动画模式二:开启递增动画\n背景是color"/>

More Repositories

1

BaseAnimation

BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code! BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app!
Java
1,027
star
2

AnswerDemo

【自定义控件】有备选词的完形填空,无备选词完形填空
Java
70
star
3

Android_Graphics_Instance_One

This Demo is through the Canvas on the Graphics class Adnroid, Paint, the Path to map the instance of project, for your reference
Java
52
star
4

stfGroup

手机群控_自行修改的
JavaScript
50
star
5

CustomTextView

CustomTextView,Above the picture is a TextView, registered part (KeyWord) is the click event, and through the calculation of coordinates of KeyWord, show the KeyWord want some information
Java
36
star
6

FlutterWidgets

It basically covers all Flutter widgets'Demo. Each widget contains a demo and demo code and a description of widget related attributes. Of course, there may be some missing ones. I will improve them later. I hope this project can help you. 😊😊😊😊 中: 基本涵盖所有Flutter widget 的Demo,每个widget都包含一个demo及demo的代码和widget相关属性的介绍,当然中间可能有漏掉的,我会在后面进行完善,希望这个工程能帮助到你。
Dart
28
star
7

cameraface

Android Camera 内置人脸识别的Demo: 通过Android源生API支持的人脸识别,获取到脸部矩形坐标,左右眼坐标,嘴坐标通过View动态实摄像头实时装饰功能
Java
13
star
8

ViewDragDemo

A drag Demo View
Java
4
star
9

ADBDemo

通过简单监听逻辑用adb命令进行自动截图和录屏的demo
Java
4
star
10

UnityTank

Unity2D 开发的FC游戏---坦克大战
C#
4
star
11

RTMPDemo

用 Vitamio 播放 rtmp协议 直播的Demo
Java
3
star
12

NodeProgress

带节点的渐变进度条
Java
3
star
13

OpenGLES_Camera_FaceDetect

Java
1
star
14

AngryBirdDemo

Angry Bird(愤怒的小鸟)UnityDemo
C#
1
star
15

2016Plan

New Year's plan
1
star
16

CheckDicZip

项目需要对服务器所有dic zip文件进行检查并输出到对应txt文件的Python小工具 包括 (下载 ,加压zip,解析json,输出的工作)
Python
1
star
17

meiyou-_-

高仿美柚日历抽屉效果_未完成
Java
1
star