{"id":1481,"date":"2018-10-17T14:28:26","date_gmt":"2018-10-17T14:28:26","guid":{"rendered":"https:\/\/sezeromer.com\/?p=1481"},"modified":"2023-02-27T21:23:48","modified_gmt":"2023-02-27T18:23:48","slug":"xamarin-forms-instagram-ana-sayfa-tasarimi","status":"publish","type":"post","link":"https:\/\/sezeromer.com\/en\/xamarin-forms-instagram-ana-sayfa-tasarimi\/","title":{"rendered":"Xamarin Forms Instagram Home Page Desing"},"content":{"rendered":"<p>Hello friends. In this article, we will talk about how the design can be done which is one of the most difficult aspects of Xamarin.Forms. While Xamarin Forms attracts users with a lot of features, developers can be attracted by the difficult design. So in this article we will talk about how to make Instagram home page, one of the most used applications with Xamarin Forms. In a previous article we have done the design of Instagram&#8217;s home page. You can read it <a href=\"https:\/\/sezeromer.com\/xamarin-forms-instagram-tasarimi\/\">here<\/a>.<\/p>\n<p>First, we open an empty project. Then we can start to design. When we look at the general structure of Instagram, we see that it is in <strong>Tabbed Page<\/strong>. It consists of 5 pages. All of these pages have an icon. I had a hard time finding these icons. You can find and add better ones.<\/p>\n<p>After adding 5 pages to Tabbed Page, we need to fill in the Navigation field of the page. We used to face a lot of problems to do something like that. Now with the <strong>Xamarin Forms<\/strong> version<strong> 3.2<\/strong>, we can easily edit it. We assign a grid and divide it into 3 sections. Then we add icons.<strong> Tap Gesture<\/strong> and click on the pictures you want.<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;swift&quot;,&quot;mime&quot;:&quot;text\/x-swift&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:true,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">&lt;NavigationPage.TitleView&gt;\r\n         &lt;StackLayout Orientation=\"Horizontal\" VerticalOptions=\"Center\" Spacing=\"10\"&gt;\r\n            &lt;Grid&gt;\r\n                &lt;Grid.ColumnDefinitions&gt;\r\n                    &lt;ColumnDefinition Width=\"40\"\/&gt;\r\n                    &lt;ColumnDefinition Width=\"300\"\/&gt;\r\n                    &lt;ColumnDefinition Width=\"30\"\/&gt;\r\n                &lt;\/Grid.ColumnDefinitions&gt;\r\n                &lt;StackLayout Grid.Column=\"0\"\r\n                             HorizontalOptions=\"Start\"&gt;\r\n                     &lt;Image WidthRequest=\"30\"\r\n                            HeightRequest=\"30\"\r\n                       Source=\"camera\"\/&gt;\r\n                &lt;\/StackLayout&gt;\r\n               &lt;StackLayout Grid.Column=\"1\"\r\n                            &gt;\r\n                    &lt;Label Text=\"Instagram\"\r\n                       HorizontalOptions=\"Center\"\r\n                       VerticalOptions=\"Center\"\r\n                       FontSize=\"Medium\"\/&gt;\r\n                &lt;\/StackLayout&gt;\r\n                &lt;StackLayout Grid.Column=\"2\"\r\n                             HorizontalOptions=\"EndAndExpand\"&gt;\r\n                    &lt;Image Source=\"dm\"\r\n                       WidthRequest=\"30\"\r\n                           HeightRequest=\"30\"\r\n                       VerticalOptions=\"Start\"\r\n                           HorizontalOptions=\"EndAndExpand\"\r\n                       Grid.Column=\"2\"\/&gt;\r\n                &lt;\/StackLayout&gt;\r\n                \r\n            &lt;\/Grid&gt;\r\n        &lt;\/StackLayout&gt;\r\n\r\n    &lt;\/NavigationPage.TitleView&gt;<\/pre>\n<\/div>\n<p>We already know that there are only posts on the main page after these transactions. We&#8217;re putting all these postings in a listview. This place is a bit confused, but you&#8217;ll see that the fact that you&#8217;re studying isn&#8217;t that much harder. You can handle transactions with grids. You can also find the design below. We divided it into 7 rows. We can put what we want in these rows. Like I said, his icons haven&#8217;t been so good. You can find and integrate better icons.<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;swift&quot;,&quot;mime&quot;:&quot;text\/x-swift&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:true,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">&lt;ListView x:Name=\"listPost\"\r\n                  ItemsSource=\"{Binding .}\"\r\n                  HasUnevenRows=\"true\"\r\n                  SeparatorVisibility=\"None\"\r\n                  &gt;\r\n            &lt;ListView.ItemTemplate&gt;\r\n                &lt;DataTemplate&gt;\r\n                    &lt;ViewCell&gt;\r\n                        &lt;Grid&gt;\r\n                            &lt;Grid.RowDefinitions&gt;\r\n                                &lt;RowDefinition Height=\"Auto\"\/&gt;\r\n                                &lt;RowDefinition Height=\"Auto\"\/&gt;\r\n                                &lt;RowDefinition Height=\"30\"\/&gt;\r\n                                &lt;RowDefinition Height=\"Auto\"\/&gt;\r\n                                &lt;RowDefinition Height=\"Auto\"\/&gt;\r\n                                &lt;RowDefinition Height=\"Auto\"\/&gt;\r\n                                &lt;RowDefinition Height=\"Auto\"\/&gt;\r\n                            &lt;\/Grid.RowDefinitions&gt;\r\n                            &lt;Grid Grid.Row=\"0\"&gt;\r\n                                &lt;Grid.ColumnDefinitions&gt;\r\n                                    &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n                                    &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                    &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                &lt;\/Grid.ColumnDefinitions&gt;\r\n                                &lt;Image Grid.Column=\"0\"\r\n                                       Source=\"circle\"\r\n                                       WidthRequest=\"50\"\r\n                                       HeightRequest=\"50\"\/&gt;\r\n                                &lt;Label Text=\"Username\"\r\n                                       Grid.Column=\"1\"\r\n                                       VerticalTextAlignment=\"Center\"\r\n                                       HorizontalOptions=\"Start\"\/&gt;\r\n                                &lt;Label Grid.Column=\"2\"\r\n                                       Text=\"...\"\r\n                                       FontAttributes=\"Bold\"\r\n                                       FontSize=\"Medium\"\r\n                                       VerticalOptions=\"Center\"\r\n                                       HorizontalOptions=\"End\"\/&gt;\r\n                                       \r\n                            &lt;\/Grid&gt;\r\n                            &lt;StackLayout Grid.Row=\"1\"&gt;\r\n                                &lt;Image Source=\"insta.jpg\"\r\n                                       Aspect=\"AspectFill\"\r\n                                       HeightRequest=\"300\"\r\n                                       WidthRequest=\"300\"\/&gt;\r\n                            &lt;\/StackLayout&gt;\r\n                            &lt;Grid Grid.Row=\"2\"&gt;\r\n                                &lt;Grid&gt;\r\n                                    &lt;Grid.ColumnDefinitions&gt;\r\n                                        &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                        &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                        &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                    &lt;\/Grid.ColumnDefinitions&gt;\r\n                                    &lt;Grid Grid.Column=\"0\"&gt;\r\n                                        &lt;Grid.ColumnDefinitions&gt;\r\n                                            &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                            &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                            &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                        &lt;\/Grid.ColumnDefinitions&gt;\r\n                                        &lt;Image Grid.Column=\"0\"\r\n                                               Source=\"heart\"\/&gt;\r\n                                         &lt;Image Grid.Column=\"1\"\r\n                                               Source=\"comment.png\"\/&gt;\r\n                                         &lt;Image Grid.Column=\"2\"\r\n                                               Source=\"dm.png\"\/&gt;\r\n                                    &lt;\/Grid&gt;\r\n                                    &lt;StackLayout Grid.Column=\"2\"&gt;\r\n                                        &lt;Image Source=\"bookmart.png\"\r\n                                               HorizontalOptions=\"EndAndExpand\"\r\n                                               VerticalOptions=\"StartAndExpand\"\r\n                                               WidthRequest=\"50\"\r\n                                               HeightRequest=\"50\"\/&gt;\r\n                                    &lt;\/StackLayout&gt;\r\n                                &lt;\/Grid&gt;\r\n                            &lt;\/Grid&gt;\r\n                            &lt;StackLayout HorizontalOptions=\"Start\"\r\n                                         Grid.Row=\"3\"&gt;\r\n                                &lt;Label Text=\"13.644 be\u011fenme\"\r\n                                       FontSize=\"Small\"\r\n                                       FontAttributes=\"Bold\"\/&gt;\r\n                            &lt;\/StackLayout&gt;\r\n                            &lt;StackLayout Grid.Row=\"4\"\r\n                                         HorizontalOptions=\"Start\"&gt;\r\n                                &lt;Label Text=\"79 yorumun t\u00fcm\u00fcn\u00fc g\u00f6r\"\r\n                                       TextColor=\"Silver\"\/&gt;\r\n                            &lt;\/StackLayout&gt;\r\n                            &lt;Grid Grid.Row=\"5\"&gt;\r\n                                &lt;Grid.ColumnDefinitions&gt;\r\n                                    &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n                                    &lt;ColumnDefinition Width=\"*\"\/&gt;\r\n                                &lt;\/Grid.ColumnDefinitions&gt;\r\n                                &lt;Image Source=\"circle.png\"\r\n                                       WidthRequest=\"30\"\r\n                                       HeightRequest=\"30\"\r\n                                       Grid.Column=\"0\"\/&gt;\r\n                                &lt;Label Grid.Column=\"1\"\r\n                                       VerticalTextAlignment=\"Center\"\r\n                                       VerticalOptions=\"Center\"\r\n                                       Text=\"Yorum Ekle\"\r\n                                       TextColor=\"Silver\"\r\n                                       FontSize=\"Small\"\/&gt;\r\n                            &lt;\/Grid&gt;\r\n                            &lt;StackLayout Grid.Row=\"6\"&gt;\r\n                                &lt;Label Text=\"28 DAKIKA \u00d6NCE\"\r\n                                       FontSize=\"Micro\"\r\n                                       TextColor=\"Silver\"\/&gt;\r\n                            &lt;\/StackLayout&gt;\r\n                        &lt;\/Grid&gt;\r\n                    &lt;\/ViewCell&gt;\r\n                &lt;\/DataTemplate&gt;\r\n            &lt;\/ListView.ItemTemplate&gt;\r\n        &lt;\/ListView&gt;<\/pre>\n<\/div>\n<p>As you have seen below, the design screen appears.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1486\" src=\"https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/10\/1.gif\" alt=\"\" width=\"242\" height=\"480\" \/><\/p>\n<p>If you have designs that you want or have difficulty doing, you can contact me by comment or mail.<\/p>","protected":false},"excerpt":{"rendered":"<p>Hello friends. In this article, we will talk about how the design can be done which is one of the most difficult aspects of Xamarin.Forms. While Xamarin Forms attracts users with a lot of features, developers can be attracted by the difficult design. So in this article we will talk about how to make Instagram [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[289,288,3],"tags":[114,579,530,320,514,115,573,569,577,578,22],"class_list":["post-1481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-ios","category-xamarin-ile-yapilmis-projeler","tag-android","tag-design","tag-form","tag-icon","tag-instagram","tag-ios","tag-navigation","tag-page","tag-tabbed","tag-tasarim","tag-xamarin"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/1481"}],"collection":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/comments?post=1481"}],"version-history":[{"count":6,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/1481\/revisions"}],"predecessor-version":[{"id":2609,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/1481\/revisions\/2609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/media\/1371"}],"wp:attachment":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/media?parent=1481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/categories?post=1481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/tags?post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}