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.
ActivityA と B の2 つのsがActivity Bあります。Button OKButton OkActivity A
Activity
Activity B
Button OK
Button Ok
Activity A
内部にブール変数を設定しますButton ok
Button ok
1 つInterfaceのクラスを作成Boolean Methodし、特定のName インターフェイス クラス オブジェクトを初期化して1 つを作成し、クリックでActivity B割り当てて実装することができます。Boolean MethodButton OkinterfaceActivity A
Interface
Boolean Method
Name
interface