LoginSignup
1
0

More than 5 years have passed since last update.

[Android] Material Button 使うとき、IllegalArgumentException予防。

Posted at
Caused by: java.lang.IllegalArgumentException: 
This component requires that you specify a valid TextAppearance attribute. 
Update your app theme to inherit from Theme.MaterialComponents (or a descendant).

style で activity のThemeを変えましょう


<style name="Theme.Custom" parent="Theme.MaterialComponents.NoActionBar">
</style>
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0