<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by İrem Aşkın on Medium]]></title>
        <description><![CDATA[Stories by İrem Aşkın on Medium]]></description>
        <link>https://medium.com/@irem.askin.96?source=rss-2acfe3b9d97d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*HUZsX4miUPXul74kaTmYzw.jpeg</url>
            <title>Stories by İrem Aşkın on Medium</title>
            <link>https://medium.com/@irem.askin.96?source=rss-2acfe3b9d97d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:02:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@irem.askin.96/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Android NavigationDrawer]]></title>
            <link>https://medium.com/@irem.askin.96/android-navigationdrawer-ef0df60d4e5f?source=rss-2acfe3b9d97d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef0df60d4e5f</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[navigation-drawer]]></category>
            <dc:creator><![CDATA[İrem Aşkın]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 09:09:52 GMT</pubDate>
            <atom:updated>2019-11-15T09:20:22.969Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*RZ7DWVFBIsyYXuGRiMOsfw.png" /></figure><p>Hello!</p><p>This post talks about commonly used UI pattern namely the “Navigation drawer”. With the navigation drawer one can navigate to many screens or functionalities of the app by clicking on the icon. Swiping from the left is also a way to bring the drawer into view, a screen then slides in, showing many items. You can click on these said items and go to those screens to use that feature of the app.</p><p>When we start a new project in Android Studio, after a few instructions, “Add an Activity to Mobile” comes up.<br>In this section, if we add Draw Navigation Drawer Activity da to our application, we will add NavigationDrawer to our application automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Up_nRyj6LTMwQnh2McRQiQ.png" /></figure><p>In this article we will look at what we can do with small changes. I’m only interested in the design part.</p><p>First of all, let’s see what kind of design we will make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*wAzdNe_bjB4ikh6bSXsNGQ.png" /></figure><p>Let’s see and explain our codes in our av nav_header_main.xml ”file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7f177c5188cf2fc0885c6c7b8c8b33a/href">https://medium.com/media/d7f177c5188cf2fc0885c6c7b8c8b33a/href</a></iframe><p>I’ve given our LinearLayout a red background attribute. Then, I used the ImageView component for the watermelon image. I’ve assigned an image-gravity feature.The second component I added is TextView, where I added our “Hello”.</p><p>We will now create our menus in activity_main_drawer.xml and add icons to them.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8020441de112a138cacbc38afb027654/href">https://medium.com/media/8020441de112a138cacbc38afb027654/href</a></iframe><p>Finally we have “activity_main.xml” file. In this section we will use the DrawerLayout widget.In our activity_main.xml ”file, we add“ nav_header_main ilk which we created for the header part. For this, we are writing the path of our xml file to our headerLayout. In the same way as we see in the menu “activity_main_drawer.xml” we give the path.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0417d4f6d44eccda939baac0bd4e7930/href">https://medium.com/media/0417d4f6d44eccda939baac0bd4e7930/href</a></iframe><p>I hope it was useful. See you in my other posts :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef0df60d4e5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Fragment Life Cycle]]></title>
            <link>https://medium.com/@irem.askin.96/android-fragment-life-cycle-5b58a2e3472?source=rss-2acfe3b9d97d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b58a2e3472</guid>
            <category><![CDATA[fragments]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[İrem Aşkın]]></dc:creator>
            <pubDate>Thu, 14 Nov 2019 21:11:17 GMT</pubDate>
            <atom:updated>2019-11-14T21:11:17.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOo5rUj73K9mi-5D2H5daw.png" /></figure><h3>What is Fragment?</h3><p>We can briefly describe the fragment as a sub-activity that represents the behavior of Activity and can be used repeatedly.Dividing a complex Activity code into smaller fragments provides a better organization in our project. If we wish, we can create multiple fragments from the same Activity, or we can call a single fragment over and over again. This way we can improve the performance of our code by using fragments rather than calling new Activity. Another advantage is that the fragments are supported on different screen sizes.</p><p>You can think of the fragment as a modular section that has its own lifecycle, which receives its own input events and that you can add or remove while the activity is running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*5jx3mSu4rr5zltF2UQZdhg.png" /></figure><h4>Fragment Life Cycle</h4><p>Fragments, like Activities, have a life cycle. Since an activity is absolutely necessary for a fragment to function, it begins and ends with the life cycle of the Activity to which the fragment is bound.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*aobxxoblmhwxdrNRXnjjbQ.jpeg" /></figure><p>In this image, which we can access from many sites, we see a structure very similar to the Activity life cycle. Fragments also have callbacks, such as onCreate, onStart, onResume, onPause, and onStop.In this image, which we can access from many sites, we see a structure very similar to the Activity life cycle. Fragments also have callbacks, such as onCreate, onStart, onResume, onPause, and onStop.</p><h4>Life Cycle Methods</h4><h4>onCreate()</h4><p>This method is called when creating<strong> </strong>the<strong> </strong>fragment and it takes Bundle as a reference which is used for initialize the essential components and<strong> </strong>store its value that you want to retain when the fragment is<strong> </strong>paused or stopped,then resumed.</p><h4>onStart()</h4><p>Called after onCreate or onRestart ().<br>Derived classes should call the superclass to implement this method.</p><h4>onResume()</h4><p>This method is called when the user<strong> </strong>interacting<strong> </strong>with the<strong> </strong>fragments in the activity after Activity<strong> </strong>onResume<strong>()</strong> callback.</p><h4>onPause()</h4><p>This method is called when the fragment is no longer interacting with the user either because it’s activity is being paused or a fragment operation is modifying it in the activity.</p><h4>onStop()</h4><p>Called when you can no longer be seen by the user. Then, you will not receive onRestart (), onDestroy (), or anything, depending on the next user activity.</p><h4>onAttach()</h4><p>This method is called first even before onCreate() callback and after the fragment has been attached to the activity.<br>Using this reference we can able to obtain system services and initialize fragment interactive events etc.</p><h4>onDestroy()</h4><p>This method is called to do final cleanup of the fragment’s state.</p><h4>onDetach()</h4><p>This method is called to the fragment no longer being associated with its activity.</p><p>Hope you have enjoyed this post :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b58a2e3472" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>