`
virgo93
  • 浏览: 528 次
  • 性别: Icon_minigender_1
  • 来自: 成都
最近访客 更多访客>>
社区版块
存档分类
最新评论

java代码实现HTML

    博客分类:
  • html
阅读更多
typeindex = 0; 
        adindex = 0; 
        for(int i = 0; i <list.size();i++){ 
            final int tempint = i; 
            String flag = list.get(i).getFlg(); 
            RelativeLayout rel = new RelativeLayout(Act.this); 
            rel.setGravity(Gravity.CENTER_HORIZONTAL); 
            RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 
                    ViewGroup.LayoutParams.WRAP_CONTENT); 
            if("1".equals(flag)){ 
                TextView t = new TextView(Act.this); 
                t.setText("类 型:"); 
                t.setTextColor(R.color.define_blue); 
                t.setTextSize(18); 
                t.setId(1); 
                RelativeLayout rel2 = new RelativeLayout(Act.this); 
                RelativeLayout.LayoutParams lp2 = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 
                    ViewGroup.LayoutParams.WRAP_CONTENT); 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics