Posts by Lucas Sabino • 46 points
6 posts
-
0
votes1
answer38
viewsA: Color of this menu in android studio
You can add a android:textColor="#000000" to change the font color, this code would be inside the TextView, to have greater visibility than the layout is creating, you can enable in the developer…
-
2
votes1
answer160
viewsA: Automatic sum of two Edittext to put result in a Textview
The mentioned error occurs because you are trying to convert a String empty in a int, you can add a validation, for case the one of EditText is empty consider the value 0. Example: @Override public…
-
0
votes1
answer380
viewsA: Error installing apk by adb adb: failed to install my.apk:
Check if I device has the x64 architecture, was with the same problem with a Moto G4 play using adb install --abi arm64-v8a meu.apk and running with the command adb install --abi armeabi-v7a…
androidanswered Lucas Sabino 46 -
0
votes1
answer162
viewsA: Scroolview problems in Android Studio
I believe the error lies in the parameters you put in layout_width and layout_height, who are all match_parent... for example, the pyramids LinearLayout is as match_parent us 2, try for a…
-
0
votes1
answer126
viewsA: Nullpointerexception when running Listview.setAdapter (Android)
Missed the setContentView(R.layout.NomeDoSeuLayout);, Android can’t find your list because it doesn’t know which layout to look for.
-
0
votes1
answer1133
viewsA: open external webview link
I used the following code in a context menu in a list, it uses the default user browser. maybe it can help a little to adapt it on a button. MenuItem itemSite = menu.add("Visitar Site"); Intent…