Name technique for passing data from fragment/activity to fragment/activity with interfaces

后端 未结 3 782
庸人自扰
庸人自扰 2021-01-26 03:48

At school we\'re now learning on how to make fragments more universal by using interfaces. This technique is still kinda abstract and I don\'t really know when/how to use it.

3条回答
  •  礼貌的吻别
    2021-01-26 04:09

    You can simple create new Android Application project in eclipse. Then create Android Object (Fragment) with callback methods. This will give you an idea for interfaces.

    And then the same you can apply for activity to fragment.

提交回复
热议问题