jaxim
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018
12:55 PM
Left padding of MiniKeyboard textEditBox
I replaced the background of the MinKeyboard textEditBox using the backgroundUri property. When I do this, the text of the textbox is completely left justified. There is no more padding on the left side of the textfield. If I replace the backgroundUri, how do I ensure there is left side padding?
5 REPLIES 5
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018
02:54 PM
Re: Left padding of MiniKeyboard textEditBox
Did you try setting TextEditBox width to something less than the keyboard / background image width?
aspiring
jaxim
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018
09:10 PM
Re: Left padding of MiniKeyboard textEditBox
I just tried and the text does get smaller and is centered justified compared to the keyboard but so does the textfield's background.
So I want the textfield background to keep the same width but the textfield to have a narrower width or have padding around its left and right sides.
So I want the textfield background to keep the same width but the textfield to have a narrower width or have padding around its left and right sides.
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018
09:33 AM
Re: Left padding of MiniKeyboard textEditBox
yeah that's a pain, don't see any way to distinguish the text from the background; you could maybe position a separate fake background (poster) over it and maybe get it to work?
aspiring

georgejecook
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2018
07:04 PM
Re: Left padding of MiniKeyboard textEditBox
I personally made my own text box.. since then though; I simply add spaces to text I want to pad. It's just easier.
George Cook
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook
Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook
Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
fyb3roptik
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024
11:16 AM
Re: Left padding of MiniKeyboard textEditBox
Came here to say, using a 9 patch image and adding content padding solves this issue.
https://romannurik.github.io/AndroidAssetStudio/nine-patches.html
Using this link, just drag n drop your image, then set Stretch Region to Auto Stretch. Click on Content Padding next and drag left/right side to where you want it. Save and use the appropriate size XHDPI for me.