android - AutoCompleteTextView float 提示

标签 android material-design android-support-library autocompletetextview android-textinputlayout

我已经尝试了很多,但无法使用支持中的 TextInputLayout 实现 AutoCompleteTextView float 提示。

有可能还是我需要使用外部库?

最佳答案

没有。

设计库本身就够了

像这样包含

<android.support.design.widget.TextInputLayout
    android:id="@+id/til_id"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="125dp"
    >

    <AutoCompleteTextView
        android:id="@+id/auto_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Id"
        android:singleLine="true"/>
</android.support.design.widget.TextInputLayout>

关于android - AutoCompleteTextView float 提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31988920/

相关文章:

java - 如何将 jar 文件转换为 apk 格式?

java - 如何从@String获取android非上下文类中的String

android - 抽屉导航打开和关闭的自定义动画

android - API 27 中 startActivityForResult 后崩溃

java - openOptionsMenu() 不适用于 appcompat-v7 22.1.0 或更新版本

java - 访问firebase数据库的.push键以更新android中的个人资料信息

java - 使用 SQLitestatement bindstring 方法代替简单的字符串连接来执行 sql 语句有什么优点

android - 如何在 ViewPager Android 中更改页面?

android - 抽屉导航图案 Material 设计

android - FragmentTransation setCustomAnimations 不起作用