diff --git a/main/src/main/java/com/yunbao/main/activity/RedPacketActivity.java b/main/src/main/java/com/yunbao/main/activity/RedPacketActivity.java index 858b7bce3..4de98d450 100644 --- a/main/src/main/java/com/yunbao/main/activity/RedPacketActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/RedPacketActivity.java @@ -1,11 +1,23 @@ package com.yunbao.main.activity; +import android.widget.TextView; + +import androidx.recyclerview.widget.RecyclerView; + import com.yunbao.common.activity.AbsActivity; import com.yunbao.main.R; public class RedPacketActivity extends AbsActivity { + private RecyclerView recyclerView; @Override protected int getLayoutId() { return R.layout.activity_red_packet; } + + @Override + public void init() { + super.init(); + ((TextView)findViewById(R.id.titleView)).setText("紅包記錄"); + recyclerView=findViewById(R.id.recyclerView); + } } diff --git a/main/src/main/res/layout/activity_red_packet.xml b/main/src/main/res/layout/activity_red_packet.xml index 34a60a41d..19ed25a3b 100644 --- a/main/src/main/res/layout/activity_red_packet.xml +++ b/main/src/main/res/layout/activity_red_packet.xml @@ -25,6 +25,7 @@ app:layout_constraintTop_toBottomOf="@+id/include3" />