moondroid / CoverFlow:App加载布局时崩溃

时间:2017-09-14 06:25:39

标签: java android xml android-manifest coverflow

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:coverflow="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/darker_gray"
    tools:context="com.mycompany.myapp.HomeNavigationActivity">


    <it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow
        android:id="@+id/coverflow"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        coverflow:coverHeight="200dp"
        coverflow:coverWidth="140dp"
        coverflow:maxScaleFactor="1.5"
        coverflow:reflectionGap="0px"
        coverflow:rotationThreshold="0.5"
        coverflow:scalingThreshold="0.5"
        coverflow:spacing="0.6" />

    <TextSwitcher
        android:id="@+id/title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="16dp"
        android:layout_alignParentBottom="true"
        android:layout_centerVertical="true" />

</RelativeLayout>

加载此布局时应用程序崩溃,其中包含it.moondroid.coverflow.components.ui.containers.FeatureCoverFlow

当我删除它时,活动很容易被加载而没有问题。

添加依赖项时出现了一个问题 错误如下:

错误:任务':app:processDebugManifest'执行失败。

  

清单合并失败:来自AndroidManifest.xml的属性应用程序@ label value =(我的应用程序):12:9-37       也出现在[com.github.moondroid.coverflow:library:1.0] AndroidManifest.xml:13:9-41 value =(@ string / app_name)。       建议:在AndroidManifest.xml:9:5-43:19中添加'tools:replace =“android:label”'以覆盖。

我尝试添加'tools:replace =“android:label”'来表示。然后这个错误就解决了。但我无法在活动中呈现此布局文件。帮帮我:(

0 个答案:

没有答案