0
응용 프로그램이있어서 코드 내의 비트 맵 소스를 변경하고 싶습니다. 여기 Android 변경 비트 맵 src 응용 프로그램 내부
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="5px"
android:paddingRight="5px"
android:paddingTop="5px"
android:background="@drawable/my_image"
>
...
</RelativeLayout>
이 배경에 대한 XML입니다 : I 메인 레이아웃을 가지고 작동 후 소스 내부에 이미지 이름이있을 때, 지금
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:dither="true"
android:gravity="bottom|right"
android:src="@drawable/image" />
을,하지만 난 싶습니다 이전 클래스에서 다른 목록 항목을 선택하면이를 변경하십시오. getResources가 있다는 것을 알고 있지만 비트 맵을 사용하여이를 해결하는 방법을 알지 못합니다. 끈이있을 때 그것은 쉽다, 그러나이 방법으로 나는 어디에 가기 위하여 모른다.