GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - corerzhang/RainView: 一个飘雨动画的控件

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
library
library
 
 
screenshots
screenshots
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

RainView

一个飘雨动画的控件, 有两种实现RainView和SurfaceRainView, 它们都实现了IRainView接口

image

   IRainView mRainView=new RainView(MainActivity.this);
   mRainView.setRainController(new RainController(new int[]{R.mipmap.snowflake,R.mipmap.ic_launcher}));
   mRainView.setRainCallback(new RainView.RainCallbackAdapter(){
         @Override
         public void onRainStart() {
            Toast.makeText(MainActivity.this,"RainView start",Toast.LENGTH_SHORT).show();
         }

         @Override
         public void onRainEnd() {
            Toast.makeText(MainActivity.this,"RainView over",Toast.LENGTH_SHORT).show();
         }
      });
    mRainView.startRain(MainActivity.this);
   IRainView mSurfaceRainView = new SurfaceRainView(MainActivity.this);
   mSurfaceRainView.setRainController(new SurfaceRainController(new int[]{R.mipmap.snowflake, R.mipmap.ic_launcher}));
   mSurfaceRainView.setRainCallback(new IRainView.RainCallbackAdapter() {
          @Override
          public void onRainStart() {
              Toast.makeText(MainActivity.this, "SurfaceRainView start", Toast.LENGTH_SHORT).show();
          }
   
          @Override
          public void onRainEnd() {
               Toast.makeText(MainActivity.this, "SurfaceRainView over", Toast.LENGTH_SHORT).show();
          }
       });
   mSurfaceRainView.startRain(MainActivity.this);    

About

一个飘雨动画的控件

Resources

Readme
Activity

Stars

8 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.