android–TextInputLayout后缀前缀

android–TextInputLayout后缀前缀,第1张

概述我想为TextInputLayout添加后缀.一个例子来自material.io有没有标准的解决方案?解决方法:没有标准的解决方案,我使用textView右侧的textInputLayout和editText填充.<RelativeLayoutandroid:layout_width="match_parent"android:layout_height

我想为TextinputLayout添加后缀.
一个例子来自material.io

有没有标准的解决方案?

解决方法:

没有标准的解决方案,我使用textVIEw右侧的textinputLayout和editText填充.

        <relativeLayout            androID:layout_wIDth="match_parent"            androID:layout_height="wrap_content"            androID:layout_margintop="4dp"            androID:gravity="bottom">            <androID.support.design.Widget.TextinputLayout                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:hint="Hint"                app:errorEnabled="true">                <androID.support.v7.Widget.AppCompatEditText                                        androID:layout_wIDth="match_parent"                    androID:layout_height="wrap_content"                    androID:paddingRight="80dp" />            </androID.support.design.Widget.TextinputLayout>            <androID.support.v7.Widget.AppCompatTextVIEw                androID:layout_wIDth="wrap_content"                androID:layout_height="wrap_content"                androID:layout_alignParentRight="true"                androID:layout_centerInParent="true"                androID:paddingBottom="12dp"                androID:paddingRight="8dp"                androID:text="rightLabel" />        </relativeLayout>
总结

以上是内存溢出为你收集整理的android – TextInputLayout后缀/前缀全部内容,希望文章能够帮你解决android – TextInputLayout后缀/前缀所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1096561.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存