Você chama esse método na activity que chama o zxing?
Em 8 de julho de 2016 09:47, Arthur Ruppenthal <arthur.ruppenthal@gmail.com> escreveu:
Consegui:
public void setWide() { WindowManager window = activity.getWindowManager(); Display display = window.getDefaultDisplay(); int displayWidth = display.getWidth(); int displayHeight = display.getHeight(); if (displayHeight > displayWidth) { // This is portrait dimensions, but the barcode scanner is always in landscape mode. int temp = displayWidth; //noinspection SuspiciousNameCombination displayWidth = displayHeight; displayHeight = temp; } int desiredWidth = displayWidth * 9 / 10; int desiredHeight = Math.min(displayHeight * 3 / 4, 400); // Limit to 400px setScanningRectangle(desiredWidth, desiredHeight); } --2016-07-07 8:35 GMT-03:00 Arthur Ruppenthal <arthur.ruppenthal@gmail.com>:Quando na verdade gostaria que ele ocupasse toda a tela, como no anexo.2016-07-07 8:32 GMT-03:00 Arthur Ruppenthal <arthur.ruppenthal@gmail.com>:A integração eu fiz, o que quis dizer que é ele fica como no anexo.2016-07-07 8:23 GMT-03:00 Luiz Gustavo Mafra <lgmafra@gmail.com>:VlwVê se te ajuda ai.Fala Arthur,Fiz essa integração recentemente no meu app, seguindo esse link aqui https://github.com/journeyapps/zxing-android-embedded/blob/master/README.md--Em 7 de julho de 2016 08:01, Arthur Ruppenthal <arthur.ruppenthal@gmail.com> escreveu:--Bom dia senhores!Alguém sabe como fazer com que a integração com o ZXing use toda a extensão da tela para leitura do código de barras? Assim como é quando usamos app de bancos (Caixa, BB, etc...)Não sei se me fiz entender...Att,
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.
For more options, visit https://groups.google.com/d/optout.
--Luiz Gustavo S. Mafra
Bacharel em Ciência da Computação - UESC - Universidade Estadual de Santa CruzAnalista de Sistemas - Santa Casa de Misericórdia de ItabunaDesenvolvedor PHP, Android, .Net, Python, JEESite: www.lgmafra.com.brLinkedIn: br.linkedin.com/in/lgmafra/twitter: @lgmafraskype: lgmafra
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.
For more options, visit https://groups.google.com/d/optout.
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.
For more options, visit https://groups.google.com/d/optout.
Luiz Gustavo S. Mafra
Bacharel em Ciência da Computação - UESC - Universidade Estadual de Santa Cruz
Bacharel em Ciência da Computação - UESC - Universidade Estadual de Santa Cruz
Analista de Sistemas - Santa Casa de Misericórdia de Itabuna
Desenvolvedor PHP, Android, .Net, Python, JEE
+55 73 9147 0547
+55 73 8888 7500
Site: www.lgmafra.com.br
LinkedIn: br.linkedin.com/in/lgmafra/
twitter: @lgmafra
skype: lgmafra
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.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário