解析JSON ListView和ImageView

时间:2015-09-24 16:53:46

标签: android json listview picasso

我想请你的帮助用jica使用picasso在listview中添加一个图像

protected void onPostExecute(String file_url) {
        // dismiss the dialog after getting the related idioms
        pDialog.dismiss();
        // updating UI from Background Thread
        runOnUiThread(new Runnable() {
public void run() {

    /**
     * Updating parsed JSON data into ListView
     * */
    ListAdapter adapter = new SimpleAdapter(


            ListResult.this, idiomsList,
            R.layout.list_view, new String[] { TAG_NM_FANTASIA, TAG_CEP, TAG_ENDERECO, TAG_FONE1, TAG_FONE2, TAG_FONE3
            , TAG_FAX, TAG_WEB_SITE, TAG_EMAILS, TAG_FACEBOOK, TAG_TWITTER, TAG_GOOGLEMAS, TAG_SELO300, TAG_MAPS, TAG_URL_MAPS, TAG_SOBRE_EMPRESA
            , TAG_APRESENTACAO, TAG_DESCRICAO, TAG_LOGOMARCA, },
            new int[] { R.id.txtNome, R.id.txtCep, R.id.txtEndreco, R.id.txtFone1, R.id.txtFone2, R.id.txtFone3, R.id.txtFax
                    , R.id.txtWebSite, R.id.txtEmails, R.id.txtFacebook, R.id.txtTwitter
                    , R.id.txtGoogleMas, R.id.txtSelo300, R.id.txtMaps
                    , R.id.txtUrlMaps, R.id.txtSobreEmpresa, R.id.txtApresentacao, R.id.txtDescricao, R.id.txtImg, });

    // updating listview
    setListAdapter(adapter);
}

我需要在listview中添加一张来自json

的图像

0 个答案:

没有答案