简体   繁体   English

kivy android textinput焦点框突出显示?

[英]kivy android textinput focus box highlighting?

According to the docs: 根据文档:

You can set the focus to a Textinput, meaning that the input box will be highlighted and keyboard focus will be requested 您可以将焦点设置为Textinput,这意味着输入框将突出显示,并且将要求键盘焦点

When I set focus to a TextInput box (either by touching the box or text.focus = True ), the highlighting is barely visible. 当我将焦点设置为TextInput框(通过触摸框或text.focus = True )时,突出显示几乎不可见。 For that matter, the cursor is also barely visible. 因此,光标也几乎不可见。

Is there a way to make the highlighting and cursor more obvious? 有没有办法使突出显示和光标更明显? In particular, I'd like a thicker border, perhaps colored, and a thicker cursor. 特别是,我想要较粗的边框(可能是彩色的)和较粗的光标。

Visible focusing is basically changing one image into another - casual gray one into the one with bluish border. 可见对焦基本上是将一幅图像转换为另一幅图像,将随意的灰色图像转换为带有蓝色边框的图像。

Thicker border I don't think so, but with this PR you can change its width , which will result in a similar thing. 边框我认为不是,但是通过此PR,您可以更改其width ,这将导致类似的情况。

Then there's cursor_color which allows you to change, obviously, color of the cursor. 然后是cursor_color ,它显然可以让您更改光标的颜色。 And that's probably everything you can do with cursor without directly messing with the internals. 这可能是您可以使用游标进行的所有操作,而无需直接弄乱内部结构。

About highlighted background and other related properties you can use background_active and similar properties under that in the documentation. 关于突出显示的背景和其他相关属性,您可以在文档中使用background_active和类似属性。 Those are images which are in atlas by default, but you will use a casual separated image. 这些是默认情况下位于地图集中图像 ,但是您将使用随意分离的图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM