Skip to content

Commit

Permalink
[UPDATE] update DIff Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
triandamai committed Feb 8, 2021
1 parent e0ad8ae commit 809eb83
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.trian.singleadapter;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;

public class TestActivity extends AppCompatActivity {
private RecyclerView rv;
private SingleAdapter<String> adapter;
Expand All @@ -15,11 +15,11 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_test);
rv = findViewById(R.id.rv);
adapter = new SingleAdapter<>(R.layout.itemtest, onEventClick)
.withRecyclerView(rv);
adapter = new SingleAdapter<>(R.layout.itemtest, onEventClick);


}

private onEventClick<String> onEventClick = new onEventClick<String>() {
@Override
public void onClick(onEventType eventType, String payload, int position) {
Expand Down

0 comments on commit 809eb83

Please sign in to comment.