title: Android toast message set margin doesn't work
body: <p>Android toast message set margin is not working. I want to <code>fill horizontal</code> and <code>bottom </code>gravity toast message with 16dp <code>end</code> and <code>start</code> margins. Please help me</p>
  <p><strong>custom_toast_message_layout.xml</strong></p>
  <pre><code> &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_gravity=&quot;center_horizontal&quot;
      android:background=&quot;@drawable/bg_rounded_corner&quot;
      android:backgroundTint=&quot;@color/snackBarSuccess&quot;
      android:layout_margin=&quot;16dp&quot;
      android:padding=&quot;16dp&quot;&gt;
  
      &lt;TextView
          android:id=&quot;@+id/comment&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:fontFamily=&quot;@font/hanken_sans_bold&quot;
          android:maxLines=&quot;1&quot;
          android:singleLine=&quot;true&quot;
          android:text=&quot;Comment is here&quot;
          android:textColor=&quot;@color/white&quot;
          android:textSize=&quot;14sp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          tools:ignore=&quot;MissingConstraints&quot; /&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p><strong>MainActivity.kt</strong></p>
  <pre><code>        val view : View = LayoutInflater.from(requireContext())
              .inflate(R.layout.custom_toast_message_layout, null)
          val toast = Toast(requireContext())
          toast.view = view
          toast.setGravity(Gravity.BOTTOM or Gravity.FILL_HORIZONTAL, 0, 100)
          toast.setMargin(0.2f, 0f)
          toast.duration = Toast.LENGTH_LONG
          toast.show()
  </code></pre>
  <p>thanks</p>