{"id":53,"date":"2015-11-03T11:19:57","date_gmt":"2015-11-03T08:19:57","guid":{"rendered":"http:\/\/b00blik.ru\/tech\/?p=53"},"modified":"2023-08-20T10:45:01","modified_gmt":"2023-08-20T07:45:01","slug":"%d1%83%d0%b1%d0%b8%d1%80%d0%b0%d0%b5%d0%bc-%d1%81%d0%ba%d1%80%d0%be%d0%bb%d0%bb-%d0%b2-recyclerview","status":"publish","type":"post","link":"https:\/\/b00blik.ru\/tech\/?p=53","title":{"rendered":"\u0423\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043a\u0440\u043e\u043b\u043b \u0432 RecyclerView"},"content":{"rendered":"<p style=\"font-size: 12px;  margin-top:-8px; margin-bottom: -8px\">\ud83d\udc41 538<\/p>\n\n\n<div class=\"su-spoiler su-spoiler-style-simple su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\u0421\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043a<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442! \u042d\u0442\u043e \u043f\u0438\u0448\u0435\u0442 b00blik \u0443\u0436\u0435 \u0438\u0437 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e. \u041f\u0440\u043e\u0448\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442, \u0438 \u043f\u043e\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0433\u043a\u0430 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d. \u0417\u0430\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b: <a href=\"https:\/\/b00blik.ru\/tech\/?p=478\" title=\"\" target=\"_self\" rel=\"\" class=\"\">\u043a\u0430\u043a \u044f \u043d\u0430\u043f\u043e\u043b\u0443\u0447\u0430\u043b \u043b\u0435\u0449\u0435\u0439 \u0432 \u043f\u043e\u0438\u0441\u043a\u0435 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0444\u0444\u0435\u0440\u0430<\/a>, <a href=\"https:\/\/b00blik.ru\/tech\/?p=356\" title=\"\" target=\"_self\" rel=\"\" class=\"\">\u043a\u0430\u043a \u043d\u0438\u0449\u0430\u043b \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a \u0432 2022<\/a>, \u0434\u0430 \u0434\u0430\u0436\u0435 \u043f\u0440\u043e <a href=\"https:\/\/b00blik.ru\/tech\/?p=585\" title=\"\" target=\"_self\" rel=\"\" class=\"\">\u043f\u0438\u043d\u0431\u043e\u043b<\/a> \u0447\u0442\u043e-\u0442\u043e \u0435\u0441\u0442\u044c.  \u0417\u0430\u043b\u0435\u0442\u0430\u0439, \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443!<\/p>\n<\/div><\/div>\n\n\n\n<p>RecyclerView \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u044b\u0439 \u0442\u0438\u043f View, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0432 Android L. \u0412\u043a\u0440\u0430\u0442\u0446\u0435, \u0444\u0438\u0447\u0430 \u044d\u0442\u043e\u0439 \u0432\u044c\u044e\u0448\u043a\u0438, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ListView, \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e View-\u0448\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0440\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0435, \u0430 \u043d\u0435 \u0437\u0430\u0431\u0438\u0432\u0430\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u043c \u0432\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n\n\n\n<p><a href=\"http:\/\/developer.android.com\/intl\/ru\/reference\/android\/support\/v7\/widget\/RecyclerView.html\">http:\/\/developer.android.com\/intl\/ru\/reference\/android\/support\/v7\/widget\/RecyclerView.html<\/a><\/p>\n\n\n\n<p>\u0411\u044b\u0432\u0430\u0435\u0442 \u0442\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433 \u0432 RecyclerView, \u043d\u043e, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0442\u043e\u0433\u043e \u0436\u0435 ListView, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0442\u0440\u0443\u0434\u043d\u0435\u0435.<\/p>\n\n\n\n<p>\u0421\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c dispatchTouchEvent \u0438 \u043b\u043e\u0432\u0438\u0442\u044c MotionEvent.ACTION_MOVE.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">public class NoScrollRecyclerView extends RecyclerView {\n\n    public NoScrollRecyclerView(Context context){\n        super(context);\n    }\n\n    public NoScrollRecyclerView(Context context, AttributeSet attrs){\n        super(context, attrs);\n    }\n\n    public NoScrollRecyclerView(Context context, AttributeSet attrs, int style){\n        super(context, attrs, style);\n    }\n\n    @Override\n    public boolean dispatchTouchEvent(MotionEvent ev){\n\n        if(ev.getAction() == MotionEvent.ACTION_MOVE)\n            return true;\n\n        return super.dispatchTouchEvent(ev);\n    }\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>RecyclerView \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u044b\u0439 \u0442\u0438\u043f View, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0432 Android L. \u0412\u043a\u0440\u0430\u0442\u0446\u0435, \u0444\u0438\u0447\u0430 \u044d\u0442\u043e\u0439 \u0432\u044c\u044e\u0448\u043a\u0438, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ListView, \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e View-\u0448\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0440\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0435, \u0430 \u043d\u0435 \u0437\u0430\u0431\u0438\u0432\u0430\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u043c \u0432\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a. http:\/\/developer.android.com\/intl\/ru\/reference\/android\/support\/v7\/widget\/RecyclerView.html \u0411\u044b\u0432\u0430\u0435\u0442 \u0442\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433 \u0432 RecyclerView, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b00blik.ru\/tech\/?p=53\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<span class=\"screen-reader-text\"> \u00ab\u0423\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043a\u0440\u043e\u043b\u043b \u0432 RecyclerView\u00bb<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[10,6],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-1","tag-android","tag-java","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","views":{"total":523,"cached_at":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6oGDv-R","_links":{"self":[{"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53"}],"version-history":[{"count":5,"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":658,"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions\/658"}],"wp:attachment":[{"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b00blik.ru\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}