{"id":771,"date":"2023-07-22T15:54:04","date_gmt":"2022-07-10T16:45:56","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/"},"modified":"2025-08-01T02:19:56","modified_gmt":"2025-07-31T17:19:56","slug":"android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/","title":{"rendered":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d"},"content":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eRecyclerView\u306b\u304a\u3044\u3066\u3001\u30a8\u30f3\u30c9\u30ec\u30b9\u30b9\u30af\u30ed\u30fc\u30eb\u307e\u305f\u306f\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u6b21\u306e\u30bb\u30c3\u30c8\u306e\u884c\u304cDB\/\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u53d6\u5f97\u3055\u308c\u3001\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30a4\u30b3\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u9593\u306b\u3001\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u306fFacebook\u3084Twitter\u306a\u3069\u306e\u591a\u304f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3088\u304f\u898b\u3089\u308c\u307e\u3059\u3002\u5148\u306b\u9032\u3080\u524d\u306b\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<h2>Android\u306eRecyclerView\u3067\u3001\u3055\u3089\u306b\u8aad\u307f\u8fbc\u3080<\/h2>\n<p>\u6b21\u306e\u30a2\u30a4\u30c6\u30e0\u30bb\u30c3\u30c8\u304c\u53d6\u5f97\u3055\u308c\u308b\u9593\u3001RecyclerView\u306e\u4e0b\u90e8\u306b\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30a4\u30b3\u30f3\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u3001RecyclerView\u30a2\u30c0\u30d7\u30bf\u30fc\u3067\u8907\u6570\u306e\u30d3\u30e5\u30fc\u30bf\u30a4\u30d7\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3055\u308c\u307e\u3059\u304b\uff1f\u901a\u5e38\u3001\u30b7\u30f3\u30d7\u30eb\u306aRecyclerView\u3067\u306f\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u304b\u3089\u30a2\u30c0\u30d7\u30bf\u30fc\u306b\u8981\u7d20\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002RecyclerView\u306e\u4e0b\u90e8\u306b\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30a4\u30b3\u30f3\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u6700\u521d\u306b\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u672b\u5c3e\u306bNULL\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u306a\u305cNULL\u3092\u4f7f\u3046\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u305d\u306e\u8981\u7d20\u3092\u4ed6\u306e\u8981\u7d20\u3068\u7570\u306a\u308b\u3082\u306e\u3068\u3057\u3066\u533a\u5225\u3057\u3001\u7570\u306a\u308b\u30d3\u30e5\u30fc\u30bf\u30a4\u30d7\u306e\u884c\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u3067\u3059\u3002NULL\u3092\u8ffd\u52a0\u3057\u305f\u5f8c\u3001\u30a2\u30c0\u30d7\u30bf\u30fc\u306b\u65b0\u3057\u3044\u8981\u7d20\u3092\u901a\u77e5\u3057\u3001\u6b21\u306e\u8981\u7d20\u30bb\u30c3\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u6b21\u306e\u8981\u7d20\u30bb\u30c3\u30c8\u304c\u53d6\u5f97\u3055\u308c\u305f\u3089\u3001NULL\u8981\u7d20\u3092\u524a\u9664\u3057\u3001\u6b21\u306e\u30bb\u30c3\u30c8\u3092\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u4e0b\u90e8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u56f3\u306f\u3001RecyclerView\u3068\u305d\u306e\u30a2\u30c0\u30d7\u30bf\u30fc\u3067\u5b9f\u969b\u306b\u8d77\u3053\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>RecyclerView\u306e\u672b\u5c3e\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u305f\u3053\u3068\u3092\u691c\u51fa\u3059\u308b\u305f\u3081\u306b\u306f\u3001RecyclerView\u306bOnScrollListener()\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5341\u5206\u306a\u8a71\u3057\u5408\u3044\u3067\u3059\u3002\u8155\u3092\u632f\u308a\u307e\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001RecyclerView\u3067Endless Scrolling\u3092\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u307e\u3059\u3002\u6587\u5b57\u5217\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30cf\u30f3\u30c9\u30e9\u3092\u4f7f\u7528\u3057\u3066\u4e00\u5b9a\u306e\u9045\u5ef6\u5f8c\u306b\u6b21\u306e\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u9020<\/h3>\n<h3>\u30b3\u30fc\u30c9<\/h3>\n<p>\u4ee5\u4e0b\u306b\u3001activity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30b3\u30fc\u30c9\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;android.support.constraint.ConstraintLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    tools:context=\".MainActivity\"&gt;\r\n\r\n    &lt;android.support.v7.widget.RecyclerView\r\n        android:id=\"@+id\/recyclerView\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        app:layoutManager=\"android.support.v7.widget.LinearLayoutManager\"\r\n        app:layout_constraintBottom_toBottomOf=\"parent\"\r\n        app:layout_constraintLeft_toLeftOf=\"parent\"\r\n        app:layout_constraintRight_toRightOf=\"parent\"\r\n        app:layout_constraintTop_toTopOf=\"parent\" \/&gt;\r\n\r\n&lt;\/android.support.constraint.ConstraintLayout&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001RecyclerView\u306e\u884c\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306fitem_row.xml\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;android.support.v7.widget.CardView xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    app:cardElevation=\"8dp\"\r\n    app:cardUseCompatPadding=\"true\"&gt;\r\n\r\n\r\n    &lt;TextView\r\n        android:id=\"@+id\/tvItem\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:padding=\"16dp\"\r\n        android:text=\"Item X\" \/&gt;\r\n\r\n&lt;\/android.support.v7.widget.CardView&gt;\r\n<\/code><\/pre>\n<p>\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30d3\u30e5\u30fc\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001\u4ee5\u4e0b\u306b\u793a\u3059item_loading.xml\u30d5\u30a1\u30a4\u30eb\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    android:layout_margin=\"8dp\"\r\n    android:orientation=\"vertical\"&gt;\r\n\r\n    &lt;ProgressBar\r\n        android:id=\"@+id\/progressBar\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_gravity=\"center_horizontal\"\r\n        android:indeterminate=\"true\"\r\n        android:paddingLeft=\"8dp\"\r\n        android:paddingRight=\"8dp\"\r\n        \/&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306bRecyclerViewAdapter.java\u30af\u30e9\u30b9\u306e\u30b3\u30fc\u30c9\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.androidrecyclerviewloadmore;\r\n\r\nimport android.support.annotation.NonNull;\r\nimport android.support.v7.widget.RecyclerView;\r\nimport android.view.LayoutInflater;\r\nimport android.view.View;\r\nimport android.view.ViewGroup;\r\nimport android.widget.ProgressBar;\r\nimport android.widget.TextView;\r\n\r\nimport java.util.List;\r\n\r\npublic class RecyclerViewAdapter extends RecyclerView.Adapter&lt;RecyclerView.ViewHolder&gt; {\r\n\r\n    private final int VIEW_TYPE_ITEM = 0;\r\n    private final int VIEW_TYPE_LOADING = 1;\r\n\r\n    public List&lt;String&gt; mItemList;\r\n\r\n\r\n    public RecyclerViewAdapter(List&lt;String&gt; itemList) {\r\n\r\n        mItemList = itemList;\r\n    }\r\n\r\n    @NonNull\r\n    @Override\r\n    public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\r\n        if (viewType == VIEW_TYPE_ITEM) {\r\n            View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_row, parent, false);\r\n            return new ItemViewHolder(view);\r\n        } else {\r\n            View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_loading, parent, false);\r\n            return new LoadingViewHolder(view);\r\n        }\r\n    }\r\n\r\n    @Override\r\n    public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) {\r\n\r\n        if (viewHolder instanceof ItemViewHolder) {\r\n\r\n            populateItemRows((ItemViewHolder) viewHolder, position);\r\n        } else if (viewHolder instanceof LoadingViewHolder) {\r\n            showLoadingView((LoadingViewHolder) viewHolder, position);\r\n        }\r\n\r\n    }\r\n\r\n    @Override\r\n    public int getItemCount() {\r\n        return mItemList == null ? 0 : mItemList.size();\r\n    }\r\n\r\n    \/**\r\n     * The following method decides the type of ViewHolder to display in the RecyclerView\r\n     *\r\n     * @param position\r\n     * @return\r\n     *\/\r\n    @Override\r\n    public int getItemViewType(int position) {\r\n        return mItemList.get(position) == null ? VIEW_TYPE_LOADING : VIEW_TYPE_ITEM;\r\n    }\r\n\r\n\r\n    private class ItemViewHolder extends RecyclerView.ViewHolder {\r\n\r\n        TextView tvItem;\r\n\r\n        public ItemViewHolder(@NonNull View itemView) {\r\n            super(itemView);\r\n\r\n            tvItem = itemView.findViewById(R.id.tvItem);\r\n        }\r\n    }\r\n\r\n    private class LoadingViewHolder extends RecyclerView.ViewHolder {\r\n\r\n        ProgressBar progressBar;\r\n\r\n        public LoadingViewHolder(@NonNull View itemView) {\r\n            super(itemView);\r\n            progressBar = itemView.findViewById(R.id.progressBar);\r\n        }\r\n    }\r\n\r\n    private void showLoadingView(LoadingViewHolder viewHolder, int position) {\r\n        \/\/ProgressBar would be displayed\r\n\r\n    }\r\n\r\n    private void populateItemRows(ItemViewHolder viewHolder, int position) {\r\n\r\n        String item = mItemList.get(position);\r\n        viewHolder.tvItem.setText(item);\r\n\r\n    }\r\n\r\n\r\n}\r\n<\/code><\/pre>\n<p>getItemViewType\uff08\u30a2\u30a4\u30c6\u30e0\u306e\u30d3\u30e5\u30fc\u30bf\u30a4\u30d7\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5834\u6240\uff09\u306f\u3001\u30ea\u30b9\u30c8\u306e\u5404\u8981\u7d20\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u7b87\u6240\u3067\u3059\u3002\u8981\u7d20\u304cNULL\u3067\u3042\u308b\u5834\u5408\u3001\u30d3\u30e5\u30fc\u30bf\u30a4\u30d7\u30921\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f0\u306b\u3057\u307e\u3059\u3002 onCreateViewHolder\u5185\u3067View\u30bf\u30a4\u30d7\u306b\u57fa\u3065\u3044\u3066ViewHolder\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u307e\u3059\u3002 onBindViewHolder\u5185\u3067\u306f\u3001ViewHolder\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30bf\u30a4\u30d7\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u8a72\u5f53\u3059\u308b\u884c\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3059\u308bMainActivity.java\u30af\u30e9\u30b9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.androidrecyclerviewloadmore;\r\n\r\nimport android.os.Handler;\r\nimport android.support.annotation.NonNull;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.os.Bundle;\r\nimport android.support.v7.widget.LinearLayoutManager;\r\nimport android.support.v7.widget.RecyclerView;\r\n\r\nimport java.util.ArrayList;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n    RecyclerView recyclerView;\r\n    RecyclerViewAdapter recyclerViewAdapter;\r\n    ArrayList&lt;String&gt; rowsArrayList = new ArrayList&lt;&gt;();\r\n\r\n    boolean isLoading = false;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n\r\n        recyclerView = findViewById(R.id.recyclerView);\r\n        populateData();\r\n        initAdapter();\r\n        initScrollListener();\r\n\r\n\r\n    }\r\n\r\n    private void populateData() {\r\n        int i = 0;\r\n        while (i &lt; 10) {\r\n            rowsArrayList.add(\"Item \" + i);\r\n            i++;\r\n        }\r\n    }\r\n\r\n    private void initAdapter() {\r\n\r\n        recyclerViewAdapter = new RecyclerViewAdapter(rowsArrayList);\r\n        recyclerView.setAdapter(recyclerViewAdapter);\r\n    }\r\n\r\n    private void initScrollListener() {\r\n        recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\r\n            @Override\r\n            public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {\r\n                super.onScrollStateChanged(recyclerView, newState);\r\n            }\r\n\r\n            @Override\r\n            public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\r\n                super.onScrolled(recyclerView, dx, dy);\r\n\r\n                LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\r\n\r\n                if (!isLoading) {\r\n                    if (linearLayoutManager != null &amp;&amp; linearLayoutManager.findLastCompletelyVisibleItemPosition() == rowsArrayList.size() - 1) {\r\n                        \/\/bottom of list!\r\n                        loadMore();\r\n                        isLoading = true;\r\n                    }\r\n                }\r\n            }\r\n        });\r\n\r\n\r\n    }\r\n\r\n    private void loadMore() {\r\n        rowsArrayList.add(null);\r\n        recyclerViewAdapter.notifyItemInserted(rowsArrayList.size() - 1);\r\n\r\n\r\n        Handler handler = new Handler();\r\n        handler.postDelayed(new Runnable() {\r\n            @Override\r\n            public void run() {\r\n                rowsArrayList.remove(rowsArrayList.size() - 1);\r\n                int scrollPosition = rowsArrayList.size();\r\n                recyclerViewAdapter.notifyItemRemoved(scrollPosition);\r\n                int currentSize = scrollPosition;\r\n                int nextLimit = currentSize + 10;\r\n\r\n                while (currentSize - 1 &lt; nextLimit) {\r\n                    rowsArrayList.add(\"Item \" + currentSize);\r\n                    currentSize++;\r\n                }\r\n\r\n                recyclerViewAdapter.notifyDataSetChanged();\r\n                isLoading = false;\r\n            }\r\n        }, 2000);\r\n\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306b\u304a\u3044\u3066\u3001initScrollListener\u306f\u6700\u3082\u91cd\u8981\u306a\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u305d\u3053\u3067\u306fRecyclerView\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u72b6\u614b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u4e00\u756a\u4e0b\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3057\u3001\u6b21\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u51fa\u529b\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002\u3053\u308c\u3067\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u7d42\u4e86\u3067\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>AndroidRecyclerViewLoadMore\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300cAndroid\u306eRecyclerView\u306e\u8ffd\u52a0\u8aad\u307f\u8fbc\u307f\u6a5f\u80fd\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>GitHub\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30f3\u30af<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Android\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eRecyclerView\u306b\u304a\u3044\u3066\u3001\u30a8\u30f3\u30c9\u30ec\u30b9\u30b9\u30af\u30ed\u30fc\u30eb\u307e\u305f\u306f\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u6b21\u306e\u30bb\u30c3\u30c8\u306e\u884c\u304cDB\/\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u53d6\u5f97\u3055\u308c\u3001\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30a4\u30b3\u30f3\u304c\u8868\u793a [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-771","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/android\u306erecyclerview\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\" \/>\n<meta property=\"og:description\" content=\"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/android\u306erecyclerview\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-10T16:45:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T17:19:56+00:00\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"20\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/\",\"name\":\"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-07-10T16:45:56+00:00\",\"dateModified\":\"2025-07-31T17:19:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"description\":\"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d - Blog - Silicon Cloud","description":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/android\u306erecyclerview\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\/","og_locale":"ja_JP","og_type":"article","og_title":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d","og_description":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/android\u306erecyclerview\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-07-10T16:45:56+00:00","article_modified_time":"2025-07-31T17:19:56+00:00","author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"20\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/","name":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-07-10T16:45:56+00:00","dateModified":"2025-07-31T17:19:56+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"description":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Android\u306eRecyclerView\u306b\u3088\u308b\u300c\u8aad\u307f\u8fbc\u307f\u3055\u3089\u306b\u8868\u793a\u300d\u300c\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u300d"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aerecyclerview%e3%81%ab%e3%82%88%e3%82%8b%e3%80%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e3%81%95%e3%82%89%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%80%8d%e3%80%8c%e7%84%a1%e9%99%90%e3%82%b9%e3%82%af\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":44817,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions\/44817"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}