Guruh talabasi Axmedov Zokirjonning


Shohruh kurs, [23.01.20 11:05]


Download 0.78 Mb.
bet10/10
Sana28.12.2022
Hajmi0.78 Mb.
#1020627
1   2   3   4   5   6   7   8   9   10
Bog'liq
individual proyekt (2)

Shohruh kurs, [23.01.20 11:05]
package com.example.tomreaddle.kutubxona;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.EditText;
import android.widget.TextView;


import com.example.tomreaddle.kutubxona.DB.DBHelper;
import com.example.tomreaddle.kutubxona.POJO.Adapter;
import com.example.tomreaddle.kutubxona.POJO.AdapterGroup;
import com.example.tomreaddle.kutubxona.POJO.book;
import com.example.tomreaddle.kutubxona.POJO.bookGroup;


import java.util.List;


public class base extends AppCompatActivity {


RecyclerView booksRecycler;
DBHelper dbHelper;
private List list_book;
private AdapterGroup adapter;
TextView count;


@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.base);


booksRecycler = findViewById(R.id.recGroupBy);
dbHelper = new DBHelper(this);
booksRecycler.hasFixedSize();
booksRecycler.setLayoutManager(new LinearLayoutManager(this));
list_book = dbHelper.groupBy();
adapter = new AdapterGroup(list_book , this);
booksRecycler.setAdapter(adapter);


//count = findViewById(R.id.count);
//count.setText(dbHelper.count());
}
}


Download 0.78 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling