Posts by LeoSantana • 318 points
7 posts
-
2
votes1
answer82
viewsA: Create themes in the Android app
If you use a Toolbar, yes. she’s in the library appcompat-v7 and you must choose the Noactionbar theme for the app: <style name="AppBaseTheme"…
-
7
votes2
answers1075
viewsA: Send camera image to server by Retrofit
With Retrofit you can use Multipart Upload to send an image. But it is necessary that you save the photo on your device, even if only to upload and then delete it. In the documentation teaches how…
-
0
votes2
answers3886
viewsA: How to change edittext line color programmatically
There is no way to change the line color. It is possible to change the background of Edittext and you can put a .PNG transparent with a colored line underneath, like this for example: To generate…
-
1
votes1
answer178
viewsQ: How to remove Android project from SVN?
I started working with git and wish to remove all traces of SVN from my project in Android Studio. I don’t want to see the color titles for versioned, versioned, or commit hysterical anymore so it…
-
1
votes1
answer595
viewsA: How to treat a high resolution image
Try using the attribute android:largeHeap="true" on the tag <application ... of your Manifest. This adds a bit of memory to your application and I’ve already used it to fix a memory crash problem…
-
4
votes1
answer1948
viewsA: How to change tab when sliding on the screen?
When I implemented this, I did it like this. In the Activity layout, I put it like this: <android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"…
androidanswered LeoSantana 318 -
-1
votes4
answers5615
viewsA: What is the difference in the use of the Equals method for the ==operator?
If Voce has a null object, Equals will not work. For example: String nome = null if (nome.equals("Nome"){ //Faça alguma coisa } This code will return a Nullpointerexception error because if name is…