Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gongwen committed Dec 23, 2016
1 parent c3281c5 commit 683c0b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -42,13 +42,13 @@ public class NoticeMF extends MarqueeFactory<TextView, String> {


#### 设置列表数据 #### 设置列表数据
<pre> <pre>
MarqueeFactory<TextView, String> marqueeFactory2 = new NoticeMF(this); MarqueeFactory<TextView, String> marqueeFactory = new NoticeMF(this);
marqueeFactory2.setData(datas); marqueeFactory.setData(datas);
</pre> </pre>


#### 设置事件监听 #### 设置事件监听
<pre> <pre>
marqueeFactory2.setOnItemClickListener(new MarqueeFactory.OnItemClickListener<TextView, String>() { marqueeFactory.setOnItemClickListener(new MarqueeFactory.OnItemClickListener<TextView, String>() {
@Override @Override
public void onItemClickListener(MarqueeFactory.ViewHolder<TextView, String> holder) { public void onItemClickListener(MarqueeFactory.ViewHolder<TextView, String> holder) {
Toast.makeText(MainActivity.this, holder.data, Toast.LENGTH_SHORT).show(); Toast.makeText(MainActivity.this, holder.data, Toast.LENGTH_SHORT).show();
Expand Down

0 comments on commit 683c0b5

Please sign in to comment.