# GuideBackgroundColorAnimation **Repository Path**: inggf/guidebackgroundcoloranimation ## Basic Information - **Project Name**: GuideBackgroundColorAnimation - **Description**: A library for making the background color change while you scoll the viewpager. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-11-10 - **Last Updated**: 2021-11-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GuideBackgroundColorAnimation #### 项目介绍 - 功能: 现了滑动PageSlider的时候,背景动态变化的效果 ![image](./art/sample.gif) #### 安装教程 项目目录下的build.gradle文件中添加依赖。 ``` dependencies { classpath 'com.gitee.archermind-ti:GuideBackgroundColorAnimation:1.0.0' } ``` #### 使用说明 ``` ColorAnimationView colorAnimationView = (ColorAnimationView) findComponentById(ResourceTable.Id_ColorAnimationView); //使用默认颜色 colorAnimationView.setmViewPager(pageSlider,resources.length); //使用自定义颜色背景测试 //int colorGroup [] = new int[]{DarkSlateGray, DarkGoldenrod4, NavajoWhite, Cyan1}; //colorAnimationView.setmViewPager(pageSlider,resources.length,colorGroup); PageSlider viewPager 需要设置背景的PageSlider int count 可以切换的页面的个数。 int... colors 自定义背景颜色数组,可以不传,使用默认的背景 ``` #### 版本迭代 - v1.0.0 #### 基线release版本 commit id 4dc777acf7f9d032600f3fd0d5694412272a38b6 #### 版权和许可信息 License Copyright 2013 Issac Wong Copyright 2013 Kenefe_Li 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.