admin
2022-01-07 60e97a582feba0526c64d823fcf74e1cb97fd4c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.demo.app.ui.main;
 
import android.os.Bundle;
import android.util.Log;
import android.view.View;
 
import com.androidquery.AQuery;
import com.demo.app.R;
import com.demo.lib.common.RetainViewFragment;
 
public class HomeFragment extends RetainViewFragment {
 
    private static final String TAG = "HomeFragment";
    private AQuery mAquery;
 
    @Override
    public int getContentResource() {
        return R.layout.fragment_home;
    }
 
    @Override
    public void onCreateView(View contentView, Bundle savedInstanceState) {
        mAquery = new AQuery(contentView);
    }
 
    @Override
    public void onResume() {
        super.onResume();
        Log.i(TAG, "onResume");
    }
 
    @Override
    public void onPause() {
        Log.i(TAG, "onPause");
        super.onPause();
    }
}