回答

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' 
} 
相關問題