Questions tagged as 'android'

2
answers

The 'variable' Firebase Android Studio / Firebase can not be found

I have the following code public class NombreClase extends android.app.Application { @Override public void onCreate() { super.onCreate(); Firebase.setAndroidContext(this); } } Firebase throws the error    Can...
asked by 21.05.2016 / 03:52
2
answers

Load the same RecyclerView with data from two or more SQLite tables

What I want is to make the data of the Cardview appear in a tabla1 and in the next CardView the data of the tabla2 . I tried to enter the data in the method onBindViewHolder but I have not succeeded. This is wha...
asked by 21.08.2016 / 06:10
2
answers

Flexible headers below the Android content

Looking through the material design design guide , there is a scroll called Flexible space with overlapping content that the ActionBar when expanded is displayed below the content and when scroll is collapsed. How can this over...
asked by 17.08.2016 / 20:41
2
answers

bad png image exported to pdf from itext

I am developing an app using the itext library. When I access one of my images hosted in the drawable folder, it is not copied correctly. It is a logo, and it has a transparent part. When included in the document, the background (what is tran...
asked by 22.08.2016 / 15:00
1
answer

Access the variables of the activity from its fragment

ACTIVITY I have the activity with the following global variables: public String variable=""; public static final String KEYVARIABLE= "KEY"; In onCreate I change the value of "variable": @Override protected void onCreate(Bundle s...
asked by 01.04.2016 / 11:15
2
answers

Consultation Background image Android

I wanted to know how I can set up a background image, so that it looks on absolutely the whole screen, take out the ActionBar and I want to put the transparent notification bar so that the image can be seen there too. Thanks in advance. I had...
asked by 05.04.2016 / 19:31
4
answers

Abnormal behavior of a runnable when leaving an activity and restarting it

It turns out that in a Activity I am using a grid of images fed by a Adapter , which is refreshed thanks to a Runnable that I run every certain time, and it is always the same (ex: 500 milliseconds) and I do not change...
asked by 17.03.2016 / 10:30
2
answers

Event and dialog on a listview

I have a listview with elements, well, when clicking on one of them I should see a dialog or similar that gives two options in any way and says I accept or I do not accept and that from the code I can know which one has chosen one. How can I fac...
asked by 17.05.2016 / 18:22
1
answer

Android animation for ImageView

It turns out that in my activity splash, I have an image, that when the app opens, it shows up as an animation, and it moves from the bottom to the top but then returns to the center of the screen. I can not get the image to stay on top of the s...
asked by 10.04.2016 / 05:58
2
answers

Error ImageView Android

I have the following error when adding an ImageView. This is my imageview and the error android:layout_width="130dp" android:layout_height="130dp" android:src="@drawable/mi_imagen_icon" android:layout_centerHorizontal="true" and...
asked by 08.04.2016 / 21:53