想设计个类似凤凰新闻的AppWidget,这种效果该怎么做?
这有两个相同的item,该怎么实现复用?还是在一个layout文件中写死,使用ReomteViews去调用?
闭关修行中......
Create a new View class, which inherits from LinearLayout, and contains an ImageView and a TextView (attributes can be customized as needed), and you can reuse them.
Use RecycleView as container and inherit ViewHolder.
Well learn about viewholder
Create a new View class, which inherits from LinearLayout, and contains an ImageView and a TextView (attributes can be customized as needed), and you can reuse them.
Use RecycleView as container and inherit ViewHolder.
Well learn about viewholder