<?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 Vaishali Chandel on Medium]]></title>
        <description><![CDATA[Stories by Vaishali Chandel on Medium]]></description>
        <link>https://medium.com/@vaishalichandel110?source=rss-1bf2342c037f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NDUyPTQ0uPYHehgp1KBhVw.jpeg</url>
            <title>Stories by Vaishali Chandel on Medium</title>
            <link>https://medium.com/@vaishalichandel110?source=rss-1bf2342c037f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:22:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vaishalichandel110/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[When to Use PNG vs SVG in Jetpack Compose (and How to Handle PNG Densities Properly)]]></title>
            <link>https://medium.com/@vaishalichandel110/when-to-use-png-vs-svg-in-jetpack-compose-and-how-to-handle-png-densities-properly-efb8694828ac?source=rss-1bf2342c037f------2</link>
            <guid isPermaLink="false">https://medium.com/p/efb8694828ac</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Vaishali Chandel]]></dc:creator>
            <pubDate>Wed, 08 Apr 2026 09:55:09 GMT</pubDate>
            <atom:updated>2026-04-08T10:00:45.762Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re building Android apps with Jetpack Compose, one question comes up quite often:</p><p><strong>Should I use PNG or SVG (Vector)?</strong></p><p>At first, I used PNG everywhere because it felt simple. But as the app scaled, I started facing issues like blurry images, large APK size, and inconsistent UI across devices. That’s when understanding the difference really mattered.</p><p>Let’s break it down in a practical way 👇</p><p><strong>PNG vs SVG (Vector) — What’s the Real Difference?</strong></p><p><strong>PNG</strong></p><ul><li>Fixed resolution</li><li>Pixel-based</li><li>Can lose quality when scaled</li><li>Larger file size (especially multiple densities)</li></ul><p><strong>SVG / Vector (in Android → VectorDrawable)</strong></p><ul><li>Resolution independent</li><li>Scales perfectly on any screen</li><li>Smaller and cleaner for UI graphics</li></ul><p><strong>When to Use SVG (Vector) in Jetpack Compose</strong></p><p>Use vector assets when:</p><ul><li>You are using <strong>icons</strong> (like home, back, settings)</li><li>You have <strong>simple illustrations</strong></li><li>You need <strong>scalability across devices</strong></li><li>You want to support <strong>multiple screen sizes easily</strong></li></ul><p>👉 Example in Compose:</p><pre>Icon(<br> painter = painterResource(id = R.drawable.ic_home),<br> contentDescription = null<br>)</pre><p><strong>When to Use PNG</strong></p><p>PNG still has its place. Use it when:</p><ul><li>You are showing <strong>complex images</strong> (photos, gradients, detailed artwork)</li><li>You need <strong>exact pixel-perfect visuals</strong></li><li>You are using <strong>bitmaps from design tools</strong></li></ul><p><strong>The Right Way to Use PNG in Android (Very Important)</strong></p><p>If you’re using PNG, don’t just drop one image and hope it works everywhere.</p><p>Android uses <strong>density buckets</strong>:</p><p><strong>Example: Adding PNG Correctly</strong></p><p>Let’s say your base image is <strong>mdpi (1x)</strong>:</p><pre>mdpi → 100x100 px<br>hdpi → 150x150 px<br>xhdpi → 200x200 px<br>xxhdpi → 300x300 px<br>xxxhdpi → 400x400 px</pre><p>After working on multiple apps, I follow this:</p><p>Use <strong>Vector (SVG)</strong> → for icons, UI elements<br> Use <strong>PNG</strong> → for images, photos, complex visuals</p><h3>Final Thoughts</h3><p>Jetpack Compose makes UI development faster, but choosing the right asset type still matters a lot.</p><p>If you:</p><ul><li>Use vectors where possible → your UI stays sharp</li><li>Handle PNG densities properly → your app looks consistent</li></ul><p>That’s the sweet spot.</p><p>If you’re building Android apps regularly, getting this right early will save you a lot of time later.</p><p>Let me know — what do you usually use more: PNG or Vector?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efb8694828ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Android Development Using Kotlin Your beginner-friendly guide to building…]]></title>
            <link>https://medium.com/@vaishalichandel110/getting-started-with-android-development-using-kotlin-your-beginner-friendly-guide-to-building-your-885ddd7c6f5f?source=rss-1bf2342c037f------2</link>
            <guid isPermaLink="false">https://medium.com/p/885ddd7c6f5f</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[kotlin-beginners]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Vaishali Chandel]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 15:52:22 GMT</pubDate>
            <atom:updated>2025-04-30T15:58:58.867Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting Started with Android Development Using Kotlin <br>Your beginner-friendly guide to building your first Android app in 2025</h3><p>Have you ever dreamed of creating your own Android app? Whether it’s a to-do list, weather app, or even a fun game — the journey starts with choosing the right language. And in 2025, Kotlin is the gold standard for Android development.</p><p>In this story, I’ll walk you through the essentials to get started with Android development using Kotlin — even if you&#39;re completely new to it.</p><h3>Why Kotlin for Android?</h3><p>Kotlin, developed by JetBrains and officially supported by Google since 2017, has become the preferred language for Android development. Here’s why:</p><p>- Concise: Less boilerplate code than Java.<br>- Safe: Null safety helps avoid crashes.<br>- Modern: Comes with features like coroutines, sealed classes, and smart casts.<br>- Interoperable: You can still use Java libraries and code when needed.</p><h3>Tools You’ll Need</h3><p>Before writing your first line of Kotlin code, let’s set up the tools:</p><p>1. Android Studio (Electric Eel or newer)<br> Download from [developer.android.com/studio](https://developer.android.com/studio)</p><p>2. JDK (Java Development Kit)<br> Android Studio typically bundles this for you.</p><p>3. A Physical Device or Emulator <br> You can test your app using an Android emulator or your real phone via USB debugging.</p><p>Hello, World! (The Kotlin Way)</p><p>Let’s build a simple Android app that displays &quot;Hello, World!&quot; on the screen.</p><h3>Step 1: Create a New Project</h3><p>- Open Android Studio<br>- Choose Empty Activity<br>- Select Kotlin as the language<br>- Set your app name (e.g., &quot;HelloKotlin&quot;)</p><h3>Step 2: Design the UI</h3><p>Open `activity_main.xml` and replace the default code with:</p><pre><br>&lt;TextView<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    android:text=&quot;Hello, World!&quot;<br>    android:textSize=&quot;24sp&quot;<br>    android:layout_gravity=&quot;center&quot;/&gt;<br></pre><h3>Step 3: Add Kotlin Code (Optional)</h3><p>Open `MainActivity.kt` and customize the activity:</p><pre><br>class MainActivity : AppCompatActivity() {<br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br>        setContentView(R.layout.activity_main)<br>        Toast.makeText(this, &quot;App Started!&quot;, Toast.LENGTH_SHORT).show()<br>    }<br>}<br></pre><p>Run the app and voilà — your first Android app using Kotlin is alive!</p><p>What’s Next?</p><p>Now that you’ve taken your first step, here’s where you can go next:</p><p>- Learn about Jetpack Compose— modern UI toolkit by Google.<br>- Explore Kotlin coroutines for asynchronous programming.<br>- Integrate Room or Firebase for data storage.<br>- Build real-world projects to strengthen your skills.</p><h3>Final Thoughts</h3><p>Starting Android development with Kotlin may seem overwhelming at first, but every developer was once a beginner. Keep experimenting, break things, fix them — and most importantly, build something you love.</p><p>If this story helped you, leave a clap, comment below, and follow me for more Kotlin &amp; Android tips. <br>Let’s build great apps, one line of Kotlin at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=885ddd7c6f5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>