skip to Main Content

Android studio can't override default theme

I'm trying to assign a theme to a button with a custom background. It looks simply like this: <style name="button"> <item name="android:background">@drawable/buttonbackground</item> </style>‌ <Button android:theme="@style/button"/> The button keeps it's original background, but for TextView, for example, it works. <TextView android:theme="@style/button"/>…

VIEW QUESTION

Android Studio – Android Problem adding hint on a TextInputEditText

I want to make a custom dialog that I can re-use to configure some parameters. I added a default hint that I want to modify each time the user opens the Dialog. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent"…

VIEW QUESTION
Back To Top
Search