Questions tagged as 'android'

1
answer

RecyclerView makes imageview disappear [closed]

Simple. The Recycler View causes the imageView to disappear after I scroll to the bottom of the list and go back to the top. For example, in the case, the first image simply disappears. It was like this: link After going to the bottom of th...
asked by 18.10.2016 / 20:59
1
answer

Use of external class with error (non-static method)

I created an external Class tag to leave some methods that I always use, but it is giving error when using them, / em>: package com.hs.gui.testelayout.util; import android.support.v7.app.AppCompatActivity; /** * Created by Gui_j on 25/04/...
asked by 25.04.2016 / 21:27
1
answer

What is the purpose of each component of an Android project? [closed]

I'm starting now in Android development, and I'm having doubts about the Android Studio directories, I need to understand what each one of them is for the project. I confess that I have never programmed in a language with so many directories (ap...
asked by 17.04.2016 / 01:25
1
answer

How do I disable a function when android android API

I have the View.OnScrollChangeListener function that was deployed only in API 23. In the previous API example of the KitKat API 19. This function does not work. How do I do in my code oncreate when calling the function it check API...
asked by 01.11.2016 / 14:26
1
answer

How can I declare an object without having instantiated it?

I came across a question in android programming when declaring the Views in the java class, as in the example: (TextView txt = (TextView) findViewById (R.id.txt)), this View is being used by the class without before have you been instantiated?...
asked by 24.01.2018 / 20:37
1
answer

Retrieve items from ListView

I'm trying to create a sales application, where in the order I select the product to be sold and click on an add button, and the selected product is thrown into a listview when the seller has finished selecting all products and add in the listvi...
asked by 11.05.2016 / 14:54
1
answer

Api Maps Offline

Good evening guys, how are you? I would like to know if my application would open the map when the user is out of the internet?     
asked by 27.02.2016 / 03:20
1
answer

error: 'List' is abstract can not be defined

I intend to use java with Android Studio to make a calculator, however, every time I click a button I add to a list the values of those buttons. But having error in declaring the list. someone can help me?     
asked by 06.03.2016 / 21:57
1
answer

How to center an imageview on screen via code? [closed]

I created a imageView via code and would like to know how to center it on the screen     
asked by 03.03.2016 / 13:07
1
answer

How to know which activity is open, running?

I have two activities, Activity1 and Activity2. I need to know if 2 is active or not in both activities. Example: if (activityrunning == activity2){ //do something }else{ //do something else } Thank you!     
asked by 01.02.2017 / 20:41