Posts by Maico Ribeiro • 168 points
7 posts
-
3
votes1
answer59
viewsQ: One tap for more than one event
I’m building a musical keyboard, and I’m having trouble making the next key sound if the user doesn’t take his finger off the screen. Can someone help me with that? botao1.setOnTouchListener(new…
-
4
votes1
answer379
viewsA: Android 6 problem with map.setMyLocationEnabled(true)
If the application needs to access the user’s location, it is necessary to request permission by adding the relevant Android location permission to the application. Add permissions to the…
-
2
votes2
answers144
viewsA: DistanceTo method (Select the nearest distance between markers)
I’m returning to put the answer to my question and help others with that same question. public void onLocationChanged(Location location) { Location target = new Location("target"); for(int i = 0; i…
-
1
votes2
answers144
viewsQ: DistanceTo method (Select the nearest distance between markers)
This may be a difficult question, I have a method in my maps application that generates a distance between the user and the marker: this distance is measured and updated smoothly as long as there is…
-
1
votes3
answers1476
viewsA: How to know which Boot was clicked on my Listview?
You can enter in onCreate: Button bt_botao2 = (Button) findViewById(R.id.bt_botao2 ); bt_botao2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //codigo a ser…
-
1
votes0
answers169
viewsQ: Overlay imageviews
I want to make a layout with images superimposed this way but I can’t overlay the images within the same Activity or Fragment someone can help me?…
-
3
votes2
answers2999
viewsQ: Show/Hide Bookmarks as Zoom on Android map
I’m developing an android app that will contain many bookmarks on the map, and in order not to get too messy I wish that if I was zooming out the markups would go into Hide, I tried the following…