我正在为聋哑人制作应用程序,因此为应用程序创建了一个特定的键盘.现在,我想在EditText中设置图像,图像是聋哑人使用的符号,我想要这样的东西:
deaf-muet keyboard + EditText
在editText中,我只能设置它引用第一个字母的第一个符号,但我想为每个字母设置许多图像.
我使用了.setCompoundDrawablesWithIntrinsicBounds(),但它只给了我第一个字母.
如何在EditText或ViewText中设置多个图像?
解决方法:
试试这个,我希望它能帮助你
<EditText
android:id="@+id/editText1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/icon">
</EditText>
您可以尝试同样的事情:
android:drawableRight
android:drawabletop
android:drawableBottom
android:drawablePadding