package com.huawei.hwmdemo.view;

import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.huawei.hwmdemo.R;
import com.huawei.hwmdemo.adapter.ToastLogsAdapter;
import com.huawei.hwmdemo.utils.DemoUtil;

public class ToastLogsActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_toast_log);
        RecyclerView recyclerView = findViewById(R.id.rv_toast_log);
        ToastLogsAdapter adapter = new ToastLogsAdapter(DemoUtil.getToastLogs());
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(adapter);
    }

}
