Do Android adapters use an adapter? The GoF Design Pattern Book describes the adapter design pattern as
An adapter template transforms a class interface into another interface that clients expect. The adapter allows classes to work together, otherwise incompatible interfaces.
There is a target interface that the adapter implements, and the client uses (expects), and there is an adaptable adapter to which the adapter delegates all requests made by the client.
I understand that his theory and the interfaces of the real-world interface adapter are not quite similar to him, but still I can’t understand which android adapters are adapting (which target interface) and to which requests actually made for are adapted.
I checked this , this and this . But not one of them explains how the Android adapter adapts to the adapter design. The 1st and 2nd answers are, in fact, somewhat controversial.
Can someone explain this?
, . GoF , , , . - , . , , , , JSONObject. , ( , ).
Android, ListView RecyclerView, . . MVP.
, GoF, (, State State Machine). , , , GoF.
Android- GoF. . : - , , . 3rp .
ListView Android . , , Android-. , .
Source: https://habr.com/ru/post/1666679/More articles:When you try to print the triangles of the triangles of the 13th iteration, it prints the wrong answer - cMPAndroidChart StackedBarChart shows values but no bars - androidPascal's Triangle in C - cMPAndroidChart How to represent multiple dataset objects with different number of points in the same line of the diagram - androidShould I use async if I am returning a task and not expecting anything - c #Plot Multiple charts in one in MPAndroidChart - androidListView and adapters in Android, does it fall under the adapter design template? - androidDebugging an Android app in Firefox - androidHow to check array key in multidimensional array? - arraysСервис не запускается снова после приложения kill даже с использованием START_STICKY на каком-либо устройстве - androidAll Articles