LoginSignup
2
0

More than 5 years have passed since last update.

AndroidBootstrapのボタンをfindViewByIdするときの注意

Last updated at Posted at 2017-08-25

AndroidBootstrapで作ったボタンをfindViewByIdする時は、

ダメな例
Button btn = (Button) findViewById(R.id.button_1);

ではなく

グッドな例
BootstrapButton btn = (BootstrapButton) findViewById(R.id.button_1);

とする。これのせいで小一時間潰した。

2
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
2
0