Skip to content

Commit

Permalink
add some custom dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
leguang committed Dec 7, 2017
1 parent e747c01 commit d7e8239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void onStart() {
private void initWindow() {
Window window = getWindow();
if (window != null) {
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
// window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
window.setBackgroundDrawableResource(android.R.color.transparent);
//设置dialog进入、退出的动画
window.setWindowAnimations(animStyle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class BaseDialogFragment extends AppCompatDialogFragment {
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setStyle(DialogFragment.STYLE_NO_TITLE, R.style.BaseDialog);
// setStyle(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_NoTitleBar_Fullscreen);
layoutId = getLayoutId();
//恢复保存的数据
if (savedInstanceState != null) {
Expand Down

0 comments on commit d7e8239

Please sign in to comment.