小编Gan*_*iya的帖子

我可以在对话框中显示材料设计Snackbar吗?

我正在开发一个Android应用程序.在那我想在对话框中显示材料设计Snackbar.可能吗?如果是,那怎么样?

请帮我.

谢谢.

android material-design android-snackbar

11
推荐指数
2
解决办法
9505
查看次数

如何在eclipse中导入使用库的android studio项目?

当我们在eclipse中导入android studio项目时,它显示以下错误.

Android studio项目包含项目和库,当我们导入所有编译时错误解决但是当我们从eclipse运行项目时它显示错误.

project link =" https://github.com/glomadrian/material-code-input "而bellow是我的xml布局文件.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="10dp"
    android:background="#FFF"

    >


  <com.github.glomadrian.codeinputlib.CodeInput
      android:layout_marginTop="20dp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:hint_text="Pairing code"
      android:id="@+id/pairing"
      />

  <com.github.glomadrian.codeinputlib.CodeInput
      android:layout_marginTop="20dp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:underline_color="#457ad1"
      app:underline_selected_color="#9e1ace"
      app:text_color="#b12eff"
      app:hint_color="#77ce9d"
      app:hint_text="Pin code"
      app:codes="4"
      />

  <com.github.glomadrian.codeinputlib.CodeInput
      android:layout_marginTop="20dp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:underline_color="#d19385"
      app:underline_selected_color="#ce3a47"
      app:text_color="#5c282c"
      app:hint_color="#ce1087"
      app:hint_text="Cheat code"
      app:codes="8"
      />

  <com.github.glomadrian.codeinputlib.CodeInput
      android:layout_marginTop="20dp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:underline_color="#03A9F4"
      app:underline_selected_color="#3F51B5"
      app:text_color="#212121"
      app:hint_color="#03A9F4"
      app:hint_text="Hash code"
      app:codes="10"
      />

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

以下是截图.

在eclipse中导入android studio项目时出现运行时错误

eclipse import android runtime-error android-studio

8
推荐指数
1
解决办法
163
查看次数