Activity 统一入口

This commit is contained in:
kehaoyuan
2017-06-21 12:03:27 +08:00
parent 559710b4b4
commit 44e9b4da4d
36 changed files with 282 additions and 108 deletions

View File

@ -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;