Как убрать отступы после заголовка и элементов в AlertDialog?

На нижепреведённом скрине видны отступы после заголовков и элементов списка AlertDialog. Для наглядности диалоговое окно не кастомизировано.

Скажите, как избавиться от этих отступов?

введите сюда описание изображения

UPD: Кода вызова диалога

List<SocialItem> socials = new ArrayList<>();
addSocials(socials);
ArrayAdapter adapter = new SocialArrayAdapter(contextThis, R.layout.feedback_social_item, socials);
DialogInterface.OnClickListener onClickListener =  new DialogInterface.OnClickListener() {
      @Override
      public void onClick(DialogInterface dialog, int which) {
          startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(socials.get(which).getSource())));
      }
};
dialog = getDialogBuilder("Напишите разработчикам", true, adapter, onClickListener, null).create();
dialog.show();

Код метода getDialogBuilder()

public AlertDialog.Builder getDialogBuilder(String title, boolean isCustomTitle, ArrayAdapter adapter,
                                            DialogInterface.OnClickListener onClickListener, String bodyText) {
    AlertDialog.Builder adb = new AlertDialog.Builder(contextThis);
    LayoutInflater layoutInflater = getLayoutInflater();
    if (title != null) {
        if (isCustomTitle) {
            View customTitle = layoutInflater.inflate(R.layout.custom_alert_social_title, null);
            ((TextView) customTitle).setText(title);
            adb.setCustomTitle(customTitle);
        } else {
            adb.setTitle(title);
        }
    }
    if (adapter != null && onClickListener != null) {
        adb.setAdapter(adapter, onClickListener);
    } else if (bodyText != null) {
        adb.setMessage(bodyText);
    }
    return adb;
}

Код метода addSocials()

private void addSocials(List<SocialItem> socials) {
    String[] titles = getResources().getStringArray(R.array.feedback_socials);
    String[] sources = getResources().getStringArray(R.array.feedback_sources);
    socials.add(new SocialItem(titles[0], sources[0], getResources().getDrawable(R.drawable.black_vk_logo)));
    socials.add(new SocialItem(titles[1], sources[1], getResources().getDrawable(R.drawable.black_mail_logo)));
    socials.add(new SocialItem(titles[2], sources[2], getResources().getDrawable(R.drawable.black_tg_logo)));
    socials.add(new SocialItem(titles[3], sources[3], getResources().getDrawable(R.drawable.black_inst_logo)));
}

Код кастомного заголовка

<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/customTitleAlert"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingHorizontal="16dp"
    android:paddingVertical="12dp"
    android:background="@color/my_sea"
    android:textSize="20sp"
    android:textStyle="bold">

</TextView>

Ответы (0 шт):