I'm re-writing my app with this layout in Android (using Android Studio 3.6 & Java 8) and noticed that I can't directly set the background color of an EditText
or Spinner
because the background used contains the e.g. EditText
's line (the line the text is written on).
To work around that in my iOS app I simply gave that UI element (with an otherwise transparent background) a View
parent that uses the right background color. In Android Studio this works the same way if I use an e.g. LinearLayout
as parent but I don't need that layout's full functionality and I'm worried that "abusing" LinearLayout
s like this multiple times might affect performance.
There is a View
widget in Android Studio but it's not possible to add an EditText
or Spinner
as its child.
Are there any layouts/views that can be added via Android Studio's UI builder or through xml and that act as the "empty" container I need? What's the best layout to use performance-wise?