Fancy View 를 통 해 안 드 로 이 드 쿨 현의 풀 스크린 애니메이션 인 스 턴 스 코드 를 제공 합 니 다.

효과.

쓰다

compile 'site.gemus:openingstartanimation:1.0.0' // gradle     
OpeningStartAnimation openingStartAnimation = new OpeningStartAnimation.Builder(this)
            .setDrawStategy(new NormalDrawStrategy()) //      
            .create();
openingStartAnimation.show(this);
그 밖 에 문자,아이콘,한 마디 설명,애니메이션 시간 등 도 설정 할 수 있 고 화면 을 열 어 애니메이션 을 사용자 정의 할 수 있 으 며 전략 인 터 페 이 스 를 열 었 습 니 다.이렇게

OpeningStartAnimation openingStartAnimation = new OpeningStartAnimation.Builder(this)
        .setDrawStategy(new DrawStrategy() {
          @Override
          public void drawAppName(Canvas canvas, float fraction, String name, int colorOfAppName, WidthAndHeightOfView widthAndHeightOfView) {
          }
          @Override
          public void drawAppIcon(Canvas canvas, float fraction, Drawable icon, int colorOfIcon, WidthAndHeightOfView widthAndHeightOfView) {
          }
          @Override
          public void drawAppStatement(Canvas canvas, float fraction, String statement, int colorOfStatement, WidthAndHeightOfView widthAndHeightOfView) {
          }
        })
        .create();
총결산
위 에서 설명 한 것 은 팬 시 뷰 를 통 해 안 드 로 이 드 쿨 현의 풀 스크린 애니메이션 을 제공 하 는 것 입 니 다.여러분 에 게 도움 이 되 기 를 바 랍 니 다.궁금 한 점 이 있 으 시 면 댓 글 을 남 겨 주세요.편집장 님 께 서 바로 답 해 드 리 겠 습 니 다.여기 서도 저희 사이트 에 대한 여러분 의 지지 에 감 사 드 립 니 다!

좋은 웹페이지 즐겨찾기