Android-如何在Android studio中使用FloatingLabel

Android-如何在Android studio中使用FloatingLabel,android,android-studio,android-gradle-plugin,Android,Android Studio,Android Gradle Plugin,我有一个使用的旧项目,当我尝试将这个旧项目导入android studio时,我遇到了一些问题 其中之一是导入浮动标签库 更新问题 作为我得到的答案,我应该使用 这是我的浮动标签中的示例代码 <com.hardik.floatinglabel.FloatingLabelView android:id="@+id/mob" android:layout_width="fill_parent" android:layo

我有一个使用的旧项目,当我尝试将这个旧项目导入android studio时,我遇到了一些问题

其中之一是导入浮动标签库

更新问题

作为我得到的答案,我应该使用

这是我的浮动标签中的示例代码

 <com.hardik.floatinglabel.FloatingLabelView
            android:id="@+id/mob"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="5dip"
            android:layout_marginRight="5dip"
            android:layout_marginTop="5dip"
            android:padding="5dp"
            floatview:floatHintText="@string/mob"
            floatview:floatHintTextColorFocused="@color/blue"
            floatview:floatHintTextColorUnFocused="@color/green"
            floatview:floatHintTextStyle="bold"
            floatview:textBackground="@drawable/edt_bg" />


如何在
TextInputLayout

中处理相同的结果Android设计支持库中引入了Android浮动标签,以在EditText上显示浮动标签

xml代码

<android.support.design.widget.TextInputLayout
    android:id="@+id/input_layout_password"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

        <EditText
            android:id="@+id/input_password"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/hint_email" />

</android.support.design.widget.TextInputLayout>

您正在将Eclipse项目导入Android Studio吗?是的,但以我的方式,手动导入项目结构不同用于编辑文本的浮动标签现在可以通过Android设计库正式使用。也许你可以放弃图书馆:谢谢你的回答,但我更新了我的问题,我需要接近我在浮动标签中得到的相同结果TextInputLayout@minafawzyiOS和Android有不同的设计准则。您不应该使用完全相同的设计。
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
}