Android Question Material.DayNight

Ishmael

Member
How can I add Theme.Material.DayNight to my app?

I tried Theme.MaterialComponents.DayNight and the above, and I get compilation error that the component does not exist in theme.

Please help,
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

Add a reference to AppCompat and add this to the activity code:
B4X:
#Extends: android.support.v7.app.AppCompatActivity
 
Upvote 0
Top