12
Android에서보기에 불투명도 (알파)를 설정하는 방법
다음과 같은 버튼이 있습니다. <Button android:text="Submit" android:id="@+id/Button01" android:layout_width="fill_parent" android:layout_height="wrap_content"> </Button> 내 onCreate()이벤트 에서는 다음과 같이 Button01을 호출합니다. setContentView(R.layout.main); View Button01 = this.findViewById(R.id.Button01); Button01.setOnClickListener(this); 응용 프로그램에 배경이 있으며이 제출 버튼에서 불투명도를 설정하고 싶습니다. 이 뷰의 불투명도를 어떻게 설정합니까? Java 측에서 설정할 수 있습니까, 아니면 main.xml 파일에서 설정할 수 있습니까? 자바 측에서 …