增加收藏页面,优化登录流程
This commit is contained in:
35
app/src/main/java/com/gh/gamecenter/CollectionActivity.java
Normal file
35
app/src/main/java/com/gh/gamecenter/CollectionActivity.java
Normal file
@ -0,0 +1,35 @@
|
||||
package com.gh.gamecenter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.gh.base.BaseActivity;
|
||||
import com.gh.gamecenter.collection.CollectionFragment;
|
||||
|
||||
/**
|
||||
* Created by khy on 18/07/17.
|
||||
*/
|
||||
|
||||
public class CollectionActivity extends BaseActivity {
|
||||
|
||||
|
||||
public static final Intent getCollectionActivity(Context context) {
|
||||
Intent intent = new Intent(context, CollectionActivity.class);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_collection;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
initTitle("我的收藏");
|
||||
|
||||
getSupportFragmentManager().beginTransaction().replace(
|
||||
R.id.layout_fragment_content, CollectionFragment.newInstance(0)).commitAllowingStateLoss();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user