Questions tagged as 'android'

1
answer

CardView does not occupy the full screen width despite having match parent property

this time I try to make a CardView can occupy the full width of the screen through its property layout_width="match_parent", but when running the application these CardView are shown as if they were configured as "wrap_content" . The LAYOUT...
asked by 29.11.2018 / 04:55
2
answers

Two arrays in the same layout

You see, I have this .Json which has several arrays what I would like is to see in two lists, goals and local minute in one and goals and minute visitor in another, but something fails me. Can you help me. Thanks public class Goles_...
asked by 20.03.2016 / 18:31
0
answers

Slash Screen Android Studio disproportionate

I am trying to create a splash screen of a mobile application with Android Studio, the case is that I try to do it with a 2732x2732 image since with ionic cordova I simply do the resources and it generates all the versions, however, I try to do...
asked by 23.11.2018 / 13:15
1
answer

Buttons on Android ActionBar

I am creating an application and I need to put buttons in the ActionBar and I already did it but I do not know how to put images on the buttons and only text (see image) the question is that in XML if it is done but in this case I can not...
asked by 26.11.2018 / 22:04
1
answer

react native android 64k method limit

When making the build to my application I get these errors: Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html Error:com.androi...
asked by 21.11.2018 / 06:21
2
answers

Pass objects between Android activities

I have an activity where a series of fields are filled. In it I have a button where when I press it opens a recyclerView, which presents the data of a table. When selecting one of the items in the RecyclerView, I want the object to be passed to...
asked by 20.11.2018 / 20:15
2
answers

urlconnection error on Android: NetworkOnMainThreadException

I'm trying to use url connection in my android app and it gives me the following error:    FATAL EXCEPTION: main                                                                    android.os.NetworkOnMainThreadException                       ...
asked by 20.11.2018 / 17:53
1
answer

Error initializing a fragment

People give me this little mistake when initializing the Fragment. BlankFragment is my Fragment. says that the Fragment class is not compatible with the BlankFragment class extending this from Fragment private void seleccionarItem(MenuItem ite...
asked by 11.11.2018 / 04:46
1
answer

I have an error, I hope you can help me: E / RecyclerView: No adapter attached; skipping layout

This is the code of my Adapter : public class ProductosAdapter extends RecyclerView.Adapter<ProductosAdapter.ViewHolder> { private List<Productos> productos; private int layout; private OnClickListener listener;...
asked by 11.11.2018 / 23:47
1
answer

Problems with OnActivityResult

I'm making an application for the mobile phone and what I'm trying to do is that when I take a picture by pressing a button the camera opens and when I give it to accept the image I'm saved, but I'm never saved. I was debugging and what it do...
asked by 07.12.2018 / 10:27