LinearLayout 设背景

  LinearLayout layout = (LinearLayout) LayoutInflater.from(this).inflate(R.layout.senec, null);
  layout.addView(_glSurfaceView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
  setContentView(layout);

 

 

 

View lookupitem = LayoutInflater.from(this).inflate(R.layout.stock_lookup_item, null);
       
        LayoutParams paramsitem =new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
        View lookuphead = LayoutInflater.from(this).inflate(R.layout.stock_lookup_head, null);
        LayoutParams paramshead =new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
        lookupitem.setLayoutParams(paramsitem);

你可能感兴趣的:(LinearLayout 设背景)