2014-06-25 83 views
0
<ViewFlipper 
    android:id="@+id/viewflipper" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:autoStart="true" 
    android:flipInterval="3000" 
    android:layout_centerHorizontal="true"> 

    <ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/learn_1" /> 

    <ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/learn_2" /> 

    <ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/prev_3" /> 

    <ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/prev_4" /> 

    <ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/learn_5" /> 
</ViewFlipper> 

..圖片在3秒後自動切換到下一張圖片。 。但我想添加一些過渡到它,使其更加藝術..你的幫助是非常感謝..謝謝圖片自動滑塊

+0

你需要什麼?在飛濺活動? – Steve

+0

nope ..只是一個過渡時,圖像將切換到下一個圖像..例如,第一個圖像將褪色時,它會切換到第二個圖像,, @Stephen – user3774818

回答

0

看看這些post。你可以看到四個圖像逐漸褪色。可以下載完整的示例代碼。

如果你需要在SplashActivity中實現這些,你也可以查看這些Stackoverflow的帖子。