ws123 / VoiceLine

468 stars 95 forks source link

在AndroidStudio上编译不过 #8

Open 283958849 opened 6 years ago

283958849 commented 6 years ago

在AS中,有导入包,并且是自动下载到了项目中,但是在引用时,layout文件中编译不过, 从 voiceView往下都不能识别,为什么呢?谢谢~~~

<com.carlos.voiceline.mylibrary.VoiceLineView
    android:id="@+id/voicLine"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/white"

    voiceView:maxVolume="200"   //从这行往下,都会报错,红色的错误
    voiceView:middleLine="@android:color/holo_red_light"
    voiceView:middleLineHeight="1dp"
    voiceView:fineness="three"
    voiceView:rectSpace="2dp"
    voiceView:rectWidth="5dp"
    voiceView:sensibility="four"
    voiceView:viewMode="line"
    voiceView:voiceLine="@android:color/holo_red_light" />

注释掉这些voiceView:就可以了

kilinwei commented 6 years ago

根布局加上这个,虽然你可能已经解决了 xmlns:voiceView="http://schemas.android.com/apk/res-auto"