瀏覽單個文章
公不
*停權中*
 

加入日期: Dec 2010
文章: 341
本來用Code呈現Layout是打算這樣做

代碼:
mylayou= new RelativeLayout(Main.this);
mylayou.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
mylayou.setX(0.0f);
mylayou.setY(0.0f);
mylayou.setId(10);;
mylayou.getLayoutParams().width=global_val.total_width;
mylayou.getLayoutParams().height=global_val.total_height;

LayoutInflater inflater = (LayoutInflater)Main.this.getSystemService(LAYOUT_INFLATER_SERVICE);

View alertView = inflater.inflate(10, null);


結果不行
舊 2014-06-01, 01:57 AM #3
回應時引用此文章
公不離線中