Search in sources :

Example 1 with DownloadStatisticsListAdapter

use of de.danoeh.antennapod.adapter.DownloadStatisticsListAdapter in project AntennaPod by AntennaPod.

the class DownloadStatisticsFragment method onCreateView.

@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    View root = inflater.inflate(R.layout.statistics_activity, container, false);
    downloadStatisticsList = root.findViewById(R.id.statistics_list);
    progressBar = root.findViewById(R.id.progressBar);
    listAdapter = new DownloadStatisticsListAdapter(getContext());
    downloadStatisticsList.setLayoutManager(new LinearLayoutManager(getContext()));
    downloadStatisticsList.setAdapter(listAdapter);
    return root;
}
Also used : DownloadStatisticsListAdapter(de.danoeh.antennapod.adapter.DownloadStatisticsListAdapter) LinearLayoutManager(androidx.recyclerview.widget.LinearLayoutManager) View(android.view.View) RecyclerView(androidx.recyclerview.widget.RecyclerView) Nullable(androidx.annotation.Nullable)

Aggregations

View (android.view.View)1 Nullable (androidx.annotation.Nullable)1 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)1 RecyclerView (androidx.recyclerview.widget.RecyclerView)1 DownloadStatisticsListAdapter (de.danoeh.antennapod.adapter.DownloadStatisticsListAdapter)1