Questions tagged as 'android'

1
answer

How to separate elements of a RecyclerView?

I have implemented a RecyclerView correctly but the elements are completely together, I would like to know how I can separate them as if they were a MarginBotton or something like that, thanks.     
asked by 20.11.2017 / 02:55
3
answers

How do I make an event to a specific View in a RecyclerView?

I have the following code in onCreate() of the activity that contains the RecyclerView : protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_vie...
asked by 20.11.2017 / 15:48
1
answer

To which element of the Recycler does the component that activates the event belong?

Good, I have the following code where a RecyclerView and events are implemented to the buttons of the card_view.xml that make up each element of the list of the Recycler, however, I would like to know how to know which card_view of...
asked by 20.11.2017 / 17:05
1
answer

Assign image by code to ImageView - Android? [duplicate]

What parameters this method should take to assign an image of the Drawable folder to the image, or if another method is used for this. ImageView image; image.setImageResource("?");     
asked by 20.11.2017 / 01:00
1
answer

PendingIntent works well the first time but then its actions are repeated twice as many times

I am making a custom notification for a player, I use a method to create the notification works well the first time but when sending data to the notification by the MainActivity to change the name of the song the button works as if I pressed the...
asked by 13.11.2017 / 22:30
1
answer

parent="@ android: style / TextAppearance.Material.Title" API 19

I have a problem with compatibility with the following code <style name="ExpandedAppbar" parent="@android:style/TextAppearance.Material.Title"> <item name="android:textColor">@color/colorPrimary</item> <i...
asked by 14.11.2017 / 20:54
1
answer

Problem when creating socket in android to server on pc

I am doing a chat for a project in the grade I am in, I already have a client and server that work in java on the PC. Now I wanted to make a client in mobile version. The point is that I am stuck in the creation of the socket , since it...
asked by 09.11.2017 / 19:41
1
answer

Spinner functions you can do

I want to use a Spinner but I need the option in the Spinner list that I tap to load another list of options in the same Activity . Example of what I'm looking for: Spinner 1______ opción 1_____...
asked by 26.12.2017 / 20:14
1
answer

ProgressDialog does not work in Custom Listener

I have a custom Listener public interface CustomListener { void processDownload(boolean isSuccess,int process,int total); } And the ControllerRequest class where I use the listener , and I have the onProcessDownload method that wil...
asked by 07.11.2017 / 23:37
2
answers

Google maps are not displayed on my real device [duplicated]

When I generate the APK on my cell phone it does not show google map. My class: public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; @Override protected void onCreate(B...
asked by 04.11.2017 / 16:58