- 浏览: 5381 次
- 性别:
- 来自: 梧州
最新评论
文章列表
private View inflateView( Context context, int resource ) {
LayoutInflater inflater = ( LayoutInflater ) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE );
return inflater.inflate( resource, null );
}
可复用View的Fragment
- 博客分类:
- Android小笔记
package com.maccha.controller;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class PageFragment extends Fragment {
private View view = nul ...