View多层视图

package comtest.example.admin.ztest.thread;

import android.view.View;
import comtest.example.admin.ztest.R;
import android.app.Activity;
import android.view.LayoutInflater;

public class TwwoActivity extends Activity {
    private PullToRefreshListView rlv_home_content;
    private ListView refreshableView;
    private Handler mHandler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            switch (msg.what) {
                case 1:
                    String test = msg.obj.toString();
                    processData(test);
                    break;
                default:
                    break;
            }
        }
    };

    @Override
    public View initView(LayoutInflater inflater) {
        View view = inflater.inflate(R.layout.fragment_news, null);
        rlv_home_content = (PullToRefreshListView) view.findViewById(R.id.map_rlv_home_content);
        refreshableView = rlv_home_content.getRefreshableView();
        View view_two = View.inflate(context, R.layout.item, null);
        refreshableView.addHeaderView(view_two);
        // 显示进度条
        ProgressDialogUtils.fragProgressDialog(context, "数据加载中...");
        getResult(lbString);
        return view;
    }
}

你可能感兴趣的:(View多层视图)