{"id":5023,"date":"2021-09-20T15:25:08","date_gmt":"2021-09-20T15:25:08","guid":{"rendered":"https:\/\/serkanseker.com\/?p=5023"},"modified":"2021-09-20T15:25:08","modified_gmt":"2021-09-20T15:25:08","slug":"xamarin-android-snackbar-example","status":"publish","type":"post","link":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/","title":{"rendered":"Xamarin.Android SnackBar Example"},"content":{"rendered":"<p>In this article, I will take a closer look at the <strong>SnackBar <\/strong>structure in Xamarin.Android applications. The <strong>SnackBar <\/strong>structure is used at the bottom of the screen to inform the user or to interact with the user.<\/p>\n<p>Although SnackBar functionally resembles <a href=\"https:\/\/www.serkanseker.com\/xamarin-forms-display-toast-message\/\" target=\"_blank\" rel=\"noreferrer noopener\">Toast messages<\/a>, it stands out with a few features. For example, we can add a button to the SnackBar, or we can drag it away from the screen whenever we want. In addition, we can change the text color and size as we wish in order to be compatible with the layout design. With this structure, Toast is separated from the message and becomes a more useful structure.<\/p>\n<p>Considering these features, using Snackbar for an effective user experience will undoubtedly take your application one step ahead.<\/p>\n<h2 class=\"wp-block-heading\">1) Create a Layout<\/h2>\n<p>First, add a layout called snackbar_layout.xml to your application. Then add 2 buttons named \u201cDefault SnackBar\u201d and \u201cCustom SnackBar\u201d to this layout.<\/p>\n<p>snackbar_layout.xml codes:<\/p>\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\n&lt;LinearLayout\n    xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;\n    xmlns:app=&quot;http:\/\/schemas.android.com\/apk\/res-auto&quot;\n    xmlns:tools=&quot;http:\/\/schemas.android.com\/tools&quot;\n    android:layout_width=&quot;match_parent&quot;\n    android:orientation=&quot;vertical&quot;\n    android:layout_height=&quot;match_parent&quot;\n    android:paddingTop=&quot;50dp&quot;&gt;\n\n    &lt;Button\n        android:layout_width=&quot;match_parent&quot;\n        android:layout_height=&quot;wrap_content&quot;\n        android:text=&quot;Default SnackBar&quot;\n        android:id=&quot;@+id\/default_snackbar_action&quot;\/&gt;\n     &lt;Button\n        android:layout_width=&quot;match_parent&quot;\n        android:layout_height=&quot;wrap_content&quot;\n        android:text=&quot;Custom SnackBar&quot;\n        android:id=&quot;@+id\/custom_snackbar_action&quot;\/&gt;\n&lt;\/LinearLayout&gt;<\/code><\/pre>\n<p>The layout will look like this:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg\" alt=\"Xamarin.Android SnackBar Layout \" class=\"wp-image-4123\" width=\"237\" height=\"512\" \/><figcaption>Layout view<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">2) Create the SnackBar View<\/h2>\n<p>Then create an activity named SnackBarActivity for this layout.<\/p>\n<p>Now first define Default SnackBar button and click event. Then create a Snackbar object with the <strong>Make()<\/strong> method and finally display it on the screen with the <strong>Show()<\/strong> method.<\/p>\n<p>Here you can set the duration of the SnackBar in 3 different ways:<\/p>\n<ul>\n<li><strong>LengthShort <\/strong>: Short-term display.<\/li>\n<li><strong>LengthLong <\/strong>: Long-term display.<\/li>\n<li><strong>LengthIndefinite <\/strong>: Indefinite display. In this example project, I set the duration as LengthIndefinite and then I made the SnackBar appear 1000ms(1s) with the SetDuration() method.<\/li>\n<\/ul>\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-csharp\">public class SnackBarActivity : AppCompatActivity\n{\n    Button default_snackbar_button;\n    protected override void OnCreate(Bundle savedInstanceState)\n    {\n        base.OnCreate(savedInstanceState);\n        Xamarin.Essentials.Platform.Init(this, savedInstanceState);\n        \/\/ Set our view from the &quot;main&quot; layout resource\n        SetContentView(Resource.Layout.snackbar_layout);\n        default_snackbar_button = FindViewById&lt;Button&gt;(Resource.Id.default_snackbar_action);\n        default_snackbar_button.Click += Default_snackbar_button_Click;\n    }\n\n    private void Default_snackbar_button_Click(object sender, System.EventArgs e)\n    {\n        \/\/Create the Snackbar \n        Snackbar default_snackBar = (Snackbar)Snackbar.Make(default_snackbar_button, &quot;Default SnackBar&quot;, Snackbar.LengthIndefinite)\n             .SetDuration(1000);\n        \/\/Show the snackbar\n        default_snackBar.Show();\n    }\n\n    public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)\n    {\n        Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);\n\n        base.OnRequestPermissionsResult(requestCode, permissions, grantResults);\n    }\n}<\/code><\/pre>\n<p>When you run the application and click the button, you will get a disappearing view for 1 second:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-default-snackbar.gif\" alt=\"Xamarin.Android Default SnackBar\" class=\"wp-image-4124\" width=\"295\" height=\"640\" \/><figcaption>Xamarin.Android Default SnackBar<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">3) Customizing the SnackBar Element<\/h2>\n<p>Here, too, first define the Custom SnackBar button and its click event.<\/p>\n<p>Then create a SnackBar with the Make() method and the SetAction() method to define the button name and the events that will occur when the button is clicked.<\/p>\n<p>Later on,<\/p>\n<ul>\n<li>Set the text color of the button that will appear on the SnackBar with the <strong>SetActionTextColor()<\/strong> method, <\/li>\n<li>the text size of the button with the <strong>SetTextSize()<\/strong> method, <\/li>\n<li>the color of the message that will be displayed with <strong>SetTextColor()<\/strong>, <\/li>\n<li>and the size of the message that will be displayed with <strong>SetTextSize()<\/strong>.<\/li>\n<\/ul>\n<p>Then show it with the <strong>Show()<\/strong> method.<\/p>\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-csharp\">public class MainActivity : AppCompatActivity\n{\n    Button custom_snackbar_button;\n    protected override void OnCreate(Bundle savedInstanceState)\n    {\n        base.OnCreate(savedInstanceState);\n        Xamarin.Essentials.Platform.Init(this, savedInstanceState);\n        \/\/ Set our view from the &quot;main&quot; layout resource\n        SetContentView(Resource.Layout.snackbar_layout);\n        custom_snackbar_button = FindViewById&lt;Button&gt;(Resource.Id.custom_snackbar_action);\n        custom_snackbar_button.Click += Custom_snackbar_button_Click;\n    }\n\n    private void Custom_snackbar_button_Click(object sender, System.EventArgs e)\n    {\n\n        \/\/Creates the Snackbar and subscribes the button press event\n        Snackbar custom_snackBar = Snackbar.Make(custom_snackbar_button, &quot;Custom SnackBar&quot;, Snackbar.LengthIndefinite).SetAction(&quot;Cancel&quot;, (v) =&gt;\n        {\n        });\n\n        \/\/set  action button text color \n        custom_snackBar.SetActionTextColor(Android.Graphics.Color.Red);\n\n        \/\/Set action button text size\n        TextView txtAction = custom_snackBar.View.FindViewById&lt;TextView&gt;(Resource.Id.snackbar_action);\n        txtAction.SetTextSize(Android.Util.ComplexUnitType.Dip, 18);\n\n        \/\/Set message text size and color\n        TextView txtMessage = custom_snackBar.View.FindViewById&lt;TextView&gt;(Resource.Id.snackbar_text);\n        txtMessage.SetTextColor(Android.Graphics.Color.Green);\n        txtMessage.SetTextSize(Android.Util.ComplexUnitType.Dip, 20);\n\n        \/\/Show the snackbar\n        custom_snackBar.Show();\n\n    }\n\n    public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)\n    {\n        Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);\n\n        base.OnRequestPermissionsResult(requestCode, permissions, grantResults);\n    }\n}<\/code><\/pre>\n<p>Now when you click the button the SnackBar will appear and when you click the \u201cCancel\u201d button it will disappear. As you can see, the text color, button color appeared as we set it.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-custom-snackbar.gif\" alt=\"Xamarin.Android Custom SnackBar\" class=\"wp-image-4125\" width=\"295\" height=\"640\" \/><figcaption>Xamarin.Android Custom SnackBar<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">4) Conclusion<\/h2>\n<p>In this article, I have explained step by step how to add SnackBar to your Xamarin.Android applications. I hope it was useful.<\/p>\n<p>If you\u2019re still not sure what to do, or if you got any errors, then I suggest you use the comment section below and let me know! I am here to help!<\/p>\n<p><strong>Also, share this blog post on social media and help more people learn.<\/strong><\/p>\n<p>Resources:<\/p>\n<ul>\n<li>https:\/\/medium.com\/corrado-cavalli\/add-a-snackbar-to-you-xamarin-android-app-4d321ecb98ff<\/li>\n<\/ul>\n<p>The post <a href=\"https:\/\/www.serkanseker.com\/xamarin-android-snackbar-example\/\">Xamarin.Android SnackBar Example<\/a> appeared first on <a href=\"https:\/\/www.serkanseker.com\">Serkan&#039;s MAUI Blog<\/a>.<\/p>\n<p>]&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although SnackBar functionally resembles Toast messages, it stands out with a few features. For example, we can add a button to the SnackBar, or we can drag it away from the screen whenever we want. In addition, we can c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[21,37],"tags":[],"class_list":["post-5023","post","type-post","status-publish","format-standard","hentry","category-xamarin","category-xamarin-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Xamarin.Android SnackBar Example - Serkan Seker TR<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Xamarin.Android SnackBar Example - Serkan Seker TR\" \/>\n<meta property=\"og:description\" content=\"Although SnackBar functionally resembles Toast messages, it stands out with a few features. For example, we can add a button to the SnackBar, or we can drag it away from the screen whenever we want. In addition, we can c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Serkan Seker TR\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-20T15:25:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg\" \/>\n<meta name=\"author\" content=\"serkanadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"serkanadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/\"},\"author\":{\"name\":\"serkanadmin\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\"},\"headline\":\"Xamarin.Android SnackBar Example\",\"datePublished\":\"2021-09-20T15:25:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/\"},\"wordCount\":511,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg\",\"articleSection\":[\"Xamarin\",\"Xamarin.Android\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/\",\"name\":\"Xamarin.Android SnackBar Example - Serkan Seker TR\",\"isPartOf\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg\",\"datePublished\":\"2021-09-20T15:25:08+00:00\",\"author\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\"},\"breadcrumb\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage\",\"url\":\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg\",\"contentUrl\":\"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/serkanseker.com\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Xamarin.Android SnackBar Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#website\",\"url\":\"https:\/\/serkanseker.com\/tr\/\",\"name\":\"Serkan Seker TR\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/serkanseker.com\/tr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\",\"name\":\"serkanadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g\",\"caption\":\"serkanadmin\"},\"sameAs\":[\"https:\/\/serkanseker.com\"],\"url\":\"https:\/\/serkanseker.com\/tr\/author\/serkanadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Xamarin.Android SnackBar Example - Serkan Seker TR","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Xamarin.Android SnackBar Example - Serkan Seker TR","og_description":"Although SnackBar functionally resembles Toast messages, it stands out with a few features. For example, we can add a button to the SnackBar, or we can drag it away from the screen whenever we want. In addition, we can c","og_url":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/","og_site_name":"Serkan Seker TR","article_published_time":"2021-09-20T15:25:08+00:00","og_image":[{"url":"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg","type":"","width":"","height":""}],"author":"serkanadmin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"serkanadmin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#article","isPartOf":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/"},"author":{"name":"serkanadmin","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5"},"headline":"Xamarin.Android SnackBar Example","datePublished":"2021-09-20T15:25:08+00:00","mainEntityOfPage":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/"},"wordCount":511,"commentCount":0,"image":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg","articleSection":["Xamarin","Xamarin.Android"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/","url":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/","name":"Xamarin.Android SnackBar Example - Serkan Seker TR","isPartOf":{"@id":"https:\/\/serkanseker.com\/tr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage"},"image":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg","datePublished":"2021-09-20T15:25:08+00:00","author":{"@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5"},"breadcrumb":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#primaryimage","url":"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg","contentUrl":"https:\/\/www.serkanseker.com\/wp-content\/uploads\/2021\/09\/xamarin-android-snackbar-layout-xml.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/serkanseker.com\/tr\/xamarin-android-snackbar-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/serkanseker.com\/tr\/"},{"@type":"ListItem","position":2,"name":"Xamarin.Android SnackBar Example"}]},{"@type":"WebSite","@id":"https:\/\/serkanseker.com\/tr\/#website","url":"https:\/\/serkanseker.com\/tr\/","name":"Serkan Seker TR","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/serkanseker.com\/tr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5","name":"serkanadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g","caption":"serkanadmin"},"sameAs":["https:\/\/serkanseker.com"],"url":"https:\/\/serkanseker.com\/tr\/author\/serkanadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts\/5023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/comments?post=5023"}],"version-history":[{"count":0,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts\/5023\/revisions"}],"wp:attachment":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/media?parent=5023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/categories?post=5023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/tags?post=5023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}