小编eug*_*eek的帖子

使用Chrome自定义标签发布数据

有没有办法使用自定义Chrome标签发送带有网址的帖子数据?与WebView一样:

webView.postUrl(String url, byte[] postData)
Run Code Online (Sandbox Code Playgroud)

文档示例中找不到任何相关内容

android chrome-custom-tabs

8
推荐指数
1
解决办法
2642
查看次数

使用自定义适配器中的自定义ArrayList <MyOwnParseClass>在ListView中设置ParseFile图像

我使用ListView来显示解析的所有记录.使用名为ListadoObjetoParse的自定义类,它包含一些属性,如名称,地址ParseFile,最后一个包含记录的图像.包含所有内容的数据对象是ListadoObjetoParseArrayList,称为datos.尝试获取图像(ParseFile)时,问题出现在自定义适配器(RestaurantesAdapter)中,并从名为"datos"的对象填充listView.无法将图像作为ParseFile获取并转换为Bitmap以显示在listView中.我只看过一种使用GetDAtaInBackGround方法的方法.下面我展示了CustomAdapter和Class ListadoObjetoParse.

我很感激任何帮助,因为我长时间被困住了.非常感谢你

/ CUSTOM ADAPTER /

public class RestaurantesAdapter extends ArrayAdapter<ListadoObjetoParse> {
   private Context context;
   private ArrayList<ListadoObjetoParse> datos;

   public RestaurantesAdapter(Context context, ArrayList<ListadoObjetoParse> datos) {
      super(context, R.layout.activity_mostrar_listado_restaurantes, datos);
      this.context = context;
      this.datos = datos;
   }

   @Override
   public View getView(int position, View convertView, ViewGroup parent) {

         View item = LayoutInflater.from(context).inflate(
            R.layout.mostrar_listado_detalle_restaurante, null);


         final ImageView imagen = (ImageView) item.findViewById(R.id.imgRestaurante);

         //Here i fetch Image from the class …
Run Code Online (Sandbox Code Playgroud)

android listview adapter listviewitem parse-platform

0
推荐指数
1
解决办法
3143
查看次数