android 仿ppt進入動畫效果合集

來源:互聯網
上載者:User

標籤:ppt   效果   動畫   android   進入   

EnterAnimation

android 仿ppt進入動畫效果合集,百葉窗效果,擦除效果,盒狀效果,階梯效果,菱形效果,輪子效果,劈裂效果,棋盤效果,切入效果,扇形展開效果,十字擴充效果,隨機線條效果,向內溶解效果,圓形擴充效果,適用於各種view和viewgroup,activity即用於頁面根部viewgroup,自訂viewgroup自動換行layout,看

Series of entrance animation effects just like ppt in Android.There are effects of Blinds,Wipe,Box,Strips,Diamond,Wheel,Split,Checkerboard,Peek In,Wedge,Plus,Random Bars,Dissolve In,Circle.The Animation effects can apply to any View or ViewGroup.There is also a custom ViewGroup of auto linefeed called SimpleLineWrapLayout to layout the buttons.look the images:

650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/1.gif" alt="1.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/2.gif" alt="2.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/3.gif" alt="3.gif" height="300" />650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/4.gif" alt="4.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/5.gif" alt="5.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/6.gif" alt="6.gif" height="300" />650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/7.gif" alt="7.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/8.gif" alt="8.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/9.gif" alt="9.gif" height="300" />650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/10.gif" alt="10.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/11.gif" alt="11.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/12.gif" alt="12.gif" height="300" />650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/13.gif" alt="13.gif" height="300" /> 650) this.width=650;" src="https://github.com/wangpeiming110/EnterAnimation/raw/master/image/14.gif" alt="14.gif" height="300" />

Attributes

There are several attributes you can set:

attr 屬性 description 描述
isVisibleAtFirst 進入頁面時視圖內容是否可見,預設可見
How to uselayout:

在需要顯示動畫效果的view或viewgroup的外層包一個EnterAnimLayout,然後在java中設定具體動畫和控制開始播放動畫;需要播放整個activity的話同理在最外層加一個EnterAnimLayout,然後在java中設定具體動畫和控制開始播放動畫

        <com.wangpm.enteranimation.EnterAnimLayout                       android:id="@+id/anim_layout"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_gravity="center_horizontal"            android:background="@android:color/holo_blue_bright"            android:padding="20dp"            >            <LinearLayout                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:orientation="vertical"                android:background="@android:color/holo_orange_light">                <TextView                    android:id="@+id/text_view"                    android:layout_width="wrap_content"                    android:layout_height="wrap_content"                    android:text="EnterAnimTextView"                    android:textSize="30sp"                    />                <LinearLayout                    android:layout_width="match_parent"                    android:layout_height="match_parent"                    android:orientation="horizontal">                    <ImageView                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:src="@mipmap/ic_launcher"                        />                    <Button                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:text="這就是一個按鈕"/>                </LinearLayout>            </LinearLayout>        </com.wangpm.enteranimation.EnterAnimLayout>
java:
        enterAnimLayout = (EnterAnimLayout)  findViewById(R.id.anim_layout);            //oncreate中還並未獲得view的具體尺寸,所以開啟頁面時延遲播放動畫        new Handler().postDelayed(new Runnable() {                    @Override            public void run() {                //舉例設定成百葉窗動畫                Anim anim = new AnimBaiYeChuang(enterAnimLayout);                anim.startAnimation(2500);//開始播放動畫,動畫播放時間長度2500ms,預設2000            }        }, 1000);


項目地址:
https://github.com/wangpeiming110/EnterAnimation
如果覺得對你有用,請在github上star一個,O(∩_∩)O謝謝

本文出自 “what's program” 部落格,請務必保留此出處http://283859701.blog.51cto.com/1943436/1945248

android 仿ppt進入動畫效果合集

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.