title: Make dialog smaller on screen
body: <p>I want my dialog to not fit the whole screen like the image shown. How should i make it so it is not as long (height).<a href="https://i.stack.imgur.com/7iVny.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7iVny.png" alt="enter image description here"></a></p>
  
  <pre><code>public class SidemenuInfoDialogFragment extends DialogFragment {
  
        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          RelativeLayout layout = (RelativeLayout) inflater.inflate(R.layout.sidemenu_info_main, container, true);
          return layout;
        }
  
         @Override
         public Dialog onCreateDialog(Bundle savedInstanceState) {
           Dialog dialog = new Dialog(new ContextThemeWrapper(getActivity(), R.style.Theme_Window_NoMinWith));
              dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
  
              return dialog;
            }
  
  
  }
  </code></pre>
  
  <p><strong>The View:</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:orientation="vertical"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentBottom="true"
                  android:id="@+id/sidemenu_info_main_relative"&gt;
  
  
              &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:id="@+id/text1"
                      android:text="TEST TEXT "/&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Let me know if there is something else needed to be able to help me get on the right path of fixing this.</p>