Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はAndroidにかなり慣れていません。ボタンのタップを検出する必要があるときのアクティビティで、OnClickListener を実装します。現在のアクティビティでは、「YouTubePlayer.OnInitializedListener」を実装する必要があるため、OnClickListener を拡張できません。クリック イベントを検出するにはどうすればよいですか?
実際View.OnClickListenerにはinterfaceです。あなたはimplementsそれを持っていextendます。Java は複数のクラスからの拡張をサポートしていませんが、複数のインターフェイスを実装できます
View.OnClickListener
interface
implements
extend