Listview或Gridview

时间:2014-10-13 21:29:36

标签: android listview android-listview android-studio android-gridview

我真的很困惑我应该在我的应用程序中显示哪个小部件。首先,我从Web服务收到3个向量:

for (int i = 0; i < intPropertyCount; i++) {                        
                        Object property = resultsRequestSOAP.getProperty(i);
                        if (property instanceof SoapObject) {
                            SoapObject DocTypeList = (SoapObject) property;
                            //CedulaUsuario
                            strUserDocument[i] = DocTypeList.getProperty("CedulaUsuario").toString();
                            //Observacion
                            strNeedsDescription[i] = DocTypeList.getProperty("Observacion").toString();
                            //Estado
                            strNeedStatus[i] = DocTypeList.getProperty("Respueta").toString();
                        }
                    }

直到完美,但我想在窗口小部件(Listview或gridView)中显示这些值,并在点击选项后,执行另一个操作;但不知道ListView或gridview是否对我需要的东西更有用。这就是我想要显示从WS收到的信息的方式:

Document    Description       status  --->Header
123456     Hello, Descr...      Yes
987654     Another Desc...      No 
654987     More, Descri...      Yes

非常感谢能够帮助我实现这一目标的任何示例,代码或链接。

1 个答案:

答案 0 :(得分:0)