{"id":756,"date":"2022-10-19T16:34:46","date_gmt":"2022-11-07T20:41:20","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/"},"modified":"2025-08-01T02:12:08","modified_gmt":"2025-07-31T17:12:08","slug":"android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/","title":{"rendered":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002"},"content":{"rendered":"<p>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eExpandableListView\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30ab\u30c6\u30b4\u30ea\u3054\u3068\u306b\u30ea\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u305f\u3081\u306bExpandableListView\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u3053\u308c\u306fAndroid\u306eListView\u306e\u30e1\u30cb\u30e5\u30fc\u3068\u30b5\u30d6\u30e1\u30cb\u30e5\u30fc\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<h2>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eExpandableListView\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h2>\n<p>Android\u306eExpandableListView\u306f\u3001\u5782\u76f4\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b2\u3064\u306e\u30ec\u30d9\u30eb\u3067\u30a2\u30a4\u30c6\u30e0\u3092\u8868\u793a\u3059\u308b\u30d3\u30e5\u30fc\u3067\u3059\u3002\u3053\u308c\u306fListView\u3068\u306f\u7570\u306a\u308a\u3001\u30b0\u30eb\u30fc\u30d7\u3068\u305d\u306e\u5b50\u30a2\u30a4\u30c6\u30e0\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u30bf\u30c3\u30c1\u3067\u7c21\u5358\u306b\u5c55\u958b\u304a\u3088\u3073\u6298\u308a\u305f\u305f\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Android\u306eExpandableListViewAdapter\u306f\u3001\u3053\u306e\u30d3\u30e5\u30fc\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30a2\u30a4\u30c6\u30e0\u306b\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u306f\u3001\u3053\u306e\u30af\u30e9\u30b9\u3067\u4f7f\u7528\u3055\u308c\u308b\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>setChildIndicator(Drawable) : This is used to show an indicator besides each item representing the current state. If the child is the last child for a group, the state state_last will be set<\/li>\n<li>setGroupIndicator(Drawable) : An indicator is drawn besides the group representing its state i.e. expanded or collapsed. If the group is empty, the state state_empty will be set. If the group is expanded, the state state_expanded will be set<\/li>\n<li>getGroupView() : It returns view for the list group header<\/li>\n<li>getChildView() : It returns view for list child item<\/li>\n<\/ul>\n<p>\u3053\u306e\u30af\u30e9\u30b9\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u6ce8\u76ee\u3059\u3079\u304d\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>ExpandableListView.OnChildClickListener : This is overridden to implement the callback method that\u2019s invoked when a child in the expanded list is clicked<\/li>\n<li>ExpandableListView.OnGroupClickListener : This is overridden to implement the callback method that\u2019s invoked when a group header in the expanded list is clicked<\/li>\n<li>ExpandableListView.OnGroupCollapseListener : It is used for notifying when a group is collapsed<\/li>\n<li>ExpandableListView.OnGroupExpandListener : It is used to notify when a group is expanded<\/li>\n<\/ul>\n<h3>Android\u306eExpandableListView\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u9020<\/h3>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f3\u3064\u306e\u30af\u30e9\u30b9\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>A MainActivity that shows the layout with the ExpandableListView<\/li>\n<li>An ExpandableListDataPump which represents a random data in a List and maps the child item data to the respective group headers using a HashMap<\/li>\n<li>A CustomExpandableListAdapter which provides the MainActivity with the data from the ExpandableListDataPump class\/li&gt;<\/li>\n<\/ul>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eExpandableListView\u306e\u30b3\u30fc\u30c9<\/h3>\n<p>activity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001\u4ee5\u4e0b\u306b\u793a\u3059\u3088\u3046\u306bRelativeLayout\u5185\u306bExpandableListView\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;RelativeLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\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    android:paddingLeft=\"@dimen\/activity_horizontal_margin\"\r\n    android:paddingRight=\"@dimen\/activity_horizontal_margin\"\r\n    android:paddingTop=\"@dimen\/activity_vertical_margin\"\r\n    android:paddingBottom=\"@dimen\/activity_vertical_margin\"\r\n    tools:context=\".MainActivity\"&gt;\r\n\r\n    &lt;ExpandableListView\r\n        android:id=\"@+id\/expandableListView\"\r\n        android:layout_height=\"match_parent\"\r\n        android:layout_width=\"match_parent\"\r\n        android:indicatorLeft=\"?android:attr\/expandableListPreferredItemIndicatorLeft\"\r\n        android:divider=\"@android:color\/darker_gray\"\r\n        android:dividerHeight=\"0.5dp\" \/&gt;\r\n\r\n&lt;\/RelativeLayout&gt;\r\n<\/code><\/pre>\n<p>android:indicatorLeft\u306f\u30a2\u30a4\u30c6\u30e0\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u306e\u5de6\u7aef\u3067\u3059\u3002\u6ce8\u610f\uff1aXML\u306eandroid:layout_height\u5c5e\u6027\u3067android:layout_height\u5c5e\u6027\u306bwrap_content\u306e\u5024\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u89aa\u306e\u30b5\u30a4\u30ba\u304c\u53b3\u5bc6\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u5404\u500b\u5225\u30ea\u30b9\u30c8\u306e\u30b0\u30eb\u30fc\u30d7\u30d8\u30c3\u30c0\u30fc\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306flist_group.xml\u306b\u6307\u5b9a\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\r\n&lt;LinearLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:orientation=\"vertical\" android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"&gt;\r\n    &lt;TextView\r\n        android:id=\"@+id\/listTitle\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:paddingLeft=\"?android:attr\/expandableListPreferredItemPaddingLeft\"\r\n        android:textColor=\"@android:color\/black\"\r\n        android:paddingTop=\"10dp\"\r\n        android:paddingBottom=\"10dp\" \/&gt;\r\n&lt;\/LinearLayout&gt;\r\n<\/code><\/pre>\n<p>\u5b50\u30a2\u30a4\u30c6\u30e0\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u884c\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306blist_item.xml\u306b\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\r\n&lt;LinearLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:orientation=\"vertical\" android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"&gt;\r\n    &lt;TextView\r\n        android:id=\"@+id\/expandedListItem\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:paddingLeft=\"?android:attr\/expandableListPreferredChildPaddingLeft\"\r\n        android:paddingTop=\"10dp\"\r\n        android:paddingBottom=\"10dp\" \/&gt;\r\n&lt;\/LinearLayout&gt;\r\n<\/code><\/pre>\n<p>ExpandableListDataPump\u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.expandablelistview;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.HashMap;\r\nimport java.util.List;\r\n\r\npublic class ExpandableListDataPump {\r\n    public static HashMap&lt;String, List&lt;String&gt;&gt; getData() {\r\n        HashMap&lt;String, List&lt;String&gt;&gt; expandableListDetail = new HashMap&lt;String, List&lt;String&gt;&gt;();\r\n\r\n        List&lt;String&gt; cricket = new ArrayList&lt;String&gt;();\r\n        cricket.add(\"India\");\r\n        cricket.add(\"Pakistan\");\r\n        cricket.add(\"Australia\");\r\n        cricket.add(\"England\");\r\n        cricket.add(\"South Africa\");\r\n\r\n        List&lt;String&gt; football = new ArrayList&lt;String&gt;();\r\n        football.add(\"Brazil\");\r\n        football.add(\"Spain\");\r\n        football.add(\"Germany\");\r\n        football.add(\"Netherlands\");\r\n        football.add(\"Italy\");\r\n\r\n        List&lt;String&gt; basketball = new ArrayList&lt;String&gt;();\r\n        basketball.add(\"United States\");\r\n        basketball.add(\"Spain\");\r\n        basketball.add(\"Argentina\");\r\n        basketball.add(\"France\");\r\n        basketball.add(\"Russia\");\r\n\r\n        expandableListDetail.put(\"CRICKET TEAMS\", cricket);\r\n        expandableListDetail.put(\"FOOTBALL TEAMS\", football);\r\n        expandableListDetail.put(\"BASKETBALL TEAMS\", basketball);\r\n        return expandableListDetail;\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001expandableListDetail\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f7f\u7528\u3055\u308c\u3001ArrayList\u306e\u6587\u5b57\u5217\u3092\u4f7f\u7528\u3057\u3066\u30b0\u30eb\u30fc\u30d7\u30d8\u30c3\u30c0\u30fc\u6587\u5b57\u5217\u3092\u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u5b50\u4f9b\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u3066\u3044\u307e\u3059\u3002CustomExpandableListAdapter.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.expandablelistview;\r\n\r\nimport java.util.HashMap;\r\nimport java.util.List;\r\nimport android.content.Context;\r\nimport android.graphics.Typeface;\r\nimport android.view.LayoutInflater;\r\nimport android.view.View;\r\nimport android.view.ViewGroup;\r\nimport android.widget.BaseExpandableListAdapter;\r\nimport android.widget.TextView;\r\n\r\npublic class CustomExpandableListAdapter extends BaseExpandableListAdapter {\r\n\r\n    private Context context;\r\n    private List&lt;String&gt; expandableListTitle;\r\n    private HashMap&lt;String, List&lt;String&gt;&gt; expandableListDetail;\r\n\r\n    public CustomExpandableListAdapter(Context context, List&lt;String&gt; expandableListTitle,\r\n                                       HashMap&lt;String, List&lt;String&gt;&gt; expandableListDetail) {\r\n        this.context = context;\r\n        this.expandableListTitle = expandableListTitle;\r\n        this.expandableListDetail = expandableListDetail;\r\n    }\r\n\r\n    @Override\r\n    public Object getChild(int listPosition, int expandedListPosition) {\r\n        return this.expandableListDetail.get(this.expandableListTitle.get(listPosition))\r\n                .get(expandedListPosition);\r\n    }\r\n\r\n    @Override\r\n    public long getChildId(int listPosition, int expandedListPosition) {\r\n        return expandedListPosition;\r\n    }\r\n\r\n    @Override\r\n    public View getChildView(int listPosition, final int expandedListPosition,\r\n                             boolean isLastChild, View convertView, ViewGroup parent) {\r\n        final String expandedListText = (String) getChild(listPosition, expandedListPosition);\r\n        if (convertView == null) {\r\n            LayoutInflater layoutInflater = (LayoutInflater) this.context\r\n                    .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n            convertView = layoutInflater.inflate(R.layout.list_item, null);\r\n        }\r\n        TextView expandedListTextView = (TextView) convertView\r\n                .findViewById(R.id.expandedListItem);\r\n        expandedListTextView.setText(expandedListText);\r\n        return convertView;\r\n    }\r\n\r\n    @Override\r\n    public int getChildrenCount(int listPosition) {\r\n        return this.expandableListDetail.get(this.expandableListTitle.get(listPosition))\r\n                .size();\r\n    }\r\n\r\n    @Override\r\n    public Object getGroup(int listPosition) {\r\n        return this.expandableListTitle.get(listPosition);\r\n    }\r\n\r\n    @Override\r\n    public int getGroupCount() {\r\n        return this.expandableListTitle.size();\r\n    }\r\n\r\n    @Override\r\n    public long getGroupId(int listPosition) {\r\n        return listPosition;\r\n    }\r\n\r\n    @Override\r\n    public View getGroupView(int listPosition, boolean isExpanded,\r\n                             View convertView, ViewGroup parent) {\r\n        String listTitle = (String) getGroup(listPosition);\r\n        if (convertView == null) {\r\n            LayoutInflater layoutInflater = (LayoutInflater) this.context.\r\n                    getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n            convertView = layoutInflater.inflate(R.layout.list_group, null);\r\n        }\r\n        TextView listTitleTextView = (TextView) convertView\r\n                .findViewById(R.id.listTitle);\r\n        listTitleTextView.setTypeface(null, Typeface.BOLD);\r\n        listTitleTextView.setText(listTitle);\r\n        return convertView;\r\n    }\r\n\r\n    @Override\r\n    public boolean hasStableIds() {\r\n        return false;\r\n    }\r\n\r\n    @Override\r\n    public boolean isChildSelectable(int listPosition, int expandedListPosition) {\r\n        return true;\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30af\u30e9\u30b9\u306fBaseExpandableListAdapter\u3092\u62e1\u5f35\u3057\u3001\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066ExpandableListView\u306e\u30d3\u30e5\u30fc\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002getView\uff08\uff09\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30a2\u30a4\u30c6\u30e0\u306e\u30d3\u30e5\u30fc\u306b\u30c7\u30fc\u30bf\u3092\u57cb\u3081\u8fbc\u307f\u307e\u3059\u3002MainActivity.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.expandablelistview;\r\n\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.os.Bundle;\r\nimport android.view.View;\r\nimport android.widget.ExpandableListAdapter;\r\nimport android.widget.ExpandableListView;\r\nimport android.widget.Toast;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.HashMap;\r\nimport java.util.List;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n    ExpandableListView expandableListView;\r\n    ExpandableListAdapter expandableListAdapter;\r\n    List&lt;String&gt; expandableListTitle;\r\n    HashMap&lt;String, List&lt;String&gt;&gt; expandableListDetail;\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        expandableListView = (ExpandableListView) findViewById(R.id.expandableListView);\r\n        expandableListDetail = ExpandableListDataPump.getData();\r\n        expandableListTitle = new ArrayList&lt;String&gt;(expandableListDetail.keySet());\r\n        expandableListAdapter = new CustomExpandableListAdapter(this, expandableListTitle, expandableListDetail);\r\n        expandableListView.setAdapter(expandableListAdapter);\r\n        expandableListView.setOnGroupExpandListener(new ExpandableListView.OnGroupExpandListener() {\r\n\r\n            @Override\r\n            public void onGroupExpand(int groupPosition) {\r\n                Toast.makeText(getApplicationContext(),\r\n                        expandableListTitle.get(groupPosition) + \" List Expanded.\",\r\n                        Toast.LENGTH_SHORT).show();\r\n            }\r\n        });\r\n\r\n        expandableListView.setOnGroupCollapseListener(new ExpandableListView.OnGroupCollapseListener() {\r\n\r\n            @Override\r\n            public void onGroupCollapse(int groupPosition) {\r\n                Toast.makeText(getApplicationContext(),\r\n                        expandableListTitle.get(groupPosition) + \" List Collapsed.\",\r\n                        Toast.LENGTH_SHORT).show();\r\n\r\n            }\r\n        });\r\n\r\n        expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {\r\n            @Override\r\n            public boolean onChildClick(ExpandableListView parent, View v,\r\n                                        int groupPosition, int childPosition, long id) {\r\n                Toast.makeText(\r\n                        getApplicationContext(),\r\n                        expandableListTitle.get(groupPosition)\r\n                                + \" -&gt; \"\r\n                                + expandableListDetail.get(\r\n                                expandableListTitle.get(groupPosition)).get(\r\n                                childPosition), Toast.LENGTH_SHORT\r\n                ).show();\r\n                return false;\r\n            }\r\n        });\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u4ee5\u524d\u306b\u8aac\u660e\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002\u7c21\u5358\u306e\u305f\u3081\u3001\u30af\u30ea\u30c3\u30af\u3054\u3068\u306b\u30a2\u30a4\u30c6\u30e0\u306e\u540d\u524d\u307e\u305f\u306f\u30b0\u30eb\u30fc\u30d7\u306e\u72b6\u614b\u3092\u8868\u793a\u3059\u308b\u3060\u3051\u306e\u30c8\u30fc\u30b9\u30c8\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3089\u306f\u7c21\u5358\u306b\u4ed6\u306e\u64cd\u4f5c\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Android ExpandableListView\u3092\u4f7f\u7528\u3057\u305f\u30a2\u30d7\u30ea\u306e\u52d5\u4f5c\u4f8b\u3067\u3059\u3002\u6ce8\u610f\uff1aExpandableListView\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u3067Android ExpandableListView\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u7d42\u4e86\u3067\u3059\u3002\u6700\u7d42\u7684\u306aAndroid ExpandableListView\u306e\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>Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eExpandableListView\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30ab\u30c6\u30b4\u30ea\u3054\u3068\u306b\u30ea\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u305f\u3081\u306bExpandableListView\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u3053\u308c\u306fAndro [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-756","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\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\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\u306eexpandablelistview\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:description\" content=\"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\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\u306eexpandablelistview\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-07T20:41:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T17:12:08+00:00\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\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=\"\u5149, \u660e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"26\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%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/\",\"name\":\"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-11-07T20:41:20+00:00\",\"dateModified\":\"2025-07-31T17:12:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"description\":\"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\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%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\"}]},{\"@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\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud","description":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\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\u306eexpandablelistview\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\/","og_locale":"ja_JP","og_type":"article","og_title":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002","og_description":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\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\u306eexpandablelistview\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-07T20:41:20+00:00","article_modified_time":"2025-07-31T17:12:08+00:00","author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"26\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/","name":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-11-07T20:41:20+00:00","dateModified":"2025-07-31T17:12:08+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"description":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\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%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Android\u306eExpandableListView\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002"}]},{"@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\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android%e3%81%aeexpandablelistview%e3%81%ae%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%92%e6%8f%90%e4%be%9b%e3%81%97%e3%81%be%e3%81%99\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/756","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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"predecessor-version":[{"id":44626,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/756\/revisions\/44626"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}