How to find the method I need. The fact is that after reading many tutorials, there was still no understanding of how to apply these or other methods correctly. The examples used in tutorials (and these are always simple examples) are quite simple and understandable, but if you move away from the example and start doing your own, a lot of questions immediately appear. How is it? and where is it from? ahhhh ...? Seriously?
I will give an example code:
mMessagesDatabaseReference = mFirebaseDatabase.getReference().child("messages"); And in many cases (not only by the example of the FirebaseDatabase class, etc.). How to understand what exactly this method should be here? After all, the classes have many of them and their eyes diverge.
.getReference() But even if according to the description I can understand (from the documentation) what this method does, what to do next I do not understand.
How do you study the new class and what methods are needed at the moment, how among many methods to understand which is needed and which is the right one?
I will note a couple of examples:
messageTextView.setVisibility(View.GONE); photoImageView**.setVisibility**(View.VISIBLE); Glide**.with**(photoImageView.getContext()) **.load**(message.getPhotoUrl()) **.into**(photoImageView); Thanks for answers.