Tecnologia do Blogger.
RSS

[androidbrasil-dev] Lista de parâmentros com SoapObject

Galera, tenho a seguinte estrutura:

            SoapObject params = new SoapObject();
            params.addProperty("NCodCli", codCli);

            SoapObject paramFoto = new SoapObject();
            for (Bitmap bitmap : lFotos) {
                byte[] bImg = Functions.bitmapToByteArrayOutputStream(bitmap).toByteArray();
                String b64 = Base64.getEncoder().encodeToString(bImg);

                paramFoto.addProperty("AFoto", b64);
            }
            params.addProperty("AListaFoto", paramFoto);


A propriedade "AListaFoto" é uma lista de "AFoto". Do jeito que fiz, está salvando somente a última imagem, como só tivesse um único filho "AFoto".

<AListaFoto>
    <AFoto>x3</AFoto> 
</AListaFoto>

Como faço para criar essaa estrutura usando o soapObject? 

<AListaFoto>
    <AFoto>x1</AFoto>
    <AFoto>x2</AFoto>  
    <AFoto>x3</AFoto> 
</AListaFoto>
  
--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn_QtHmJKBH3uQBV%2Bbkfnzv95Mjnc8TVx5em%2BJM3j-1U3Q%40mail.gmail.com.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

[androidbrasil-dev] Manipular tamanho da foto tirada num ImageView

Galera, eu criei uma galeria horizontal para mostrar as fotos em miniatura que o cara vai tirar pelo App.

Eu capturo o bitmap da foto tirada e jogo numa lista de imageView. Até aqui tudo funciona perfeitamente:

            Bitmap bitmap = (Bitmap) data.getExtras().get("data");
            ImageView iv = new ImageView(getActivity());
            iv.setImageBitmap(bitmap);
            lPhotos.add(iv);



Implementei o click na recycleView para abrir um dialog e mostrar a foto em tela inteira. Porém ao clicar a imagem permanece do mesmo tamanho da imageView da galeria.



Como fazer para mostrar a foto pegando todo o espaço disponível? 

O Bitmap que eu pego a partir da câmera e jogo para a imageView continua com seu tamanho original no momento da foto? Ou preciso fazer algum tratamento?

Quem puder me dar um norte agradeço, porque eu não entendo o que acontece.

--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn-i7ANggy23%3DvTiCnP5jD%3DqFSG_Wo-VV-ugc4%3DUmgySAQ%40mail.gmail.com.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Re: [androidbrasil-dev] Scroll horizontal na listview

Bom dia 

@Felipe Aron, RecycleView chegou a um tempo atrás para substituir o ListView e GridView basicamente.

Sem falar que com ele vc pode mostrar uma grande quantidade de itens na tela enquanto ele minimiza o uso de memória. 

Então, tá mais do que certo focar nele.      

Em sex., 29 de jan. de 2021 às 09:37, Felipe Aron <felipearon@gmail.com> escreveu:
Achei o RecycleView muito melhor e mais fácil de implementar do que o Listview.

Vou começar a usar ele a partir de agora. Vou me aprofundar melhor nele.

Em qui., 28 de jan. de 2021 às 18:18, Carlos Alberto Pinto <caneto@gmail.com> escreveu:
Exatamente o que tive que fazer.

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 16:59, Felipe Aron <felipearon@gmail.com> escreveu:
Consegui resolver. Usei RecycleView, muito melhor que listView. 

Setei a orientação do layout para Horizontal:

RecyclerView.LayoutManager layout = new LinearLayoutManager(this, HORIZONTAL, false);
rvPhotos.setLayoutManager(layout);

Em qui., 28 de jan. de 2021 às 13:39, Carlos Alberto Pinto <caneto@gmail.com> escreveu:
Neste site tem varias classes https://android-arsenal.com/search?q=Scroll+horizontal

Só acho que em Listview, não rola. (Não consegui)

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 11:31, Felipe Aron <felipearon@gmail.com> escreveu:
Galera, qual a melhor forma de criar uma listview com scroll horizontal?

O que eu preciso é ter uma lista de imagens, que possa rolar horizontalmente.

--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn8mMkdRcR2xSvMnqKM5R3SvUM2P%3DcDfrGH0EG%2BynXKqmQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mciYbsB2RL6VPXmukx%2BxBEmZPru4__3TUyK4y8joDqNg%40mail.gmail.com.


--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn_akaCwKBweiHvg%2BW3bK4A0wVu%2BCsnmfeMNzGy9QuMfxg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mcN0ocAGGKeo8sk-UftZKM6UkBQgiOzjPw2aqBD7JZTg%40mail.gmail.com.


--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn_CnPTeJAg0a-Zuic33etKeGFbez6%3DJgn651FmbZxe32g%40mail.gmail.com.


--
Rudson Lima ( live-O ) Desenvolvedor Android
Contato +55 85 87050560 - Fortaleza-ce
Social facebook | google+ | linkedin

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAAJtjtfQwuuLw0JQDU%2BmnJixp1StCoXFY6bFmYKoRxX9%3D-3sfQ%40mail.gmail.com.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Re: [androidbrasil-dev] Scroll horizontal na listview

Achei o RecycleView muito melhor e mais fácil de implementar do que o Listview.

Vou começar a usar ele a partir de agora. Vou me aprofundar melhor nele.

Em qui., 28 de jan. de 2021 às 18:18, Carlos Alberto Pinto <caneto@gmail.com> escreveu:
Exatamente o que tive que fazer.

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 16:59, Felipe Aron <felipearon@gmail.com> escreveu:
Consegui resolver. Usei RecycleView, muito melhor que listView. 

Setei a orientação do layout para Horizontal:

RecyclerView.LayoutManager layout = new LinearLayoutManager(this, HORIZONTAL, false);
rvPhotos.setLayoutManager(layout);

Em qui., 28 de jan. de 2021 às 13:39, Carlos Alberto Pinto <caneto@gmail.com> escreveu:
Neste site tem varias classes https://android-arsenal.com/search?q=Scroll+horizontal

Só acho que em Listview, não rola. (Não consegui)

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 11:31, Felipe Aron <felipearon@gmail.com> escreveu:
Galera, qual a melhor forma de criar uma listview com scroll horizontal?

O que eu preciso é ter uma lista de imagens, que possa rolar horizontalmente.

--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn8mMkdRcR2xSvMnqKM5R3SvUM2P%3DcDfrGH0EG%2BynXKqmQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mciYbsB2RL6VPXmukx%2BxBEmZPru4__3TUyK4y8joDqNg%40mail.gmail.com.


--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn_akaCwKBweiHvg%2BW3bK4A0wVu%2BCsnmfeMNzGy9QuMfxg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mcN0ocAGGKeo8sk-UftZKM6UkBQgiOzjPw2aqBD7JZTg%40mail.gmail.com.


--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn_CnPTeJAg0a-Zuic33etKeGFbez6%3DJgn651FmbZxe32g%40mail.gmail.com.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Re: [androidbrasil-dev] Scroll horizontal na listview

Exatamente o que tive que fazer.

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 16:59, Felipe Aron <felipearon@gmail.com> escreveu:
Consegui resolver. Usei RecycleView, muito melhor que listView. 

Setei a orientação do layout para Horizontal:

RecyclerView.LayoutManager layout = new LinearLayoutManager(this, HORIZONTAL, false);
rvPhotos.setLayoutManager(layout);

Em qui., 28 de jan. de 2021 às 13:39, Carlos Alberto Pinto <caneto@gmail.com> escreveu:
Neste site tem varias classes https://android-arsenal.com/search?q=Scroll+horizontal

Só acho que em Listview, não rola. (Não consegui)

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 11:31, Felipe Aron <felipearon@gmail.com> escreveu:
Galera, qual a melhor forma de criar uma listview com scroll horizontal?

O que eu preciso é ter uma lista de imagens, que possa rolar horizontalmente.

--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn8mMkdRcR2xSvMnqKM5R3SvUM2P%3DcDfrGH0EG%2BynXKqmQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mciYbsB2RL6VPXmukx%2BxBEmZPru4__3TUyK4y8joDqNg%40mail.gmail.com.


--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn_akaCwKBweiHvg%2BW3bK4A0wVu%2BCsnmfeMNzGy9QuMfxg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mcN0ocAGGKeo8sk-UftZKM6UkBQgiOzjPw2aqBD7JZTg%40mail.gmail.com.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Re: [androidbrasil-dev] Scroll horizontal na listview

Consegui resolver. Usei RecycleView, muito melhor que listView. 

Setei a orientação do layout para Horizontal:

RecyclerView.LayoutManager layout = new LinearLayoutManager(this, HORIZONTAL, false);
rvPhotos.setLayoutManager(layout);

Em qui., 28 de jan. de 2021 às 13:39, Carlos Alberto Pinto <caneto@gmail.com> escreveu:
Neste site tem varias classes https://android-arsenal.com/search?q=Scroll+horizontal

Só acho que em Listview, não rola. (Não consegui)

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 11:31, Felipe Aron <felipearon@gmail.com> escreveu:
Galera, qual a melhor forma de criar uma listview com scroll horizontal?

O que eu preciso é ter uma lista de imagens, que possa rolar horizontalmente.

--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn8mMkdRcR2xSvMnqKM5R3SvUM2P%3DcDfrGH0EG%2BynXKqmQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mciYbsB2RL6VPXmukx%2BxBEmZPru4__3TUyK4y8joDqNg%40mail.gmail.com.


--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn_akaCwKBweiHvg%2BW3bK4A0wVu%2BCsnmfeMNzGy9QuMfxg%40mail.gmail.com.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Re: [androidbrasil-dev] Scroll horizontal na listview

Neste site tem varias classes https://android-arsenal.com/search?q=Scroll+horizontal

Só acho que em Listview, não rola. (Não consegui)

Carlos Alberto da C. P Neto

E-mail: caneto@gmail.com
 






Em qui., 28 de jan. de 2021 às 11:31, Felipe Aron <felipearon@gmail.com> escreveu:
Galera, qual a melhor forma de criar uma listview com scroll horizontal?

O que eu preciso é ter uma lista de imagens, que possa rolar horizontalmente.

--
Developer & Digital Marketer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn8mMkdRcR2xSvMnqKM5R3SvUM2P%3DcDfrGH0EG%2BynXKqmQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_mciYbsB2RL6VPXmukx%2BxBEmZPru4__3TUyK4y8joDqNg%40mail.gmail.com.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS