Permalink
Browse files

update README.md

  • Loading branch information...
1 parent c3281c5 commit 683c0b59b334dc4515ed9582b23ed37fe132da31 @gongwen committed Dec 23, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -42,13 +42,13 @@ public class NoticeMF extends MarqueeFactory<TextView, String> {
#### 设置列表数据
<pre>
-MarqueeFactory<TextView, String> marqueeFactory2 = new NoticeMF(this);
-marqueeFactory2.setData(datas);
+MarqueeFactory<TextView, String> marqueeFactory = new NoticeMF(this);
+marqueeFactory.setData(datas);
</pre>
#### 设置事件监听
<pre>
-marqueeFactory2.setOnItemClickListener(new MarqueeFactory.OnItemClickListener<TextView, String>() {
+marqueeFactory.setOnItemClickListener(new MarqueeFactory.OnItemClickListener<TextView, String>() {
@Override
public void onItemClickListener(MarqueeFactory.ViewHolder<TextView, String> holder) {
Toast.makeText(MainActivity.this, holder.data, Toast.LENGTH_SHORT).show();

0 comments on commit 683c0b5

Please sign in to comment.