AndroidBootstrapで作ったボタンをfindViewByIdする時は、
ダメな例
Button btn = (Button) findViewById(R.id.button_1);
ではなく
グッドな例
BootstrapButton btn = (BootstrapButton) findViewById(R.id.button_1);
とする。これのせいで小一時間潰した。
More than 5 years have passed since last update.
AndroidBootstrapで作ったボタンをfindViewByIdする時は、
Button btn = (Button) findViewById(R.id.button_1);
ではなく
BootstrapButton btn = (BootstrapButton) findViewById(R.id.button_1);
とする。これのせいで小一時間潰した。
Register as a new user and use Qiita more conveniently