第八周学习进度

这周主要是第一阶段的冲刺,对于学习安卓和软件开发有较大帮助,知道了很多以前不知道的东西,下面我进行总结:

花时间(包括上课) 2h上课+4*7=28编程+4h查资料=34h
代码量(行) 433行
博客量(篇) 1
了解到知识

1.服务器端已经学会了配置。

      http://123.206.26.229:8080

2.安卓学会了一个用字符分割字符串,然后显示到表格里边。

String Str=nn;
        
        String [] temp = {};  
        temp = Str.split("-");  
       // tvshow.setText(temp[0] + " linc " + temp[1]+" linc "+temp[2]);   
        for(int row=0;row<temp.length/3;row++)
        {
            TableRow tableRow=new TableRow(BiaoActivity.this);
            tableRow.setBackgroundColor(Color.rgb(222,220,210));
            for (int col=0;col<3;col++)
            {
                TextView tv=new TextView(BiaoActivity.this);
                tv.setText("    "+temp[col+row*3]);
                tableRow.addView(tv);    
            }
            tableLayout.addView(tableRow,new TableLayout.LayoutParams(FP,WC));
        }

3.想要将数据查出来并显示到表里边,还有一个BUG未解决,每运行一次,都会叠加显示到下边。

原文地址:https://www.cnblogs.com/cnyulei/p/5513451.html