나는 가시성을 GONE. when I do certain things, the visibility is set to
VISIBLE`로 설정하고 레이아웃이 표시되어 RelativeLayout
입니다. 문제는 그것이 활동의 다른 내용과 겹쳐 져야한다는 것이지만 레이아웃의 요소뿐만 아니라 활동 내용도 볼 수 있습니다 (이미지 참조)상대 레이아웃은 투명하지만 나는 그것을 불투명하게하고 싶습니다.
겹치는 레이아웃을 불투명하게하고 싶습니다. 배경색을 (ARGB와 RGB 모두 시도한) 색상으로 설정하고 알파 (ARGB와 동일해야 함)를 설정하려고했으나 ID가 작동하지 않습니다. 어떤 생각?
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:id="@+id/doc_main_aivalability_panel"
android:visibility="gone"
android:background="@color/appBackground">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/doc_main_aivalability_save"
android:text="salva"
android:layout_alignParentBottom="true" />
<ListView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/doc_main_aivalability_list"
android:layout_above="@id/doc_main_aivalability_save"
android:background="@color/appBackground"/>
</RelativeLayout>
<CalendarView
android:layout_width="match_parent"
android:layout_height="250dp"
android:id="@+id/doc_main_availability_calendar"/>
내가 사용하고 색상 :
<color name="appBackground">#FFF2F2F2</color>
및 스크린 샷 : XML에
로 변경 해결하려면? 죄송합니다. 질문을 이해할 수 없습니까? – GoCrazy
조각을 사용하는 것이 좋습니다. 그렇지 않다면, 캘린더는 relativelayout 대신에 불투명도 100 %를 가져야합니다. – Xenione
giljulio와 imort가 제공하는 해결책을 모두 사용해야합니다. –