Activity 统一入口
This commit is contained in:
@ -3,7 +3,9 @@ package com.gh.gamecenter;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.widget.SwipeRefreshLayout;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
@ -76,6 +78,14 @@ public class VoteActivity extends BaseActivity implements SwipeRefreshLayout.OnR
|
||||
private LinearLayoutManager layoutManager;
|
||||
|
||||
|
||||
@NonNull
|
||||
public static Intent getIntent(Context context, String gameName, String gameId) {
|
||||
Intent intent = new Intent(context, VoteActivity.class);
|
||||
intent.putExtra("gameName", gameName);
|
||||
intent.putExtra("gameId", gameId);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_vote;
|
||||
|
||||
Reference in New Issue
Block a user