【问题标题】:RecyclerView.Adapter why there is a method with big letterRecyclerView.Adapter 为什么会有大写字母的方法
【发布时间】:2021-09-16 10:59:29
【问题描述】:

您好,我想了解 RecyleView.Adapter 类。 我不明白为什么会有大写字母的方法。 就像我知道的那样,我应该使用带有大首字母的类名称,然后使用点+方法名称或 用小写字母的对象。有大写的类名和大写的方法。

【问题讨论】:

标签: java android class


【解决方案1】:

“适配器”是一个嵌套抽象类

public static abstract class RecyclerView.Adapter extends Object

【讨论】:

    猜你喜欢
    • 2013-06-25
    • 1970-01-01
    • 1970-01-01
    • 2019-03-21
    • 1970-01-01
    • 2022-09-30
    • 2012-10-11
    • 2021-01-06
    相关资源
    最近更新 更多