部分機型因爲dialog主題緣由會出現藍色線,處理辦法java
Context context = dialog.getContext(); int divierId = context.getResources().getIdentifier("android:id/titleDivider", null, null); View divider = dialog.findViewById(divierId); divider.setBackgroundColor(Color.TRANSPARENT);