Questions tagged as 'java'

1
answer

Open pdf by URL and PDFView InputStream

I would like the user to enter the product code (in activity_main.xml ) and click the button. The screen changes ( view_pdf.xml ), it would download the PDF ( AnsyTask ) and it would open in PDFView by pdfView.from...
asked by 06.03.2018 / 17:49
1
answer

Treatment of decimal places EditText

I need to set a number of decimal places for EditText on Android. For this I used InputFilter as I show below: public NumeroFormatado(int digitsBeforeZero,int digitsAfterZero) { mPattern=Pattern.compile("[0-9]{0," + (digitsB...
asked by 27.02.2018 / 12:37
2
answers

Background EditText Alpha (transparency)

I'd like to know how to make the EditText background transparent, like this: Itriedthefollowingways,butwithoutsuccess:edt.xml<?xmlversion="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"...
asked by 07.02.2018 / 12:10
1
answer

Array java shows specific items

Hello, I have a question, for example, I have Array A {1,2,3,4,5}, I make another array B {1,2,3} with the items I want to delete from array A, and show the remaining items ex 4 and 5, however I'm stopping an if inside a for and the answer comes...
asked by 19.02.2018 / 03:16
1
answer

Am I doing Throw correctly?

I'm typing a FireOut DAO that performs and handles Auth, Database, and Storage. But Firebase issues some exceptions depending on the scenario, password with less than 6 digits, email already registered, etc. I'm trying to throw these exceptio...
asked by 19.02.2018 / 23:20
1
answer

softkeyboard pushing layout up

Oops, I have a problem and I can not solve it at all. already tried adjustpan, resize..enfim .. I have a layout with recycleview and edittext and a few more views..when I click on edittext the keyboard is displayed but it pushes up the rest o...
asked by 15.02.2018 / 22:41
1
answer

How to change the focus between tabs in a JTabbedPane?

I'm trying to do the following routine. On my "main" screen, I have a% w / w of% with two tabs, where the focus is on the first tab. I need to open a JTabbedPane and, when I close it, cause the focus to go to the second tab of my JI...
asked by 23.03.2018 / 19:47
1
answer

getJsonObject bring specific field

I have an object that comes when selecting a particular button. The object is coming correct. System.out.println(filter.getJsonObject("cadastro")); Result: {"id":1,"createdAt":"2017-12-22T14:00:55.86","nome":"teste"} However, I need...
asked by 11.01.2018 / 15:25
1
answer

JavaFX progress indicator in interface construction

I need to create a progress indicator so that the user realizes that the program is performing something behind. Briefly, I want to load images into a% grid style gallery, but when I try to load those images sometimes it may take some time fo...
asked by 17.01.2018 / 11:26
1
answer

I can not make a comparison with random numbers

My colleagues good night, I did a math game. the random numbers can show it in the interface, but it does not compare the user's number with the results scheduled I can not make a comparison. If I put the number just to appear on the screen, it...
asked by 17.01.2018 / 22:12