<?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 Suchandrim Sarkar on Medium]]></title>
        <description><![CDATA[Stories by Suchandrim Sarkar on Medium]]></description>
        <link>https://medium.com/@suchandrimsarkar?source=rss-81f0ce7c2713------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mDWc1j1AlQhRiSsP.</url>
            <title>Stories by Suchandrim Sarkar on Medium</title>
            <link>https://medium.com/@suchandrimsarkar?source=rss-81f0ce7c2713------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:07:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suchandrimsarkar/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[Instagram like Animated Typewriter component in React Native]]></title>
            <link>https://medium.com/@suchandrimsarkar/instagram-like-animated-typewriter-component-in-react-native-77eca0071fd7?source=rss-81f0ce7c2713------2</link>
            <guid isPermaLink="false">https://medium.com/p/77eca0071fd7</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Suchandrim Sarkar]]></dc:creator>
            <pubDate>Fri, 05 May 2023 06:45:12 GMT</pubDate>
            <atom:updated>2023-05-05T06:45:12.104Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>You can find this blog and others as well on my Tech Blog: <a href="https://techitup.io/">TechItUp</a>. Lots of interesting topics like How to build a Server driven UI, Set up Dall-E locally on your machine. Do Check it out!</blockquote><p>Do you like the way song lyrics look in Instagram stories? Want to add it to your own app? Let’s recreate that animation for your app in React Native.</p><p>The typewriter animation, in my opinion, strikes the perfect balance between minimalism and grabbing attention. Any animation on your website or app that animates without direct interaction needs to be subtle yet attention-grabbing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*7OO31C6rlRxNfhsEYfOWYg.gif" /><figcaption>Let’s Build this on React Native</figcaption></figure><p>I have already built the Typewriter React Native component and published it on npm. You can check out the<strong> </strong><a href="https://github.com/suchoX/react-native-typewriter"><strong>Github Repo</strong></a> and try it out yourself. Let’s see how it’s built</p><p>The component is a <strong>pure JavaScript component</strong> with no native dependencies. I have used TypeScript, and honestly, you should too.</p><p>There are two major components in the Typewriter component:</p><ol><li>The Text component, which animates one character at a time</li></ol><p>2. The cursor component that comes after the text and has a blinking animation</p><p>We will be animating both separately, using simple state variables and React’s Animated API.</p><p>If you want to start fresh, create a new React Native project with the steps mentioned in this <a href="https://reactnative.dev/docs/environment-setup?guide=native">Tutorial</a>. You don’t need to do this if you are planning to add this component to an existing app.</p><p>First, let’s understand what the component needs to render. For that, we will create a <strong>types.ts</strong> file.</p><pre>import { TextStyle, ViewStyle } from &#39;react-native&#39;<br><br>export interface TypewriterProps {<br>  // The text that needs to be animated<br>  textArray: string[]<br>  // Speed of the animation<br>  speed?: number<br>  // Should the animation be looped<br>  loop?: boolean<br>  // Delay before the next string shows up<br>  delay?: number<br>  // Override the default text style<br>  textStyle?: TextStyle<br>  // Override the default cursor style<br>  cursorStyle?: TextStyle<br>}</pre><p>The Text prop is an array to animate between multiple strings, as shown in the example above. If it’s just a single string, it should be an array with a single string item. This is the only mandatory prop; the rest are optional because they have a default value.</p><p>Now, let’s create a new <strong>Typewriter </strong>react component using the above type data. I have used functional components, but you are free to use class components as well.</p><p>To create the string animation for a single character, we need to maintain an index of the string’s index position, which is incremented after a certain interval.</p><p>Since we are supporting multiple strings, we also need to maintain an index of which string is active at that moment and need to increment it when the string has finished its animation, i.e., the entire string has been shown via the typewriter. The code below shows the Text animation logic. The Cursor animation logic follows after this.</p><pre>import React from &quot;react&quot;;<br><br>const DEFAULT_SPEED = 300;<br>const DEFAULT_DELAY = 40;<br><br>const TypeWriter: React.FC&lt;TypewriterProps&gt; = ({<br>  textArray,<br>  speed = DEFAULT_SPEED,<br>  loop = false,<br>  delay = DEFAULT_DELAY,<br>  textStyle,<br>  cursorStyle,<br>}) =&gt; {<br>  const [stringIndex, setStringIndex] = useState(0);<br>  const [textIndex, setTextIndex] = useState(0);<br><br>  // The Text Animation<br>  useEffect(() =&gt; {<br>    setTimeout(() =&gt; {<br>      // If the present string has not fully animated<br>      if (textIndex &lt; textArray[stringIndex].length) {<br>        setTextIndex(textIndex + 1);<br>      } else {<br>        // If the present string has fully animated<br>        // Updating the array index so that<br>        // next string can start animating<br>        if (stringIndex &lt; textArray.length - 1) {<br>          // Delay between two String animation<br>          setTimeout(() =&gt; {<br>            setTextIndex(0);<br>            setStringIndex(stringIndex + 1);<br>          }, delay);<br>        } else {<br>          // Restartig from beginning if loop is enabled<br>          if (loop) {<br>            setTimeout(() =&gt; {<br>              setTextIndex(0);<br>              setStringIndex(0);<br>            }, delay);<br>          }<br>        }<br>      }<br>    }, speed);<br>  });<br><br>  return (<br>    &lt;View style={styles.container}&gt;<br>      &lt;Text style={textStyle ? textStyle : styles.text}&gt;<br>        {textArray[stringIndex].substring(0, textIndex)}<br>      &lt;/Text&gt;<br>    &lt;/View&gt;<br>  );<br>};</pre><p>Now let’s look at the cursor animation. It’s a simple character that blinks every interval. My initial approach was similar to the last one: create an interval that switches a state variable and set <strong>display </strong>to <strong>none </strong>or <strong>flex </strong>based on the state.</p><p>This created major performance issues and caused stuttering. With multiple state changes happening very frequently, the UI was not able to render properly. Hence, for the cursor, I took the <strong>Animated API</strong> approach. Animated Views are more performant in these cases, and using the <strong>Native driver</strong> makes it even better.</p><p>What we need to do now is create an <strong>Animated.Sequence</strong> that changes the opacity value periodically. The sequence of opacity values should be something like this:</p><p>0 -&gt; 1 -&gt; delay -&gt; 1 -&gt; 0 -&gt; delay …(loop).</p><p>Let’s look at the complete code</p><pre>import React, { useEffect, useRef, useState } from &quot;react&quot;;<br>import { Animated, StyleSheet, Text, View } from &quot;react-native&quot;;<br><br>import { TypewriterProps } from &quot;./types&quot;;<br><br>const DEFAULT_SPEED = 300;<br>const DEFAULT_DELAY = 40;<br>const WHITE = &quot;#ffffff&quot;;<br><br>const styles = StyleSheet.create({<br>  container: {<br>    flexDirection: &quot;row&quot;,<br>  },<br>  text: {<br>    color: WHITE,<br>    fontSize: 18,<br>  },<br>  cursor: {<br>    color: WHITE,<br>    fontSize: 18,<br>  },<br>});<br>const TypeWriter: React.FC&lt;TypewriterProps&gt; = ({<br>  textArray,<br>  speed = DEFAULT_SPEED,<br>  loop = false,<br>  delay = DEFAULT_DELAY,<br>  textStyle,<br>  cursorStyle,<br>}) =&gt; {<br>  const [stringIndex, setStringIndex] = useState(0);<br>  const [textIndex, setTextIndex] = useState(0);<br>  // Opacity value of the Cursor<br>  const opacityValue = useRef(new Animated.Value(0)).current;<br><br>  // This is the cursor animation that starts right away<br>  useEffect(() =&gt; {<br>    // Creating a loop so that it continually blinks<br>    Animated.loop(<br>      Animated.sequence([<br>        Animated.timing(opacityValue, {<br>          toValue: 1,<br>          duration: 2,<br>          useNativeDriver: true,<br>        }),<br>        Animated.delay(300),<br>        Animated.timing(opacityValue, {<br>          toValue: 0,<br>          duration: 2,<br>          useNativeDriver: true,<br>        }),<br>        Animated.delay(300),<br>      ])<br>    ).start();<br>  }, [opacityValue]);<br><br>  // This is the Text animation<br>  useEffect(() =&gt; {<br>    setTimeout(() =&gt; {<br>      if (textIndex &lt; textArray[stringIndex].length) {<br>        setTextIndex(textIndex + 1);<br>      } else {<br>        if (stringIndex &lt; textArray.length - 1) {<br>          setTimeout(() =&gt; {<br>            setTextIndex(0);<br>            setStringIndex(stringIndex + 1);<br>          }, delay);<br>        } else {<br>          if (loop) {<br>            setTimeout(() =&gt; {<br>              setTextIndex(0);<br>              setStringIndex(0);<br>            }, delay);<br>          }<br>        }<br>      }<br>    }, speed);<br>  });<br><br>  return (<br>    &lt;View style={styles.container}&gt;<br>      &lt;Text style={textStyle ? textStyle : styles.text}&gt;<br>        {textArray[stringIndex].substring(0, textIndex)}<br>      &lt;/Text&gt;<br>      {/* The Animated view enlosing the cursor*/}<br>      &lt;Animated.View style={{ opacity: opacityValue }}&gt;<br>        &lt;Text style={cursorStyle ? cursorStyle : styles.cursor}&gt;▎&lt;/Text&gt;<br>      &lt;/Animated.View&gt;<br>    &lt;/View&gt;<br>  );<br>};<br><br>export default TypeWriter;</pre><p>You’ve now successfully created a clean and attractive animated component. The typewriter animation effect with a blinking cursor brings an engaging and dynamic element to your app’s UI. With this React Native component, you can easily integrate this animation into your existing or new projects, providing a more interactive user experience. Enjoy using your new animated component.</p><blockquote>You can find this blog and others as well on my Tech Blog: <a href="https://techitup.io/">TechItUp</a>. Lots of ionteresting topics like How to build a Server driven UI, Set up Dall-E locally on your machine. Do Check it out!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77eca0071fd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Youtube like Drag Minimizable View using MotionLayout]]></title>
            <link>https://medium.com/@suchandrimsarkar/youtube-like-drag-minimizable-view-using-motionlayout-ca2fb40d8483?source=rss-81f0ce7c2713------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca2fb40d8483</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Suchandrim Sarkar]]></dc:creator>
            <pubDate>Mon, 17 Aug 2020 16:40:04 GMT</pubDate>
            <atom:updated>2020-08-17T16:40:04.057Z</atom:updated>
            <content:encoded><![CDATA[<p>Drag minimizable Views have existed for quite some time and has been prelevant esp in Media apps where you want a mini version of the player that’s visible at all times as you explore the rest of the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QWr7W7vtzaerVJEiDcTyTw.jpeg" /></figure><p>The code used for This can be found here :</p><p><a href="https://github.com/suchoX/DraggableView">suchoX/DraggableView</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*lWaSe67gWkBKw-G2SoR7ww.gif" /></figure><p>There have been a lot of “Hacky” ways to achieve this before, but now with Motion Layout it’s much easier.</p><p>FYI, this has been implemented with Kotlin with AndroidX</p><p>Without Motion Layout it would be our responsibility to animate each component while tracking the animation. But Motion Layout makes things easier for us. We give the Initial Constraints, which is the maximized player and the final constraints, The minimized player and Motion Layout takes care of animating between the two</p><p>So Let’s get started!</p><p>First, create a new Project.</p><p>You need the following dependencies in your app’s <em>build.gradle. </em>This adds Motion layout and other material components to the project</p><pre>implementation &#39;androidx.constraintlayout:constraintlayout:2.0.0-rc1&#39;<br>implementation &#39;com.google.android.material:material:1.3.0-alpha02&#39;</pre><p>We will then create a Simple Activity with a FrameLayout where we will add the actual Player Fragment</p><pre>&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:background=&quot;@color/mainBackground&quot;<br>    android:orientation=&quot;vertical&quot;<br>    tools:context=&quot;.MainActivity&quot;<br>    &gt;<br>  &lt;TextView<br>      android:layout_width=&quot;wrap_content&quot;<br>      android:layout_height=&quot;wrap_content&quot;<br>      android:textSize=&quot;100sp&quot;<br>      android:text=&quot;@string/demo_text&quot;<br>      android:textColor=&quot;@color/white&quot;<br>      android:textStyle=&quot;bold&quot;<br>      android:layout_marginTop=&quot;100dp&quot;<br>      android:layout_marginStart=&quot;10dp&quot;<br>      /&gt;<br>  &lt;FrameLayout<br>      android:id=&quot;@+id/play_screen_frame_layout&quot;<br>      android:layout_width=&quot;match_parent&quot;<br>      android:layout_height=&quot;match_parent&quot;<br>      app:layout_behavior=&quot;com.google.android.material.bottomsheet. BottomSheetBehavior&quot;<br>      /&gt;<br>&lt;/FrameLayout&gt;</pre><p>We then create a Subclass of MotionLayout, <a href="https://github.com/suchoX/DraggableView/blob/master/app/src/main/java/com/sucho/draggableplayer/PlayerScreenMotionLayout.kt"><strong>PlayerScreenMotionLayout</strong></a> which would be the Parent View of the player Screen.</p><p>The primary idea is that, the <strong>PlayerScreenMotionLayout</strong> is a Full screen transparent parent view of Player Screen which has a child Card View <strong><em>player_background_view, </em></strong>and that is the actual background of the Player that we see and we control it’s size to create the effect of Minimize and maximize.</p><p>Note: I chose Card View here because that give sus the freedom to easily change it to floating mini player with shadow later. If that’s something you do not want, you can use a simple LinearLayout instead.</p><p>When you touch the Player screen, you are actually touching a point on <strong>PlayerScreenMotionLayout </strong>no matter its maximized or minimized<strong>, </strong>and then we check if that point is part of the <strong><em>player_background_view. </em></strong>If it is, we consume the touch and pass it to MotionLayout which then acts on the layout based on the Motion Scene that we will come to later. If the Touch point is on the transparent part instead of consuming the touch we pass it on to it’s parent activity.</p><pre>class PlayerScreenMotionLayout(context: Context,attributeSet: AttributeSet? = null)<br>) : MotionLayout(context, attributeSet) {</pre><pre>...</pre><pre>...<br>private val gestureDetector = GestureDetector(context, object : GestureDetector.SimpleOnGestureListener() {<br>    override fun onSingleTapConfirmed(e: MotionEvent?): Boolean {<br>      transitionToEnd()<br>      return false<br>    }<br>  })</pre><pre>override fun onTouchEvent(event: MotionEvent): Boolean {<br>   <strong><em>//This ensures the Mini Player is maximised on single tap</em></strong>              <br>   gestureDetector.onTouchEvent(event)   <br>    when (event.<em>actionMasked</em>) {<br>      MotionEvent.<em>ACTION_UP</em>, MotionEvent.<em>ACTION_CANCEL </em>-&gt; {<br>        hasTouchStarted = false<br>        return super.onTouchEvent(event)<br>      }<br>    }<br>    if (!hasTouchStarted) {<br>      <strong><em>//This Checks if the touch is on the Player or the transaprent background</em></strong><br>      viewToDetectTouch.getHitRect(viewRect)<br>      hasTouchStarted =<br>      viewRect.contains(event.<em>x</em>.toInt(),vent.<em>y</em>.toInt())<br>    }<br>    return hasTouchStarted &amp;&amp; super.onTouchEvent(event)<br>  }<br>}</pre><p>This is how we use <strong>PlayerScreenMotionLayout </strong>in the <a href="https://github.com/suchoX/DraggableView/blob/master/app/src/main/res/layout/fragment_play_screen.xml">PlayScreenFragment Layout</a>. As you can see that the layout is transparent and covers the entire Fragment. We will later resize <strong>player_background_view </strong>based on the Motion Scene.</p><p>When creating the Player screen make sure to add all the components, both for the Maximized player UI and Minimized player UI. If a UI component is not present in any one of the UI, we will hide them accordingly, but it has to be mentioned here.</p><pre>&lt;com.sucho.draggableplayer.PlayerScreenMotionLayout<br>    android:id=&quot;@+id/root_layout&quot;<br>    <strong>android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;</strong><br>    <strong>android:background=&quot;@android:color/transparent&quot;</strong><br>    <strong>app:layoutDescription=&quot;@xml/play_screen_motion_scene&quot;</strong><br>    app:layout_collapseMode=&quot;parallax&quot;<br>    &gt;<br><br>  &lt;androidx.cardview.widget.CardView<br>      <strong>android:id=&quot;@+id/player_background_view&quot;</strong><br>      android:layout_width=&quot;0dp&quot;<br>      android:layout_height=&quot;0dp&quot;<br>      app:cardBackgroundColor=&quot;@color/playerBackground&quot;<br>      app:cardCornerRadius=&quot;0dp&quot;<br>      app:cardElevation=&quot;0dp&quot;<br>      app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>      app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>      app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>      app:layout_constraintTop_toTopOf=&quot;parent&quot;<br>      /&gt;<br>...<br>... //Add your components to your Player Screen<br><br>&lt;/com.sucho.draggableplayer.PlayerScreenMotionLayout&gt;</pre><p>We will now create the Motion Scene XML file, which consists the Constraints of the components of the player screen for both Minimised and Maximised scene. <strong>PlayerScreenMotionLayout </strong>can read this XML file and will accordingly animate between the two scenes.</p><p>Before we get into the file, Motion Layout can only animate layout params like width, height etc. It cannot animate UI properties like text size or text color. We use <em>KeyFrameSet </em>for that.</p><p>In the Following <a href="https://github.com/suchoX/DraggableView/blob/master/app/src/main/res/xml/play_screen_motion_scene.xml"><strong>play_screen_motion_scene</strong></a><strong>. </strong>(I have shown only a segment of it here, you can check out the entire XML on Github)</p><ol><li>We create a <strong>dragUp </strong>swipe movement that takes the Layout from <em>play_screen_minimized</em> → <em>play_screen_expanded_normal</em></li><li>We create KeyFrameSets for components that cannot be animated by Motion Layout, for example, here I am changing the alpha of a textview. As the Animation takes place, the alpha value changes accordingly.</li><li>We then create two ConstraintSets <strong><em>play_screen_minimized</em></strong> and <strong><em>play_screen_expanded_normal </em></strong>which contains the constraits of the view components for each state. Motion layout will take care of animating between the two states</li><li>Finally add <strong>app:layoutDescription=”@xml/play_screen_motion_scene” </strong>in the Playscreen Xml as mentioned above which adds this behavior to the Motion Layout</li></ol><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;MotionScene&gt;<br>  &lt;Transition<br>      motion:constraintSetEnd=&quot;@id/play_screen_expanded_normal&quot;<br>      motion:constraintSetStart=&quot;@id/play_screen_minimized&quot;<br>      motion:duration=&quot;300&quot;<br>      app:motionInterpolator=&quot;easeInOut&quot;&gt;<br>    &lt;OnSwipe<br>        app:dragDirection=&quot;dragUp&quot;<br>        app:maxAcceleration=&quot;200&quot;<br>        app:touchAnchorId=&quot;@+id/player_background_view&quot;<br>        app:touchAnchorSide=&quot;top&quot;<br>        /&gt;<br><br>    &lt;KeyFrameSet&gt;<br>      &lt;KeyAttribute<br>          app:framePosition=&quot;100&quot;<br>          app:motionTarget=&quot;@id/audio_name_text_view&quot;&gt;<br>        &lt;CustomAttribute<br>            app:attributeName=&quot;alpha&quot;<br>            app:customFloatValue=&quot;1.0&quot; /&gt;<br>      &lt;/KeyAttribute&gt;<br><br>      &lt;KeyAttribute<br>          app:framePosition=&quot;70&quot;<br>          app:motionTarget=&quot;@id/audio_name_text_view&quot;&gt;<br>        &lt;CustomAttribute<br>            app:attributeName=&quot;alpha&quot;<br>            app:customFloatValue=&quot;0.0&quot; /&gt;<br>      &lt;/KeyAttribute&gt;<br>    &lt;/KeyFrameSet&gt;<br>...</pre><pre>...    <br>  &lt;/Transition&gt;<br><br><br>  &lt;ConstraintSet android:id=&quot;@+id/play_screen_expanded_normal&quot;&gt;<br>    &lt;Constraint<br>        android:id=&quot;@id/player_background_view&quot;<br>        android:layout_width=&quot;0dp&quot;<br>        android:layout_height=&quot;0dp&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot;<br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        android:layout_marginTop=&quot;3dp&quot;<br>        app:layout_constraintHorizontal_bias=&quot;0.0&quot; /&gt;<br>    &lt;Constraint<br>        android:id=&quot;@id/audio_name_text_view&quot;<br>        android:layout_width=&quot;0dp&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_marginTop=&quot;20dp&quot;<br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintTop_toBottomOf<br>             =&quot;@id/album_art_image_view&quot;<br>        app:layout_constraintBottom_toTopOf<br>             =&quot;@id/artist_name_text_view&quot;<br>        app:layout_constraintVertical_chainStyle=&quot;packed&quot;&gt;<br>      &lt;CustomAttribute<br>          app:attributeName=&quot;alpha&quot;<br>          app:customFloatValue=&quot;1.0&quot;/&gt;<br>    &lt;/Constraint&gt;</pre><pre>    ... <br> &lt;/ConstraintSet&gt;<br><br>  &lt;ConstraintSet android:id=&quot;@+id/play_screen_minimized&quot;&gt;<br><br>    &lt;Constraint<br>        android:id=&quot;@id/player_background_view&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;65dp&quot;<br>        android:layout_marginBottom=&quot;0dp&quot;<br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        /&gt;<br>    &lt;Constraint<br>        android:id=&quot;@id/audio_name_text_view&quot;<br>        android:layout_width=&quot;0dp&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_marginBottom=&quot;2dp&quot;<br>        android:paddingStart=&quot;12dp&quot;<br>        android:paddingEnd=&quot;10dp&quot;<br>        app:layout_constraintBottom_toTopOf<br>            =&quot;@id/artist_name_text_view&quot;<br>        app:layout_constraintEnd_toStartOf<br>            =&quot;@id/back_15_image_view&quot;<br>        app:layout_constraintStart_toEndOf<br>            =&quot;@id/album_art_image_view&quot;<br>        app:layout_constraintTop_toTopOf<br>            =&quot;@id/player_background_view&quot;<br>        app:layout_constraintVertical_chainStyle=&quot;packed&quot;&gt;<br>      &lt;CustomAttribute<br>          app:attributeName=&quot;alpha&quot;<br>          app:customFloatValue=&quot;0.0&quot; /&gt;<br>    &lt;/Constraint&gt;</pre><pre>    ...<br>  &lt;/ConstraintSet&gt;<br>&lt;/MotionScene&gt;</pre><p>Thats it.</p><p>In conclusion, we are not actually animating or changing the size of the entire player screen. We are only animating the background Card view, and keeping then rest of the stuff transparent.</p><p>You can hit me up on <a href="https://twitter.com/Suchandrim">Twitter</a> or leave a comment here if you have any questions!</p><blockquote>My Name is <a href="http://www.linkedin.com/in/suchandrim-sarkar-78b6a0b0">Suchandrim Sarkar</a> . I am a Senior Engineer at Mutual Mobile Working in Mobile with Native, React Native and Flutter</blockquote><blockquote>I am also an Independent developer under <a href="https://play.google.com/store/apps/dev?id=5884946202851366319&amp;hl=en_US">Crimson Developer</a> publishing two apps with about half a million downloads</blockquote><blockquote>If you enjoyed this article, please recommend, leave some claps and share it! Thanks for your time!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca2fb40d8483" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrate your Flutter App to Flutter Web]]></title>
            <link>https://medium.com/flutter-community/migrate-your-flutter-app-to-flutter-web-4bd3c9b3e81d?source=rss-81f0ce7c2713------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bd3c9b3e81d</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[flutter-web]]></category>
            <dc:creator><![CDATA[Suchandrim Sarkar]]></dc:creator>
            <pubDate>Mon, 17 Jun 2019 11:24:02 GMT</pubDate>
            <atom:updated>2019-11-21T20:07:33.868Z</atom:updated>
            <content:encoded><![CDATA[<h3>Migrate your Flutter App to Flutter for Web</h3><p>Recently Google released the technical preview of Flutter Web, an extension to Flutter for the modern web. So what does this mean? It means that now it’s possible to have one single code base for Android, iOS and the Web. Since Flutter is built using Dart, which includes production-quality compilers for both native machine code and JavaScript, web support was just a matter of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*5ony-CjMaCxAvd7fJd6uqg.gif" /><figcaption>Web Version</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/143/1*OjwASM_fvWVZtCjHugilUg.gif" /><figcaption>Native Android Version</figcaption></figure><h3>Limitations as of now</h3><p>As mentioned above, Flutter Web is still in technical preview and the team has suggested to not use it for production. There are a couple of other issues as well which made the experience less smooth for me:</p><ol><li>There is no way as of this moment to directly generate the web build without making changes which would affect the mobile versions. For example,(shown below) packages across the code need to be changed for the web version.</li><li>Libraries that are mobile-specific like cupertino_icons needs to be manually removed frompubspec and cannot be handled in real time.</li><li>Chromium-based browsers and Safari is supported and tested as of now, Firefox and Edge will be supported completely, but testing on them now is limited. IE support is not planned</li></ol><p>This means, as of now we will have to maintain a separate branch or code base for the web build even though the core code will remain the same.</p><h3>It’s not that bad</h3><p>So the above might have turned you off a little bit, but it&#39;s not as bad as it sounds. I had almost zero issues in migrating and even though it’s a technical preview, the web version built in the first time. I have an example Flutter app which I built months ago using BLOC pattern and I recently made the Web version of it. It works perfectly on Safari and Chrome both on a Mac/PC and iPhone/Android. You can check out the code here:</p><p><a href="https://github.com/suchoX/addIt"><strong>Mobile Branch</strong></a></p><p><a href="https://github.com/suchoX/addIt/tree/web-support"><strong>Web Support branch</strong></a></p><p>And the website is live and working as well. Check it out: <a href="https://suchox.github.io/addIt/#/"><strong>AddIt Web Version</strong></a></p><p>I didn’t have to change any business logic or UI for the web version. Just some setup changes and removing two mobile-only libraries cupertino_icons &amp; shared_preferences. I used RxDart as well for implementing BLOC pattern, which worked perfectly on the web.</p><p>Now that you are at ease, let’s get started.</p><h3>Lets Gets Started</h3><p>Let’s configure your machine to run Flutter Web. If you don’t have Flutter installed, then follow this <a href="https://flutter.dev/docs/get-started/install">official link</a> for the complete setup. Then Run the following command to upgrade your flutter</p><pre>$ flutter upgrade</pre><p>You then need the Dart SDK for web, which was not a requirement for Flutter.</p><pre>$ brew tap dart-lang/dart<br>$ brew install dart</pre><p>Your Dart version be over 2.3.0 to support Flutter Web, which you can find out by</p><pre>$ brew info dart</pre><p>Install the <a href="https://pub.dev/packages/webdev">Webdev</a> packages:</p><pre>$ flutter packages pub global activate webdev</pre><p>Ensure that the $HOME/.pub-cache/bin the directory <a href="https://www.dartlang.org/tools/pub/cmd/pub-global#running-a-script-from-your-path">is in your path</a>, and then you may use the webdev command directly from your terminal.</p><h3>Migration</h3><p>I would highly recommend having a separate git branch for the web build and if you are not using a VCS, create a copy of your present Flutter project and work on that.</p><ol><li>Open your pubspec.yaml and make the following changes:</li></ol><pre>name: my_app<br><br>version: 1.0.0<br><br>dependencies:<br>  ## Replace flutter SDK dependency with flutter_web<br>  #flutter:<br>  #  sdk: flutter<br>  flutter_web: any<br><br>dev_dependencies:<br>  ## Similarly replace test libraries to web test libraries<br>  #flutter_test:<br>  #  sdk: flutter<br>  flutter_web_test: any<br><br>  ## Add these dependencies to enable the Dart web build system<br>  build_runner: any<br>  build_web_compilers: any<br><br>  test: ^1.3.4<br><br>## Assets are handled differenly in web. So remove them from here<br># flutter:<br>#   uses-material-design: true<br>#   assets:<br>#     - asset/<br>#<br>#   fonts:<br>#   - family: Plaster<br>#     fonts:<br>#     - asset: asset/fonts/plaster/Plaster-Regular.ttf<br><br>## Add the following:<br>## flutter_web packages are not published to pub.dartlang.org<br>## These overrides tell the package tools to get them from GitHub<br>dependency_overrides:<br>  flutter_web:<br>    git:<br>      url: https://github.com/flutter/flutter_web<br>      path: packages/flutter_web<br>  flutter_web_ui:<br>    git:<br>      url: https://github.com/flutter/flutter_web<br>      path: packages/flutter_web_ui<br>  flutter_web_test:<br>    git:<br>      url: https://github.com/flutter/flutter_web<br>      path: packages/flutter_web_test</pre><p>2. Then you need to do some Application-wide replacing:</p><blockquote><em>Change imports of </em><em>package:flutter to </em><em>package:flutter_web<br>Change imports of </em><em>dart:ui to </em><em>package:flutter_web_ui/ui.dart</em></blockquote><p>3. Then create a directory web/ , similar to the android/ and ios/ .This directory will have the starting points for your web app.</p><p>4. Create a web/index.html file which is the entry point of your web-app</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;title&gt;&lt;/title&gt;<br>  &lt;script defer src=&quot;main.dart.js&quot; type=&quot;application/javascript&quot;&gt;&lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>5. Then create web/main.dart</p><pre>import &#39;package:flutter_web_ui/ui.dart&#39; as ui;<br><br>// TODO: change `my_app` to refer to your app package name.<br>import &#39;package:my_app/main.dart&#39; as app;<br><br>main() async {<br>  await ui.webOnlyInitializePlatform();<br>  app.main();<br>}</pre><p>6. You are almost there. Now in your project, run</p><pre>$ webdev serve</pre><p>You should see something like this if everything goes right</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*5yShmW4qVhEcn9O3r5w_Tg.png" /></figure><p>Note: If you face any issue with webdev, you can run the following as a workaround</p><pre>$ flutter packages pub global run webdev &lt;command&gt;</pre><p>7. Now open <a href="http://localhost:8080/">http://localhost:8080</a> in Chrome, and your web site would be there after waiting a couple of seconds of building. The build progress is visible on the terminal</p><h3>Publishing your Web App</h3><p>The above sections shows how to generate a debug build. But you would want to release it as well.</p><ol><li>The workflow above uses the <a href="https://webdev.dartlang.org/tools/dartdevc">Dart Dev Compiler</a> which is designed for fast, incremental compilation and easy debugging. You can evaluate production performance, browser compatibility and code size, you can enable our release compiler,<a href="https://webdev.dartlang.org/tools/dart2js">dart2js</a>. Run the following:</li></ol><pre>$ webdev serve -r</pre><p>2. Finally, time to generate a final build of your web app. By default, the output is generated into thebuild directory which may already exist. So you can mention the output directory.</p><p>This will create the output directory with index.html, main.dart.js and the rest of the files needed to run the application using a static HTTP server.</p><pre>$ webdev build --output &lt;Directory Name&gt;</pre><p>3. Now, you can host the code anywhere you want (I hosted in on the repo’s GitHub pages by pushing into<a href="https://github.com/suchoX/addIt/tree/gh-pages">gh-pages</a> branch)</p><p>4. You can run the website locally as well using http-server. Run</p><pre>$ npm install -i http-server</pre><p>Then go to your root directory which has the index.html file and just run</p><pre>$ http-server</pre><p>If you face any issues or just want to connect, you can on <a href="https://twitter.com/Suchandrim"><strong>Twitter</strong></a></p><p><a href="https://www.twitter.com/FlutterComm">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bd3c9b3e81d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/migrate-your-flutter-app-to-flutter-web-4bd3c9b3e81d">Migrate your Flutter App to Flutter Web</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple Choice implementation using DataBinding in Android]]></title>
            <link>https://medium.com/android-news/multiple-choice-implementation-using-databinding-in-android-75549738d177?source=rss-81f0ce7c2713------2</link>
            <guid isPermaLink="false">https://medium.com/p/75549738d177</guid>
            <category><![CDATA[bindingadapter]]></category>
            <category><![CDATA[boilerplate]]></category>
            <category><![CDATA[data-binding]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Suchandrim Sarkar]]></dc:creator>
            <pubDate>Fri, 05 Apr 2019 09:17:13 GMT</pubDate>
            <atom:updated>2019-07-14T11:27:09.967Z</atom:updated>
            <content:encoded><![CDATA[<p>We often have to implement a feature where the user has to choose among a list of choices and based on the selection we have to change the UI of the other options, something like a radio group. When I started building <a href="https://play.google.com/store/apps/details?id=com.crimson.jade">Jade</a>, which is a mood tracker app, I realized I have to make a UI where the user selects a mood from the list of options as shown below. When a user makes a choice, the UI of the selection is changed (The Image and Text color) and the other options’ UI is reset</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*aOiEDrtn8NULtBkSXYoXAQ.gif" /></figure><p>The most common and straightforward approach for implementing this is something like this in pseudocode:</p><pre>fun userSelected(choice: Int) {<br>   when 0 -&gt; {<br>              changeUI(0)<br>              resetUI(1)<br>              resetUI(2)...<br>             }<br>   when 1 -&gt; {...}<br>   ...</pre><pre>}</pre><p>Though the above can be improved, I wanted to use Databinding and remove as much boilerplate code as possible, and probably not having to depend on the activity at all, just the XML and ViewModel.</p><p><strong>Note: </strong>In the code below, the <em>ViewModel</em> extends <em>BaseObservable </em>instead of ArchitectureComponent ViewModel to make the code simpler. If you do use the latter, the ViewModel variable needs to be wrapped with LiveData before being used in XML.</p><p>First, you need to enable native data binding in your app level build.gradle</p><pre>dataBinding {<br>  enabled = <em>true<br></em>}</pre><p>Then in your ViewModel, extend <em>BaseObservable and </em>create a boolean array which keeps track of your selection. Create a method to update the array based on user’s selection. Then <em>notifyChange() </em>notifies listeners of the property change and thus updates the UI:</p><pre><em>var </em>moodSelection = BooleanArray(6)<br><br><em>fun </em>moodSelected(mood: Int) {<br>  moodSelection.fill(<em>false</em>)<br>  moodSelection[mood] = <em>true<br>  </em>notifyChange()<br>}</pre><p>Finally in your XML:</p><pre>&lt;layout <em>xmlns:android=</em>&quot;http://schemas.android.com/apk/res/android&quot;<br>    <em>xmlns:app=</em>&quot;http://schemas.android.com/apk/res-auto&quot;<br>    &gt;<br>   &lt;data&gt;<br>     &lt;variable<br>       <em>name=</em>&quot;viewModel&quot;<br>       <em>type=</em>&quot;com.example.yourapp.YourViewModel&quot;<br>     /&gt;<br>   &lt;/data&gt;</pre><pre>...<br> &lt;LinearLayout<br>    <em>android:layout_width=</em>&quot;wrap_content&quot;<br>    <em>android:layout_height=</em>&quot;wrap_content&quot;<br>    <strong><em>android:onClick=</em>&quot;@{() -&gt; viewModel.moodSelected(0)}&quot;</strong><br>    <em>android:orientation=</em>&quot;vertical&quot;<br>    &gt;<br>  &lt;ImageView<br>      <em>android:id=</em>&quot;@+id/mood_happy&quot;<br>      <em>android:layout_width=</em>&quot;40dp&quot;<br>      <em>android:layout_height=</em>&quot;40dp&quot;<br>      <strong><em>android:src=</em>&quot;@{viewModel.moodSelection[0] ? @drawable/selected_img : @drawable/default_img}&quot;</strong><br>      /&gt;<br><br>  &lt;TextView<br>      <em>android:layout_width=</em>&quot;wrap_content&quot;<br>      <em>android:layout_height=</em>&quot;wrap_content&quot;<br>      <em>android:text=</em>&quot;@string/happy&quot;<br>      <strong><em>android:textColor=</em>&quot;@{viewModel.moodSelection[0] ? @color/selectedTextColor : @color/defaultTextColor}&quot;</strong><br>      /&gt;<br>&lt;/LinearLayout&gt;</pre><pre>...<br>&lt;/layout&gt;</pre><p><em>OnClick </em>from the XML updates the data of the boolean array in ViewModel based on your choice passed as parameter and updates the UI.</p><p>So this was very Simple.</p><p>Let’s notch it up a bit. I added a dark mode feature in Jade, which meant there are two default colors (<em>defaultTextColor</em> and <em>defaultTextColorDark</em>), and each mood has two default images, based on dark/light mode. So the following code won’t work anymore:</p><pre><strong><em>android:textColor=</em>&quot;@{viewModel.moodSelection[0] ? @color/selectedTextColor : @color/defaultTextColor}&quot;</strong></pre><p>This is where <a href="https://developer.android.com/reference/android/databinding/BindingAdapter"><em>BindingAdapter</em></a><em> </em>comes into the picture. <em>BindingAdapter </em>lets you create custom attributes (or setter) and bind them to actions. Example:</p><pre>@BindingAdapter(&quot;android:bufferType&quot;)<br> public static void setBufferType(TextView view, TextView.BufferType bufferType) {<br>     view.setText(view.getText(), bufferType);<br> }</pre><p>In the above example, when <em>android:bufferType</em> is used on a TextView, the method setBufferType is called.</p><p>We can use <em>BindingAdapter </em>to send the information (Dark/Light mode, defaultTextColor, defaultTextColorDark etc) via parameters and let the setter function set the properties to the view. But it’s not straightforward for BindingAdapters to accept multiple parameters. Here’s how t’s done</p><pre>@BindingAdapter(value = [&quot;selectedSrc&quot;, &quot;defaultSrc&quot;, &quot;darkSrc&quot;, &quot;selected&quot;, &quot;isDarkMode&quot;], requireAll = <em>false</em>)<br>@JvmStatic<br><em>fun </em>setImageViewSrc(<br>  imageView: ImageView,<br>  selectedSrc: Drawable,<br>  defaultSrc: Drawable,<br>  darkSrc: Drawable,<br>  selected: Boolean,<br>  isDarkMode: Boolean<br>) {<br>  <em>if </em>(selected) {<br>    imageView.setImageDrawable(selectedSrc)<br>  } <em>else </em>{<br>    <em>if </em>(isDarkMode) {<br>      imageView.setImageDrawable(darkSrc)<br>    } <em>else </em>{<br>      imageView.setImageDrawable(defaultSrc)<br>    }<br>  }<br>}<br><br>@BindingAdapter(value = [&quot;selectedTextColor&quot;, &quot;defaultTextColor&quot;, &quot;darkTextColor&quot;, &quot;selected&quot;, &quot;isDarkMode&quot;], requireAll = <em>false</em>)<br>@JvmStatic<br><em>fun </em>setTextColor(<br>  textView: TextView,<br>  selectedTextColor: Int,<br>  defaultTextColor: Int,<br>  darkTextColor: Int,<br>  selected: Boolean,<br>  isDarkMode: Boolean<br>) {<br>  <em>if </em>(selected) {<br>    textView.setTextColor(selectedTextColor)<br>  } <em>else </em>{<br>    <em>if </em>(isDarkMode) {<br>      textView.setTextColor(darkTextColor)<br>    } <em>else </em>{<br>      textView.setTextColor(defaultTextColor)<br>    }<br>  }<br>}</pre><p>And in the XML:</p><pre>&lt;LinearLayout<br>    <em>android:layout_width=</em>&quot;wrap_content&quot;<br>    <em>android:layout_height=</em>&quot;wrap_content&quot;<br>    <em>android:onClick=</em>&quot;@{() -&gt; viewModel.moodSelected(0)}&quot;<br>    <em>android:orientation=</em>&quot;vertical&quot;<br>    &gt;<br>  &lt;ImageView<br>      <em>android:layout_width=</em>&quot;40dp&quot;<br>      <em>android:layout_height=</em>&quot;40dp&quot;<br>      <strong><em>bind:selectedSrc=</em>&quot;@{@drawable/selected_img}&quot;<br>      <em>bind:defaultSrc=</em>&quot;@{@drawable/default_img}&quot;<br>      <em>bind:darkSrc=</em>&quot;@{@drawable/default_dark_img}&quot;<br>      <em>bind:isDarkMode=</em>&quot;@{viewModel.darkMode}&quot;</strong><br>      <em>bind:selected=</em>&quot;@{viewModel.moodSelection[0]}&quot;<br>      /&gt;<br><br>  &lt;TextView<br>      <em>android:layout_width=</em>&quot;wrap_content&quot;<br>      <em>android:layout_height=</em>&quot;wrap_content&quot;<br>      <em>android:text=</em>&quot;@string/text&quot;<br>      <strong><em>bind:selectedTextColor=</em>&quot;@{@color/selectedTextColor}&quot;<br>      <em>bind:defaultTextColor=</em>&quot;@{@color/defaultTextColor}&quot;<br>      <em>bind:darkTextColor=</em>&quot;@{@color/defaultTextColorDark}&quot;<br>      <em>bind:isDarkMode=</em>&quot;@{viewModel.darkMode}&quot;</strong><br>      <em>bind:selected=</em>&quot;@{viewModel.moodSelection[0]}&quot;<br>      <em>android:textSize=</em>&quot;12sp&quot;<br>      /&gt;<br>&lt;/LinearLayout&gt;</pre><p>This resulted in no boilerplate code in the Activity and minimal code in the ViewModel. To enable multiple selections, just replace the ViewModel <em>moodSelected</em> method with this</p><pre><em>fun </em>moodSelected(mood: Int) {<br>  moodSelection[mood] = !moodSelection[mood]<em><br>  </em>notifyChange()<br>}</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F3e491f%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F3e491f%2F&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F3e491f%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/fedb9f91e907af2468a937c944ed32ab/href">https://medium.com/media/fedb9f91e907af2468a937c944ed32ab/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75549738d177" width="1" height="1" alt=""><hr><p><a href="https://medium.com/android-news/multiple-choice-implementation-using-databinding-in-android-75549738d177">Multiple Choice implementation using DataBinding in Android</a> was originally published in <a href="https://medium.com/android-news">AndroidPub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Start Building to get Noticed]]></title>
            <link>https://medium.com/@suchandrimsarkar/start-building-to-get-noticed-166c408fb63e?source=rss-81f0ce7c2713------2</link>
            <guid isPermaLink="false">https://medium.com/p/166c408fb63e</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[career-advice]]></category>
            <dc:creator><![CDATA[Suchandrim Sarkar]]></dc:creator>
            <pubDate>Wed, 29 Mar 2017 08:02:17 GMT</pubDate>
            <atom:updated>2017-03-29T08:03:07.852Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*slhH7dMWB2wY09mzucgsAg.jpeg" /></figure><p>About a year back, just a few months till graduation, I remember sending out dozens of resumes everyday. <strong>I hardly ever got a reply</strong>. I did have a few jobs lined up, but I wanted better. I had read dozens of articles on how to make a good resume and how to write a great cover letter. On top of that I have been working on android for quite some time, a little shy of 2 years then. I had worked on internships, 2 to be exact- Not great companies, mostly small startups, but I had done good work and had great recommendation letters from my employers. But frankly, after about a hundred emails, I was frustrated!</p><p>I then took a pause and carefully went through my resume. That is when it hit me. <strong>I had no commendable project that would showcase my skills</strong>. Sure, I did have some apps and had worked on some complex apps. But my personal apps, looked bad and was not at all impressive. To me they were pretty good though — I made a game called <a href="https://play.google.com/store/apps/details?id=com.dodo.Flumper&amp;hl=enw">Flumper</a> which I am still proud of, wrote the whole physics of the game myself and used Android Canvas instead of Unity (I had no idea of Unity then). But to anyone else, that’s a really bad app if compared to the apps of the same type. Also, my best works were done in my internships and unfortunately, they decided not to publish the apps anytime soon. So, to an employer, I was at best an enthusiast who just found android fancy, like thousands of others out there. Also, not being from a premier college didn’t help as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSGrFG_b1JmH6O7RDtj4Fg.png" /><figcaption><a href="http://play.google.com/store/apps/details?id=com.crimson.musicplayer&amp;hl=enw"><strong>Crimson Music Player</strong></a></figcaption></figure><p>So I decided to go ahead and build an app from scratch which would be at par with any other app on the Play Store and doesn’t look like a week long first timer project. That is when I came up with <a href="http://play.google.com/store/apps/details?id=com.crimson.musicplayer&amp;hl=enw"><strong>Crimson Music Player</strong></a>. I am a music head, but I had bad experiences with other Android Music Players. Google Play Music is bad, Most had big Banner ads, which I hate and some was just plain buggy.So, after 3 months of coding 10–18 hours a day along with dipping toes in Photoshop for designing, finally it was ready.</p><p><a href="http://play.google.com/store/apps/details?id=com.crimson.musicplayer&amp;hl=enw"><strong>Crimson</strong></a> has no ads and has some pretty unique features like a Smart Equalizer, Simplified Folder View, Tag Editor, Album Art changer, Timer etc. 15 days after publishing the app got a call from <a href="https://mutualmobile.com/"><strong>Mutual Mobile</strong></a>, Hyderabad for an interview. They liked my app and a couple of interviews later, I joined as an Android Developer. I have never been happier. I got quite a few calls from other companies after that as well. I am still building the app and have given 23 updates since then, has about 30k+ downloads, a rating of 4.4 and is available in 5 languages. I am working on two other apps alongside as well, thanks to where I work which has a very good Work-Life balance, allowing me to keep working on my own projects.</p><p>So everyone out there, especially the ones who are starting out, start building stuff right away. Recruiters go through our resumes for less than 30 seconds and we have to stand out in that short window. From my personal experience, If you are a fresher and applying to tech companies, like I was, an impressive app or a website gets more notice than an internship for a relatively unknown company. Do everything you need to impress a recruiter - get good grades, go for internships, visit places, do social work, but make sure to have great projects to showcase as well.</p><p>My 2 cents.</p><p><strong>Tap the ❤ button if you found this article useful!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=166c408fb63e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>