Android 物理设备上的错误视图对话框片段
我有一个问题,对话框片段的视图在模拟器上看起来不错,但在物理设备上看起来不好,我不明白它应该是什么 对话框片段错误 需要对话片段Android 物理设备上的错误视图对话框片段,android,dialog,Android,Dialog,我有一个问题,对话框片段的视图在模拟器上看起来不错,但在物理设备上看起来不好,我不明白它应该是什么 对话框片段错误 需要对话片段 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_app"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="dialog_test_Fragment">
<ImageView
android:id="@+id/imageViewClose"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|top"
android:clickable="true"
android:src="@drawable/ic_action_close" />
</RelativeLayout>
必须是
DialogFragment
尝试删除该选项,
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setStyle(STYLE_NO_TITLE, 0);
}
根据你的图片,你需要蓝色布局上方的黑色区域吗?或者交叉按钮与边框混合?我需要对话框的背景颜色统一,并且没有黑色区域