Not sure if this is a working solution and answer, but my inputs started playing on Android after commenting that everything created chaos on my Android text inputs (HTC2.3) and selects
-webkit-backface-visibility: hidden; -webkit-transform: rotateY(0deg); -moz-transform: rotateY(0deg); transform: rotateY(0deg);
If you want to style the default input, I use the following:
::-webkit-input-placeholder { color:#555555; } :-moz-placeholder { color:#555555; } .inField label { color:#555555; cursor: text; }
After commenting on the first web whales, Android is working fine for me. However, I surpass many other things.
Also view the screenshot below:
What I did with my inputs was to create a list, put all of my inputs into list items, and remove all JQM-CSS inputs. This should give you transparent input sitting on top of the list item, which, it seems to me, looks really good. You can also add labels to the inputs, my example is configured to work with the label inField plugin, so you already have all these classes on board.
Screenshot from my Android HTC 2.3.5 and shows the input type = "search". This is a list search filter that I stripped of most JQM-css. I removed it from the list down, placed it in my list of forms, added a shortcut (I donโt see if it is active) and shared all CSS, including the icons.
Here is an example of how I make my form lists:
<ul data-role="listview" data-inset="true" class="inputList"> <li data-role="fieldcontain" data-icon="false" class="inField ui-btn ui-corner-top" data-theme="c"> <div class="ui-btn-inner" aria-hidden="true"><div class="ui-btn-text"> <label for="item">item</label> <input type="text" name="item" id="item" /> </div></div> </li> <li data-role="fieldcontain" data-icon="false" class="inField ui-btn ui-corner-bottom" data-theme="c"> <div class="ui-btn-inner" aria-hidden="true"><div class="ui-btn-text"> <label for="item2">item2</label> <input type="text" name="item2" id="item2" /> </div></div> </li> </ul>
CSS
.inputList li div.ui-btn-inner { background: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; } .inputList label { margin: 3px 0 0 !important; }
Hope this is all CSS. If you are trying to fix this and it looks concise, let me know.
Working with this looks very good on my HTC 2.3.4. My CSS still needs to be polished. I need to reduce the width of the inputs and align: center, so the borders of the bottom list remain visible.
Also, this would be a good solution for Android starchy inputs. Just split all the JQM-CSS and put listview-li.
