title: Android setLayoutDirection on DialogFragment
body: <p>I've recently finished building a project, and my next goal was to create a build flavor specially for RTL, one important note was that I need to force the RTL layout, independent from the device language.</p>
  
  <p>So I managed to force RTL on most of the app using the view method <strong>setLayoutDirection</strong> and rotated all the views that didn't cooperate , but for some reason, I couldn't mirror the dialogs in the app, which appear to flip only when the device language change. 
  I tried to flip the dialog in the onCreateDialog, accessing getView, which returned null, and I'm not sure what else I can do ...</p>
  
  <p>Could someone help me flip the DialogFragment to RTL?</p>
  
  <p>Thanks.</p>