0
我有一個ImageButton有兩個狀態(選中,未選中),它使用選擇器更改繪圖。發光動畫從狀態到狀態在ImageButton
我研究發光效果我應該使用AlphaAnimation,但是當它從alpha = 0開始時,它使背景可見,我不希望這樣。
我需要有兩個圖像在彼此的頂部和alpha動畫只是頂部的東西。
我會怎麼做呢?
謝謝!
我有一個ImageButton有兩個狀態(選中,未選中),它使用選擇器更改繪圖。發光動畫從狀態到狀態在ImageButton
我研究發光效果我應該使用AlphaAnimation,但是當它從alpha = 0開始時,它使背景可見,我不希望這樣。
我需要有兩個圖像在彼此的頂部和alpha動畫只是頂部的東西。
我會怎麼做呢?
謝謝!
<RelativeLayout xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_gravity="center_vertical|center_horizontal"
android:background="#FFFFFF" >
<ImageView
android:id="@+id/background_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF" />
<Button
android:id="@+id/button_alpha"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" />