{"id":85010,"date":"2021-09-30T09:00:20","date_gmt":"2021-09-30T03:30:20","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=85010"},"modified":"2024-08-15T21:08:31","modified_gmt":"2024-08-15T15:38:31","slug":"android-layout-and-views","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/","title":{"rendered":"Android Layout and Views"},"content":{"rendered":"<p>I hope you are enjoying your Android journey so far and are developing some awesome apps. Today, we\u2019ll dive into a pretty exciting topic: Layouts and Views. An interactive UI is key to attracting more users to your application. To build such a user-friendly interface, it&#8217;s crucial to have a solid understanding of Android Layout, Views, and View Groups.<\/p>\n<p>In this article, we\u2019ll explore the various layout, views, and view groups available in Android, providing you with the knowledge needed to create engaging and visually appealing apps. Let&#8217;s start and enhance your UI design skills!<\/p>\n<h3>What is an Android Layout?<\/h3>\n<p>A layout defines the structure of your application. In other words, a layout is a container that holds several view elements inside it. The view elements are TextView, ImageView, Button, EditText, etc. Layouts have their params and using them, we can alter the margins, paddings, etc., for a given layout.<\/p>\n<p>Whenever you develop an application, you first need to choose the layout and style it accordingly to make your application look better. Every Layout in android is styled using the XML language, as shown below.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:orientation=\"vertical\"\r\n    tools:context=\".MainActivity\"&gt;\r\n\r\n    &lt;TextView\r\n        android:id=\"@+id\/title\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"TechVidvan Android\"\r\n        android:textSize=\"40sp\"\r\n        android:textColor=\"#078A0D\"\r\n        android:textStyle=\"bold\"\r\n        android:gravity=\"center\"\r\n        android:layout_margin=\"20dp\"\r\n        \/&gt;\r\n    \r\n\r\n&lt;\/LinearLayout&gt;\r\n<\/pre>\n<h3>Types of Layouts in Android<\/h3>\n<p>Android provides you with several types of layouts depending upon your needs. Let\u2019s see all of them with a brief description of each.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Layout Type<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Linear Layout<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Linear Layout is used to align your items in a linear fashion, either vertical or horizontal.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Relative Layout<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Relative Layout is used when you wish to place views relative to each other\u2019s position.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Table Layout<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Table Layout is used to display the items(such as text, image, etc) in the form of rows and columns.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Absolute Layout<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Absolute Layout is used when you want to fix the position of an element in the screen.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Frame Layout<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Frame Layout is used when you deal with fragments. This layout allows you only to have one child view.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">List View<\/span><\/td>\n<td><span style=\"font-weight: 400;\">List View is used when you wish to display your items in the form of a list.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Grid View<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Grid View is used when you wish to show your data in the form of a grid of one\u2019s, two\u2019s, three\u2019s, or so on.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Web View<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Web View is a layout that is used mainly when dealing with web pages inside the application.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Scroll View<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Scroll View allows your content to scroll vertically or horizontally. The point to note is that ScrollView has only one child view.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Constraint Layout<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Constraint layout is the most adaptive layout among all the above. It allows you to put vertical, horizontal, top, and bottom constraints for any element.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Android Layout Attributes<\/h3>\n<p>Now let\u2019s see the attributes you can apply to layouts to style them and provide more functionalities.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Attribute Name<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:id<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201cid\u201d attribute helps in the unique identification of the layout in your design.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_width<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_width\u201d attribute sets the width of the layout.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_height<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_height\u201d attribute sets the height of the layout.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_marginTop<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_marginTop\u201d attribute specifies the margin of the layout from the top.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_marginBottom<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_marginTop\u201d attribute specifies the margin of the layout from the bottom.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_marginLeft<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_marginTop\u201d attribute specifies the margin of the layout from the left side.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_marginRight<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_marginTop\u201d attribute specifies the margin of the layout from the right side.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_gravity<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_gravity\u201d attribute specifies the position of the layout on the screen. The possible positions are center, top, bottom, left, right, etc.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_weight<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_weight\u201d attribute is usually applied to the views inside the layout. It specifies how many portions(or free space) of layout that view should occupy.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_x<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_x\u201d attribute is used to specify the x coordinates for your layout.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:layout_y<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201clayout_y\u201d attribute is used to specify the y coordinates for your layout.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:paddingLeft<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201cpaddingLeft\u201d attribute is used to provide padding to the layout from the left.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:paddingRight<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201cpaddingLeft\u201d attribute is used to provide padding to the layout from the right.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:paddingTop<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201cpaddingTop\u201d attribute is used to provide padding to the layout from the top.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">android:paddingBottom<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The \u201cpaddingBottom\u201d attribute is used to provide padding to the layout from the bottom.\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>What is an Android View?<\/h3>\n<p>A View is a fundamental element for any user interface (or design) in android. View provides you with a rectangular space that can be used to display, interact or handle events. The view is a superclass for any graphical components in android. Usually, each view is rectangular and can hold textual and visual contents. Attached to a view, there are several attributes that define the property and functionality of that view.<\/p>\n<p>Below is a general example of defining a view using XML.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;YourViewName\r\n    Attribute_1 = value_1\r\n    Attribute_2 = value_2\r\n    Attribute_3 = value_3\r\n    Attribute_4 = value_4\r\n    .\r\n    .\r\n    .\r\n    Attribute_n = value_n\r\n\/&gt;\r\n<\/pre>\n<p>Views, as you know, are the elements that you can add to your user interface. Views are constructive in creating fabulous, incredible, and gorgeous user interfaces. Along with this, the views are useful to make your interface interactive and available supporting clicks, gestures, touches, etc.<\/p>\n<h3>Types of Android Views<\/h3>\n<p>Android provides a bunch of views that are useful depending upon the needs of your application. Some of them are as follows:<\/p>\n<ul>\n<li>TextView<\/li>\n<li>ImageView<\/li>\n<li>EditText<\/li>\n<li>Button<\/li>\n<li>ImageButton<\/li>\n<li>ToggleButton<\/li>\n<li>RadioButton<\/li>\n<li>RadioGroup<\/li>\n<li>CheckBox<\/li>\n<\/ul>\n<h3>What is Android ViewGroup?<\/h3>\n<p>Android ViewGroup is a container that holds several views, layouts, or even other view groups inside it. Using the view group, you can give rise to several views and layouts. Android ViewGroup is a superclass for all layouts and acts as a subclass for the View class. ViewGroup can be thought of as an exceptional view known as parent view, and the views inside it are known as child views.<\/p>\n<p>Some of the most commonly used ViewGroups are as follows:<\/p>\n<ul>\n<li>FrameLayout<\/li>\n<li>WebView<\/li>\n<li>LinearLayout<\/li>\n<li>RelativeLayout<\/li>\n<li>TableLayout<\/li>\n<li>Constraint Layout<\/li>\n<li>ListView<\/li>\n<li>GridView<\/li>\n<\/ul>\n<h3>Difference between Android View and Android ViewGroup.<\/h3>\n<table>\n<tbody>\n<tr>\n<td><b>View<\/b><\/td>\n<td><b>ViewGroup<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">The view is a fundamental UI component that responds to user interactions(touches, clicks, scrolls, etc.).<\/span><\/td>\n<td><span style=\"font-weight: 400;\">ViewGroup is a container that holds several views, layouts, and view groups inside it.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">The view is a superclass for many view elements like TextView, ImageView, Button, etc.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">ViewGroup is a superclass for various layouts like LinearLayout, RelativeLayout, etc.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">The view belongs to the <\/span><b>android.view.View class<\/b><\/td>\n<td><span style=\"font-weight: 400;\">ViewGroup belongs to the <\/span><b>android.view.ViewGroup class<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">A View object is usually a widget, for example, Button, TextView, ImageView, etc.\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">A ViewGroup object is typically a layout containing several views and layouts inside it.\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">View, in general, is known as a <\/span><b>child view<\/b><span style=\"font-weight: 400;\">.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">ViewGroup is known as <\/span><b>parent view <\/b><span style=\"font-weight: 400;\">holding several child views.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>View Identification in Android<\/h3>\n<p>View identification is essential in android because you can\u2019t respond to the user without identifying your view elements. You should locate the view to know which view was triggered by the user and what response you should provide.<\/p>\n<p>So, first of all, you need to provide an id to your view element, and then in your Kotlin class, you need to use the <strong>findViewByID()<\/strong> method to bind the view element with a Kotlin class variable.<\/p>\n<p><strong>XML Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;TextView\r\n        android:id=\"@+id\/title\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"TechVidvan Android\"\r\n        android:textSize=\"40sp\"\r\n        android:textColor=\"#078A0D\"\r\n        android:textStyle=\"bold\"\r\n        android:gravity=\"center\"\r\n        android:layout_margin=\"20dp\"\r\n        \/&gt;\r\n<\/pre>\n<p><strong>Kotlin Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/declaring variable to point to the TextView\r\nlateinit var myTextTitle:TextView\r\n\r\n\/\/binding the TextView with our declared variable\r\nmyTextTitle = findViewById(R.id.title)\r\n<\/pre>\n<h3>Summary<\/h3>\n<p>Through this article, you came across several terms related to the user interface design in android. You saw what layouts are and also came across the way to create them. You saw the various types of layouts and their attributes. Moving on, you come across Views and ViewGroups. You saw what each of them is and also came across the difference between them. Finally, you came across the View identification in Android.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hope you are enjoying your Android journey so far and are developing some awesome apps. Today, we\u2019ll dive into a pretty exciting topic: Layouts and Views. An interactive UI is key to attracting&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":85181,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2791],"tags":[4368,4369,4370,4371,4035,4372],"class_list":["post-85010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","tag-android-layout","tag-android-layout-attributes","tag-android-viewgroup","tag-android-views","tag-types-of-android-views","tag-types-of-layouts-in-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android Layout and Views - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn what is Android layout, its types &amp; attributes. See view in Android, Types of Android view, Android ViewGroup &amp; view identification.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Layout and Views - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn what is Android layout, its types &amp; attributes. See view in Android, Types of Android view, Android ViewGroup &amp; view identification.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-30T03:30:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-15T15:38:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/09\/android-layout-and-views.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Layout and Views - TechVidvan","description":"Learn what is Android layout, its types & attributes. See view in Android, Types of Android view, Android ViewGroup & view identification.","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:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/","og_locale":"en_US","og_type":"article","og_title":"Android Layout and Views - TechVidvan","og_description":"Learn what is Android layout, its types & attributes. See view in Android, Types of Android view, Android ViewGroup & view identification.","og_url":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-09-30T03:30:20+00:00","article_modified_time":"2024-08-15T15:38:31+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/09\/android-layout-and-views.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Android Layout and Views","datePublished":"2021-09-30T03:30:20+00:00","dateModified":"2024-08-15T15:38:31+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/"},"wordCount":1273,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/09\/android-layout-and-views.jpg","keywords":["Android Layout","Android Layout Attributes","Android ViewGroup","Android views","types of Android views","Types of Layouts in Android"],"articleSection":["Android Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/","url":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/","name":"Android Layout and Views - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/09\/android-layout-and-views.jpg","datePublished":"2021-09-30T03:30:20+00:00","dateModified":"2024-08-15T15:38:31+00:00","description":"Learn what is Android layout, its types & attributes. See view in Android, Types of Android view, Android ViewGroup & view identification.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/09\/android-layout-and-views.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/09\/android-layout-and-views.jpg","width":1200,"height":628,"caption":"android layout and views"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/android-layout-and-views\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Android Layout and Views"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=85010"}],"version-history":[{"count":2,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85010\/revisions"}],"predecessor-version":[{"id":447640,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85010\/revisions\/447640"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/85181"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=85010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=85010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=85010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}