title: AlertDialog do not show positive and negative button
body: <p>I used AlertDialog to alert user confirm delete. I check on my device (Android 5.1) and it show well</p>
  
  <p><a href="https://i.stack.imgur.com/c6WhP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/c6WhP.png" alt="enter image description here"></a></p>
  
  <p>But on some another device (also run Android 5.1), the dialog missed positive and negative button.</p>
  
  <p><a href="https://i.stack.imgur.com/b5psH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/b5psH.png" alt="enter image description here"></a></p>
  
  <p>I checked and found that devices happen this issue have a medium resolution (960x540, 854x480). </p>
  
  <p>Is resolution relate with this issue ?
  If not, can you tell me the reason and how to fix this issue ?</p>
  
  <p>My code for display dialog:</p>
  
  <pre><code>    public static final Dialog yesNoDialog(Context context,
                                                 String message,
                                                 DialogInterface.OnClickListener yesAction, DialogInterface.OnClickListener noAction) {
  
  
              AlertDialog.Builder  builder = new AlertDialog.Builder(context,R.style.todoDialogLight);
  
              builder.setTitle(context.getString(R.string.app_name))
                      .setMessage(message)
                      .setCancelable(false)
                      .setPositiveButton("YES", yesAction)
                      .setNegativeButton("NO", noAction);
              return builder.create();
   }
  </code></pre>
  
  <p><strong>And styles.xml</strong></p>
  
  <pre><code>  &lt;style name="todoDialogLight" parent="Theme.AppCompat.Light.Dialog"&gt;
  
              &lt;!-- Used for the buttons --&gt;
              &lt;item name="colorAccent"&gt;@color/colorPrimaryDark&lt;/item&gt;
              &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
              &lt;!-- Used for the title and text --&gt;
              &lt;item name="android:textColorPrimary"&gt;@color/colorText&lt;/item&gt;
              &lt;!-- Used for the background --&gt;
              &lt;!-- &lt;item name="android:background"&gt;#4CAF50&lt;/item&gt;--&gt;
              &lt;item name="android:fontFamily"&gt;sans-serif&lt;/item&gt;
              &lt;item      name="android:windowAnimationStyle"&gt;@style/RemindDialogAnimation&lt;/item&gt;
              &lt;item name="android:layout_width"&gt;@dimen/width_remind_dialog&lt;/item&gt;
              &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
   &lt;/style&gt;
  </code></pre>