Posts by Leandro Cavalcante • 31 points
4 posts
-
1
votes1
answer706
viewsA: How to convert an array of bytes to a bitmap image?
After fetching the image in the database and saving in the array variable, you can convert to Bitmap this way: Bitmap bitmapImage = BitmapFactory.decodeByteArray(array, 0, array.length); If the…
-
1
votes1
answer374
viewsA: How to make this Floatingactionbutton?
Basically you will have to define all Fabs in xml, but leave only one visible, and when the user clicks on the visible FAB, you show the others. Follow an example: Creating the layout ...…
-
1
votes1
answer174
viewsA: How to add an item to a listview when a button-click event occurs?
Keep a List reference that you will pass as a parameter to Adapter. Also save the reference to Adapter private final List<Torneio> torneios = new ArrayList<>(); private MyAdapter…
-
0
votes1
answer24
viewsA: How to associate an Imageview to a Class?
You can use the view’s setTag(Object) method to store your map in it, for example. It reads documentation of the View class…