回答

0

我建议你:steppers

然后创建一个空的布局,如:

<?xml version="1.0" encoding="utf-8"?> 
<com.stepstone.stepper.StepperLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:id="@+id/stepperLayout" 
    android:layout_width="wrap_content" 
    android:layout_height="match_parent" 
    app:ms_stepperType="dots" 
    app:ms_stepperFeedbackType="tabs|content|disabled_bottom_navigation" /> 

与你的活动布局最后补充包括:

<include layout="@layout/stepper_layout"/> 
0

以下是您的应用模块的build.gradle应该是什么样子。像评论中提到的@damian一样,你可能会缺少Maven存储库块。

apply plugin: 'com.android.application' 



repositories { 
    maven { url "https://jitpack.io" } 
} 


android { 
... 
} 

dependencies { 
    .... 
    compile 'com.github.fcannizzaro:material-stepper:1.0.2' 
} 
相关问题