Android 无法将页面指示器(白点)稍微设置到按钮上方

Android 无法将页面指示器(白点)稍微设置到按钮上方,android,android-viewpager,android-xml,Android,Android Viewpager,Android Xml,我正在将库用于滑块和页面指示器,但无法将页面指示器(白点)稍微设置到按钮上方 我附上快照如何来后,使用下面的代码 请告诉我,我如何设置白色圆点40dp以上的按钮 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/to

我正在将库用于滑块和页面指示器,但无法将页面指示器(白点)稍微设置到按钮上方

我附上快照如何来后,使用下面的代码

请告诉我,我如何设置白色圆点40dp以上的按钮

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:custom="http://schemas.android.com/apk/res-auto"
    android:id="@+id/fullscreen_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ff0000"
    tools:context="com.a98fit.neeraj.a98fit.SplashActivity">

    <com.daimajia.slider.library.SliderLayout
        android:id="@+id/slider"
        android:layout_width="match_parent"
        custom:pager_animation="Accordion"
        custom:auto_cycle="true"
        custom:indicator_visibility="visible"
        custom:pager_animation_span="1100"
        android:layout_height="match_parent"
        >
    </com.daimajia.slider.library.SliderLayout>

    <com.daimajia.slider.library.Indicators.PagerIndicator
        android:id="@+id/custom_indicator2"
        style="@style/AndroidImageSlider_Corner_Oval_Orange"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="90dp"
       />

    <Button
        android:text="@string/skip"
        android:background="@drawable/button_corner"
        android:backgroundTint="#2DC9D7"
        android:layout_width="310dp"
        android:layout_height="38dp"
        android:id="@+id/btn_skip"
        android:layout_marginBottom="55dp"
        android:layout_alignParentBottom="true"
        android:layout_marginLeft="30dp"
        android:layout_marginRight="30dp"
        />

    <TextView
            android:text="@string/alreadylogin"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="#283D65"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="20dp"
            android:layout_marginBottom="26dp"
            android:id="@+id/textView" />

</RelativeLayout>



所用库的链接

您的父布局是一个
相对布局
,因此您可以使用上面的
布局属性

<com.daimajia.slider.library.Indicators.PagerIndicator
    android:id="@+id/custom_indicator2"
    style="@style/AndroidImageSlider_Corner_Oval_Orange"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="40dp"
    android:layout_above="@id/btn_skip" />


上方布局中的不工作错误以及按钮不工作的边距40 dp删除圆点指示器和按钮不工作之间的边距后,上方布局中的错误放置
页面指示器
按钮下的xml代码
代码,或使用新文件中声明的用于btn\u跳过的标识符。可能btn_跳过id还不可见。