Skip to content
프로젝트

소개

AppIntroAnimation은 특수한 이미지 이동 및 변형 애니메이션 효과로 앱의 멋진 인트로 화면을 만들 수 있는 코드 스니펫 모음입니다. 서드파티 라이브러리를 추가로 연동하지 않아도 쉽게 사용하고 사용자 지정할 수 있습니다.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Android Arsenal

Buy Me a Coffee at ko-fi.com

AppIntroAnimation

AppIntroAnimation is an library to make cool intro screen for your app with special Image Translation and Transformation animation effects. It is very easy to use, highly customizable without adding third party library integrations.

Demo I Demo II
appintro1 appintro2

Demo I Enable private boolean isSliderAnimation = false; in MainActivity.java to apply this background pager transformation animation with Image translation effect..

Demo II Enable private boolean isSliderAnimation = true; in MainActivity.java to apply this background pager transformation animation without Image translation effect..

How to use

STEP 1:

Download the code and open arrays.xml.

<?xml version="1.0" encoding="utf-8"?>
<array name="landing_bg">
    <item>@color/light_green</item>
    <item>@color/light_purple</item>
    <item>@color/light_orange</item>
    <item>@color/light_cyan</item>
</array>

<array name="icons">
    <item>@drawable/email</item>
    <item>@drawable/calendar</item>
    <item>@drawable/shopping</item>
    <item>@drawable/socialnetwork</item>
</array>

<string-array name="titles" >
    <item>@string/email</item>
    <item>@string/calender</item>
    <item>@string/shopping</item>
    <item>@string/social_network</item>
</string-array>

<string-array name="hints" >
    <item>@string/email_hint</item>
    <item>@string/calender_hint</item>
    <item>@string/shopping_hint</item>
    <item>@string/social_network_hint</item>
</string-array>

Here I have added 4 slides with images, titles and title hints as an example. You can update your png's, text content in above arrays.xml as per the project requirement.

Note: The array count of images, titles and title hints should be of same count to avoid IndexBoundException.

STEP 2:

Place all your images that are to be used for making AppIntro's into the app drawable folders. To get exact output for multiple resolution and sizes, add scaled images seperately for drawable-xxxhdpi, drawable-xxhdpi, drawable-xhdpi, drawable-hdpi, drawable-mdpi etc., and fix the height and width of ImageView in viewpager_item.xml

Customization

To customize pager attributes like indicator stroke size, stroke color, solid color, solid size, solid color, selected color and unselected color, please open vpi_defaults.xml and customize as per your wish.

Following are the attributes that I have used in the project demo.

<resources>
    <bool name="default_circle_indicator_centered">true</bool> 
    <color name="default_circle_indicator_fill_color">#FFFFFFFF</color>  <!--change fill color-->
    <color name="default_circle_indicator_page_color">#40FFFFFF</color>  <!--change indicator un selected fill color-->
    <integer name="default_circle_indicator_orientation">0</integer> 
    <dimen name="default_circle_indicator_radius">3dp</dimen> <!--change radius of the circle-->
    <bool name="default_circle_indicator_snap">false</bool> 
    <color name="default_circle_indicator_stroke_color">#40FFFFFF</color> <!--change stroke color-->
    <dimen name="default_circle_indicator_stroke_width">1dp</dimen> <!--change stroke width-->
</resources>

The app which inspired me to create these repos

  • Background color transformation animation used in Google Inbox intro screen.
  • Image translation animation used in Duolingo intro screen.

관련 프로젝트 살펴보기

불러오는 중…