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.
我想重写而不创建从扩展的新类onDraw,这是我想要重写的行ListViewListView
onDraw
ListView
lv_booksList = (ListView) ll_container.findViewById(R.id.lv_booksList);
非常感谢
您不能*在运行时修改 Java 类,也不能在创建对象后更改其类型。如果要覆盖onDraw,唯一的方法是创建一个子类并实例化它。