windowIsFloating
trong khi cửa hàng dừng chân tuyệt vời để tạo Dialog
Giao diện người dùng theo kiểu có nhiều --- lỗi --- quirks.Cách tạo hoạt động trong suốt KHÔNG CÓ cửa sổĐảm bảo
Cái tôi đang chiến đấu ngay bây giờ là nó đã gán chiều rộng/chiều cao của tổ tiên hàng đầu là "wrap_content
"chứ không phải chiều rộng/chiều cao của màn hình. Điều này có nghĩa là thiết kế giao diện người dùng thông thường sử dụng "match_parents"
sẽ đẩy lên trên .. để trở thành "wrap_content"
lần Bad
vì vậy, những gì tôi thực sự muốn là tạo ra một hoạt động, và có một bố cục như vậy:
<LinearLayout android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:id="@+id/containerPageConatiner"
android:background="@drawable/windowBackground">
<View android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<FrameLayout android:id="@+id/singlePane"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_gravity="center_horizontal|center_vertical"
android:padding="10dp"/>
<View android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
</LinearLayout>
nào tạo ra một giao diện người dùng cho thấy một cửa sổ duy nhất (@ id/singlePane) ontop của Hoạt động gọi là nó.
Có ai có vừa phải bộ kiểu cần thiết để tạo Hoạt động nền trong suốt không?