Questions tagged as 'android'

1
answer

ExpandableListView items clickable

Does anyone know how I can make items in an ExpandableListView clickable? I've implemented this template: How do an Expandable ListView? and now I would like to be able to click on the items and open a new activity or fragment.     
asked by 07.06.2017 / 15:32
2
answers

ScrollView does not scroll on screen 320x240

I have a xaml page with a ScrollView and a ListView that work normally on popular smartphones. The problem is that the scroll bar does not work on the Samsung Pocket Duos device, which has a screen of 320x240 and 2.8 ". Since many people still u...
asked by 07.06.2017 / 13:30
1
answer

Summing up with a child's value from firebase?

Hello , I would like to get a child value in firebase , add number and update child strong> with the result of the sum. Code in OnCreate () uDataBase = FirebaseDatabase.getInstance().getReference().child("Bilhetes").child("total")...
asked by 14.04.2017 / 05:08
1
answer

Problem with google maps api getMap () - android

I'm studying google maps api and was using as a basis for my studies video-lessons made available on youtube. However, while I was studying I came across a code depreciation problem. The video lesson you were following is using a function that n...
asked by 18.04.2017 / 23:58
1
answer

How to get back to the top of an Activity?

Following material design standards, clicking a button in a Bottom Navigation that is already active should scroll to the top I have a FrameLayout with CoordinatorLayout, which in turn has a RecyclerView (a list of elements). My intention is t...
asked by 11.04.2017 / 15:30
1
answer

How to open an alertDialog without darkening the screen?

I have this alertDialog: private void createInfoWindow() { AlertDialog.Builder alert = new AlertDialog.Builder(activity); alert.setCancelable(true); alert.setView(R.layout.middle_window_adapter); alert.show(); } How do I mak...
asked by 20.04.2017 / 16:42
1
answer

How to put more information in the window when clicking on a Marker?

When you open the map, in MainActivity, I display some pins on the screen (markerOptions), as shown below: WAPIService.getInstance().getPontosMapeamento(latitude, longitude, new FutureCallback<List<MapPins>>() {...
asked by 16.05.2017 / 00:30
1
answer

Spinner with SQLite

Hello, good evening. In my project I have a spinner <Spinner android:id="@+id/spnCategorie" android:layout_width="match_parent" android:layout_height="wrap_content" android:entries="@array/categories_array" androi...
asked by 05.04.2017 / 01:07
1
answer

How do I play a sound only while an animated TextView is playing?

The sound I am using is from a keyboard being keyboard and was taken from this video = > link Duration = > 2.577 seconds I added it to the RAW folder of the project in question and would like to know how to make it play and repe...
asked by 31.03.2017 / 01:57
1
answer

Create folder in Android directory

I did an APP that does the event monitoring, and finally, it generates a PDF report with the data of that event. But at the time of creating the file, if the device is running Android Nougat, nothing is generated. I have already tried to create...
asked by 10.07.2017 / 15:29