title: VideoView inside DialogFragment
body: <p>I just created a custom DialogFragment with a VideoView inside it and I get some problems with it.</p>
  
  <ul>
  <li><p>The video is playing, but for some strange reason, there is a kind of black and very transparent layer on the top of the video. Of course I tried to play this same video from somewhere else in my app which is not a dialog window, and it shows correctly. Very strange...</p></li>
  <li><p>Also, the top and left borders of the dialog window disappear - and if remove the VideoView, they don't.</p></li>
  </ul>
  
  <p>Any idea? Thanks in advance!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Controller</p>
  
  <pre><code>public class VideoPlayerFragment extends DialogFragment
  {
      String json_string;
  
      // Constructor
      public static VideoPlayerFragment newInstance(String json_string_arg)
      {
          VideoPlayerFragment fragment = new VideoPlayerFragment();
  
          Bundle arguments = new Bundle();
          arguments.putString("json_string", json_string_arg);
          fragment.setArguments(arguments);
  
          return fragment;
      }
  
  
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
  
          // Set style
          setStyle(DialogFragment.STYLE_NO_TITLE, 0);
      }
  
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
      {
          View view = inflater.inflate(R.layout.video_player, container, false);
  
          return view;
      }
  
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState)
      {
           super.onActivityCreated(savedInstanceState);
  
           // Set video holder
           VideoView video_view = (VideoView) getView().findViewById(R.id.video_view);
  
           // Set URL
           Uri video = Uri.parse("android.resource://" + getActivity().getPackageName() + "/" + R.raw.test);
           video_view.setVideoURI(video);
  
           // Start video
           video_view.start();
      }
  }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>    &lt;LinearLayout android:id="@+id/video"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:padding="@dimen/video_player_margin"
          android:orientation="vertical" &gt;
  
          &lt;VideoView android:id="@+id/video_view"
              android:layout_gravity="center_horizontal|center_vertical"
              android:layout_width="700dp"
              android:layout_height="400dp" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>