Skip to content

Latest commit

 

History

History
82 lines (68 loc) · 2.85 KB

File metadata and controls

82 lines (68 loc) · 2.85 KB

Android SplashView

Function

  • XsSplashView which can countdown advertising,listen jump callback.
  • XsSplashView which can custom exit animation .

Sample Application

Apk Download

Usage

  • update splash data
XsSplashHelper.downLoadSplash(this,"http://pic.58pic.com/58pic/14/64/56/25h58PIC3eG_1024.jpg",
                "https://simonrepo.github.io");
  • show splash
     XsSplashHelper.getBuilder(this)
                .link("https://simonrepo.github.io")
                .listenr(new XsSplashView.OnClickSplashListener() {
                    @Override
                    public void jumpOver() {
                        Log.e("info","jumpOver:-> ");
                    }

                    @Override
                    public void clickSplash(String link) {
                        Log.e("info","clickSplash:-> ");
                        WebActivity.start(MainActivity.this,link);
                    }
                })
                .build().show();

Setting

  • link(String) set jump advertising links.
  • defaultRes(Integer) set default advertising pic.
  • countDown(int) set countDown,default is 3s.
  • textSizeDp(int) default is 10.
  • textBackgroundSizeDp(int) default is 35.
  • textMarginDp(int) default is 12.
  • textColorRes(int) set countDown text color,default is #ffffff.
  • textBackgroudColorRes(int) set countDown background color,default is #b6bdcc.
  • dismissAnimation(Animation) set dismiss animation,default is AlphaAnimation.
  • listenr(XsSplashView.OnClickSplashListener) set listen callback.

Download

Maven:

<dependency>
  <groupId>com.xs.splashview</groupId>
  <artifactId>splashview</artifactId>
  <version>1.0.2</version>
  <type>pom</type>
</dependency>

Gradle:

compile 'com.xs.splashview:splashview:1.0.2'

License

Copyright 2018 SimonRepo

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.