{"id":929,"date":"2022-11-03T19:06:05","date_gmt":"2023-01-20T13:31:17","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/android-snackbar%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\/"},"modified":"2025-08-01T03:37:13","modified_gmt":"2025-07-31T18:37:13","slug":"android-snackbar%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","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/","title":{"rendered":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"},"content":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u69d8\u3005\u306a\u5f62\u5f0f\u306eAndroid Snackbar\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3001\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30b9\u30ca\u30c3\u30af\u30d0\u30fc<\/h2>\n<p>Android Snackbar\u306f\u3001Toast\u306e\u4ee3\u308f\u308a\u3068\u3057\u3066\u5c0e\u5165\u3055\u308c\u305f\u65b0\u3057\u3044\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u3059\u3002Android Snackbar\u306f\u8efd\u91cf\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e0b\u90e8\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30b9\u30ef\u30a4\u30d4\u30f3\u30b0\u3082\u53ef\u80fd\u3067\u3059\u3002Android Snackbar\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30c8\u30fc\u30b9\u30c8\u3068\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30c8\u30fc\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u753b\u9762\u4e0a\u306e\u3069\u3053\u3067\u3082\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306f\u753b\u9762\u306e\u4e0b\u90e8\u306b\u3057\u304b\u8868\u793a\u3067\u304d\u307e\u305b\u3093\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30c8\u30fc\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u306f\u30a2\u30af\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3\u304c\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30a2\u30af\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306b\u306f\u8907\u6570\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3\u3092\u6301\u3064\u3079\u304d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30c8\u30fc\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u6642\u9593\u5236\u9650\u304c\u7d42\u4e86\u3059\u308b\u307e\u3067\u975e\u8868\u793a\u306b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306f\u6642\u9593\u5236\u9650\u524d\u306b\u30b9\u30ef\u30a4\u30d7\u3059\u308b\u3053\u3068\u3067\u975e\u8868\u793a\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/ol>\n<p>\u6ce8\u610f\uff1a\u30c8\u30fc\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306f\u3001\u8868\u793a\u6642\u9593\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5171\u6709\u3057\u3066\u3044\u307e\u3059\u3002\u57fa\u672c\u7684\u306aAndroid\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u4ee5\u4e0b\u306b\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Snackbar snackbar = Snackbar\r\n        .make(coordinatorLayout, \"www.scdev.com\", Snackbar.LENGTH_LONG);\r\nsnackbar.show();\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3067\u306f\u3001make()\u30e1\u30bd\u30c3\u30c9\u306f3\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u53d7\u3051\u5165\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>coordinatorLayout: \u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30eb\u30fc\u30c8\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3059<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>www.scdev.com: \u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306b\u8868\u793a\u3055\u308c\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3042\u308a\u3001\u72ec\u81ea\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>Snackbar.LENGH_LONG: \u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u6642\u9593\u5236\u9650\u306e\u6700\u5f8c\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059<\/ol>\n<p>show\uff08\uff09\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u4e0a\u306bSnackbar\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Android\u306eSnackbar\u306e\u4f8b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u9020<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a67cdaa94e2bdf7c415d\/11-0.png\" alt=\"android snackbar example project\" \/><\/div>\n<h3>Android\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u306e\u4f8b\u306e\u30b3\u30fc\u30c9<\/h3>\n<p>activity_main.xml\u306b\u306fCoordinatorLayout\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306b\u5909\u66f4\u306f\u3042\u308a\u307e\u305b\u3093\u3002content_main.xml\u306b\u306f3\u3064\u306e\u30dc\u30bf\u30f3\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306eSnackbar\u306e\u30bf\u30a4\u30d7\u306b\u5bfe\u5fdc\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;RelativeLayout 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    android:paddingBottom=\"@dimen\/activity_vertical_margin\"\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    app:layout_behavior=\"@string\/appbar_scrolling_view_behavior\"\r\n    tools:context=\"com.scdev.snackbar.MainActivity\"\r\n    tools:showIn=\"@layout\/activity_main\"&gt;\r\n\r\n    &lt;Button\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"DEFAULT SNACKBAR\"\r\n        android:id=\"@+id\/button\"\r\n        android:layout_alignParentTop=\"true\"\r\n        android:layout_centerHorizontal=\"true\" \/&gt;\r\n\r\n    &lt;Button\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"ACTION CALL SNACKBAR\"\r\n        android:id=\"@+id\/button2\"\r\n        android:layout_below=\"@+id\/button\"\r\n        android:layout_centerHorizontal=\"true\" \/&gt;\r\n\r\n    &lt;Button\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"CUSTOM VIEW SNACKBAR\"\r\n        android:id=\"@+id\/button3\"\r\n        android:layout_below=\"@+id\/button2\"\r\n        android:layout_centerHorizontal=\"true\" \/&gt;\r\n&lt;\/RelativeLayout&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306b\u30a2\u30af\u30b7\u30e7\u30f3\u30b3\u30fc\u30eb\u30b9\u30ca\u30c3\u30af\u30d0\u30fc\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>two.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Snackbar snackbar = Snackbar\r\n                        .make(coordinatorLayout, \"Message is deleted\", Snackbar.LENGTH_LONG)\r\n                        .setAction(\"UNDO\", new View.OnClickListener() {\r\n                            @Override\r\n                            public void onClick(View view) {\r\n                                Snackbar snackbar1 = Snackbar.make(coordinatorLayout, \"Message is restored!\", Snackbar.LENGTH_SHORT);\r\n                                snackbar1.show();\r\n                            }\r\n                        });\r\n\r\n                snackbar.show();\r\n            }\r\n\r\n        });\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u65b0\u3057\u3044onClickListener\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u3001\u305d\u308c\u306b\u5fdc\u3058\u305fSnackbar\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\uff12\u756a\u76ee\u306e\u30dc\u30bf\u30f3\u3067\u547c\u3073\u51fa\u3055\u308c\u308b\u30ab\u30b9\u30bf\u30e0Snackbar\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>three.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Snackbar snackbar = Snackbar\r\n                        .make(coordinatorLayout, \"Try again!\", Snackbar.LENGTH_LONG)\r\n                        .setAction(\"RETRY\", new View.OnClickListener() {\r\n                            @Override\r\n                            public void onClick(View view) {\r\n                            }\r\n                        });\r\n                snackbar.setActionTextColor(Color.RED);\r\n                View sbView = snackbar.getView();\r\n                TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_text);\r\n                textView.setTextColor(Color.YELLOW);\r\n                snackbar.show();\r\n            }\r\n        });\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306bMainActivity.java\u304c\u4e0e\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.snackbar;\r\n\r\nimport android.graphics.Color;\r\nimport android.os.Bundle;\r\nimport android.support.design.widget.CoordinatorLayout;\r\nimport android.support.design.widget.FloatingActionButton;\r\nimport android.support.design.widget.Snackbar;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.support.v7.widget.Toolbar;\r\nimport android.view.View;\r\nimport android.view.Menu;\r\nimport android.view.MenuItem;\r\nimport android.widget.Button;\r\nimport android.widget.TextView;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n    CoordinatorLayout coordinatorLayout;\r\n    private Button one, two, three;\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        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\r\n        setSupportActionBar(toolbar);\r\n\r\n        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\r\n        fab.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View view) {\r\n                Snackbar.make(view, \"FloatingActionButton is clicked\", Snackbar.LENGTH_LONG)\r\n                        .setAction(\"Action\", null).show();\r\n            }\r\n        });\r\n\r\n        coordinatorLayout = (CoordinatorLayout) findViewById(R.id.coordinatorLayout);\r\n\r\n        View layout= findViewById(R.id.layout);\r\n\r\n        one=(Button)layout.findViewById(R.id.button);\r\n        two=(Button)layout.findViewById(R.id.button2);\r\n        three=(Button)layout.findViewById(R.id.button3);\r\n\r\n\r\n\r\n        one.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Snackbar snackbar = Snackbar\r\n                        .make(coordinatorLayout, \"www.scdev.com\", Snackbar.LENGTH_LONG);\r\n                snackbar.show();\r\n            }\r\n        });\r\n\r\n        two.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Snackbar snackbar = Snackbar\r\n                        .make(coordinatorLayout, \"Message is deleted\", Snackbar.LENGTH_LONG)\r\n                        .setAction(\"UNDO\", new View.OnClickListener() {\r\n                            @Override\r\n                            public void onClick(View view) {\r\n                                Snackbar snackbar1 = Snackbar.make(coordinatorLayout, \"Message is restored!\", Snackbar.LENGTH_SHORT);\r\n                                snackbar1.show();\r\n                            }\r\n                        });\r\n\r\n                snackbar.show();\r\n            }\r\n\r\n        });\r\n\r\n        three.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Snackbar snackbar = Snackbar\r\n                        .make(coordinatorLayout, \"Try again!\", Snackbar.LENGTH_LONG)\r\n                        .setAction(\"RETRY\", new View.OnClickListener() {\r\n                            @Override\r\n                            public void onClick(View view) {\r\n                            }\r\n                        });\r\n                snackbar.setActionTextColor(Color.RED);\r\n                View sbView = snackbar.getView();\r\n                TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_text);\r\n                textView.setTextColor(Color.YELLOW);\r\n                snackbar.show();\r\n            }\r\n        });\r\n\r\n\r\n    }\r\n\r\n    @Override\r\n    public boolean onCreateOptionsMenu(Menu menu) {\r\n        \/\/ Inflate the menu; this adds items to the action bar if it is present.\r\n        getMenuInflater().inflate(R.menu.menu_main, menu);\r\n        return true;\r\n    }\r\n\r\n    @Override\r\n    public boolean onOptionsItemSelected(MenuItem item) {\r\n        \/\/ Handle action bar item clicks here. The action bar will\r\n        \/\/ automatically handle clicks on the Home\/Up button, so long\r\n        \/\/ as you specify a parent activity in AndroidManifest.xml.\r\n        int id = item.getItemId();\r\n\r\n        \/\/noinspection SimplifiableIfStatement\r\n        if (id == R.id.action_settings) {\r\n            return true;\r\n        }\r\n\r\n        return super.onOptionsItemSelected(item);\r\n    }\r\n}\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a67cdaa94e2bdf7c415d\/21-0.gif\" alt=\"snackbar android app example\" \/><\/div>\n<p>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306eSnackBar\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<p>\u53c2\u8003\uff1aAndroid\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u69d8\u3005\u306a\u5f62\u5f0f\u306eAndroid Snackbar\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3001\u5b9f\u88c5\u3057\u307e\u3059\u3002 \u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30b9\u30ca\u30c3\u30af\u30d0\u30fc Android Snackbar\u306f\u3001Toast\u306e\u4ee3\u308f\u308a\u3068\u3057\u3066\u5c0e [&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-929","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 Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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-snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" \/>\n<meta property=\"og:description\" content=\"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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-snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-20T13:31:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T18:37:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a67cdaa94e2bdf7c415d\/11-0.png\" \/>\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=\"17\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-snackbar%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\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/\",\"name\":\"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-01-20T13:31:17+00:00\",\"dateModified\":\"2025-07-31T18:37:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"description\":\"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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-snackbar%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\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\"}]},{\"@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-snackbar%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\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","description":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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-snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","og_description":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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-snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-20T13:31:17+00:00","article_modified_time":"2025-07-31T18:37:13+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a67cdaa94e2bdf7c415d\/11-0.png"}],"author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"17\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/","name":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-01-20T13:31:17+00:00","dateModified":"2025-07-31T18:37:13+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"description":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\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-snackbar%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\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/android-snackbar%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\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Android Snackbar\u306e\u30b5\u30f3\u30d7\u30eb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"}]},{"@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-snackbar%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\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/929","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=929"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/929\/revisions"}],"predecessor-version":[{"id":46780,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/929\/revisions\/46780"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}