리모컨 뷰 내에서 이미지 뷰의 알파 값을 프로그래밍 방식으로 변경하고 싶지만 아무런 효과가 없습니다.Android RemoteView Alpha 문제
내가 할당 방법 :
v.setInt(vR.id.imageView, "setAlpha", alpha);
나는 그것을 선언 방법 :
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="0dp" android:color="#FFFFFFFF" />
<gradient android:startColor="#FF000000" android:endColor="#FF7A7A7A"
android:angle="315"/>
<corners android:bottomRightRadius="7dp" android:bottomLeftRadius="7dp"
android:topLeftRadius="7dp" android:topRightRadius="7dp"/>
</shape>
모든 것이 제대로 미리 보여줍니다있어 어떤 던져 나던 :
<ImageView
android:id="@+id/widget_agenda_bg_dark"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="5dip"
android:src ="@drawable/background"
android:scaleType="fitXY"/>
ressource의 BG는 모양이다 오류가 발생하지만 여전히 알파 값은 변하지 않습니다 ... 아이디어가 있습니까?
okey, 해결 - 여기 코드가 정확합니다. 버그가 어딘가에있었습니다. – Anthea