Я использую библиотеку JazzyList от github для своего приложения. Я перепробовал все, что знаю, и искал, но не мог поставить пробел между кнопками. Поскольку это специальная библиотека, я думаю, может быть, есть другие коды для предоставления места. я не знаю. это выглядит так.
Это мой список_имя. xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:background="@drawable/button"
android:orientation="horizontal"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
<TextView
android:id="@+id/txt1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center"
android:textColor="#004445"
android:textSize="29sp" />
</LinearLayout>
и activity_main. xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primaryColor"
xmlns:ads="http://schemas.android.com/apk/res-auto"
tools:context=".MainActivity">
<include layout="@layout/app_bar"/>
<LinearLayout
android:layout_below="@+id/toolbar"
android:layout_above="@+id/ad"
android:layout_margin="16dp"
android:padding="16dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.twotoasters.jazzylistview.JazzyListView
android:id="@+id/list"
android:layout_width="match_parent"
android:divider="@null"
android:layout_height="wrap_content"
/>
</LinearLayout>
<RelativeLayout
android:gravity="center"
android:layout_gravity="center"
android:background="@color/primaryColor"
android:layout_alignParentBottom="true"
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="ca-app-pub-3940256099942544/6300978111" />
</RelativeLayout>
</RelativeLayout>
Вы можете мне помочь?