小编Nik*_*har的帖子

在 RecyclerView 中下拉刷新

忍受我的英语

每当在我的数据库中添加任何数据时,都应在刷新时反映数据。

还有一件事你能帮我关于如果添加任何新数据我如何创建通知

我在用:

1) Xampp for Apache

2) 微软 SQL 服务器

这是我的 RecyclerActivtiy 代码:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate( savedInstanceState );
    setContentView( R.layout.activity_engineer_recycler );
    Bundle bundle = getIntent().getExtras();
    service_id = bundle.getString( "empid" );
    type_id = bundle.getString( "type" );
    if(type_id.equals( "pending" )){
        this.setTitle( "Pending Complaint " );
    }else if(type_id.equals( "history" )){
        this.setTitle( "Complaint History" );
    }

    Calendar calendar = Calendar.getInstance();
    SimpleDateFormat format = new SimpleDateFormat( "dd/MM/yyyy" );
    String time = format.format( calendar.getTime() );
    Log.e( TAG, "Time" +time );

    new …
Run Code Online (Sandbox Code Playgroud)

android swipe android-recyclerview

1
推荐指数
1
解决办法
5367
查看次数

标签 统计

android ×1

android-recyclerview ×1

swipe ×1