Skip to content

Only rotate Dialog without change app's orientation.

Notifications You must be signed in to change notification settings

ZhengShang/RotateDialogDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
shangzheng
Sep 28, 2017
5334f43 · Sep 28, 2017

History

5 Commits
Sep 27, 2017
Sep 28, 2017
Sep 27, 2017
Sep 27, 2017
Sep 28, 2017
Sep 27, 2017
Sep 27, 2017
Sep 27, 2017
Sep 27, 2017
Sep 27, 2017

Repository files navigation

RotateDialogDemo

Only rotate Dialog without change app's orientation.

在不修改app的Activity朝向的情况下,只改变Dialog的方向的方法.

效果图

AlertDialog的旋转图

Custom的旋转图

Demo下载

思路

  1. 设置不同方向上Window的window.setLayout(width,height)大小
  2. 设置Dialog的根布局View旋转后的大小
  3. 旋转(可能伴随x轴和y轴的平移)根布局View

更多详情可以查看简书文章

About

Only rotate Dialog without change app's orientation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages