<?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[CodeAndroid - Medium]]></title>
        <description><![CDATA[Unlocking the Potential of Android Development - Medium]]></description>
        <link>https://medium.com/codeandroid?source=rss----76714f3b75b7---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>CodeAndroid - Medium</title>
            <link>https://medium.com/codeandroid?source=rss----76714f3b75b7---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 13 Nov 2026 14:40:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/codeandroid" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Spannable Text in Jetpack Compose — Android]]></title>
            <link>https://medium.com/codeandroid/spannable-text-in-jetpack-compose-android-a93b9306678d?source=rss----76714f3b75b7---4</link>
            <guid isPermaLink="false">https://medium.com/p/a93b9306678d</guid>
            <category><![CDATA[textview]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[spannable-string]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[Chintan Rathod]]></dc:creator>
            <pubDate>Mon, 22 Jul 2024 13:29:12 GMT</pubDate>
            <atom:updated>2024-07-22T13:29:11.965Z</atom:updated>
            <content:encoded><![CDATA[<h3>Spannable Text in Jetpack Compose — Android</h3><p>The life of an Android developer has become much easier with the advent of Jetpack Compose in Android development. However, there are still areas that require significant knowledge</p><p>Although in the traditional Android View system using XML, we could use “SpannableString” to achieve the desired output in the “TextView”, “SpannableString” is not supported in Jetpack Compose.</p><h4>How to create Spannable Text in Jetpack Compose?</h4><p>To create Spannable Text in Compose is very easy and straightforward.</p><p>As you know, to create a TextView in Compose, you need to write following code.</p><p><strong>Eg.</strong></p><pre>Text (text = &quot;This is sample text&quot;)</pre><p>Here, text argument is overloaded with String and AnnotatedString and as you guess correctly, AnnotatedString is the alternative to SpannableString.</p><h4><strong>Change Style</strong></h4><p>To change style, like color, in the String, you can use following example.</p><p>Suppose we have the string “I accept Privacy Policy” and we want to highlight “Privacy Policy” with Blue. We can achieve this by using “buildAnnotatedString” function and applying styles as needed.</p><pre>val annotatedString = buildAnnotatedString {<br>  append(&quot;I accept&quot;)<br>  withStyle(style = SpanStyle(Color.Blue)) {<br>    append(&quot; Privacy Policy&quot;)<br>  }<br>}<br><br>Text(text = annotatedString)</pre><h4>Change Text Size</h4><p>There could be a case that we want to either make font/text size bigger or smaller in our string.</p><p>Taking an example of “Google Pixel at 50% Discount”. Well that’s a huge discount but in example, we want to make 50% Discount” at slightly bigger size to previous text.</p><p>Following example will allow you to make it work.</p><pre>val annotatedString = buildAnnotatedString {<br>  withStyle(style = SpanStyle(fontSize = 15.sp)) {<br>    append(&quot;Google Pixel at&quot;)<br>   }<br>   withStyle(style = SpanStyle(fontSize = 20.sp)) {<br>     append(&quot; 50% Discount&quot;)<br>   }<br>}<br><br>Text(text = annotatedString)</pre><p>Please don’t forget to follow for next article :)</p><p><em>Happy Coding.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a93b9306678d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codeandroid/spannable-text-in-jetpack-compose-android-a93b9306678d">Spannable Text in Jetpack Compose — Android</a> was originally published in <a href="https://medium.com/codeandroid">CodeAndroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fix “Accept the license agreements” issue in Jenkins — Android]]></title>
            <link>https://medium.com/codeandroid/accept-the-license-agreements-remotely-in-jenkins-android-1d7cf731c9d4?source=rss----76714f3b75b7---4</link>
            <guid isPermaLink="false">https://medium.com/p/1d7cf731c9d4</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[ci]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Chintan Rathod]]></dc:creator>
            <pubDate>Tue, 26 Mar 2024 11:20:19 GMT</pubDate>
            <atom:updated>2020-03-17T13:23:06.648Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are using Jenkins for Android CI, you might face issue of licence agreement which looks like below.</p><pre>[SDK Patch Applier v4, Google Repository, Android Support Repository].<br>Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.</pre><p>To solve this issue,</p><p><strong>Copy your license file in other work space’s Android SDK (i.e. Jenkins)</strong></p><p>Open your “Android SDK” directory and search for “licenses” directory. Copy “android-sdk-license” file and paste it in your Jenkins’ “Android SDK” directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*dz4VkHuaqMm249hEJnxT4A.png" /><figcaption>license file for license agreement jenkins</figcaption></figure><p><em>If you can’t find “licenses” directory, create new one and then paste it.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d7cf731c9d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codeandroid/accept-the-license-agreements-remotely-in-jenkins-android-1d7cf731c9d4">Fix “Accept the license agreements” issue in Jenkins — Android</a> was originally published in <a href="https://medium.com/codeandroid">CodeAndroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use APK Analyze tool in Android Studio]]></title>
            <link>https://medium.com/codeandroid/how-to-use-apk-analyze-tool-in-android-studio-d8656fa6700f?source=rss----76714f3b75b7---4</link>
            <guid isPermaLink="false">https://medium.com/p/d8656fa6700f</guid>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[apk]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[apk-size]]></category>
            <dc:creator><![CDATA[Chintan Rathod]]></dc:creator>
            <pubDate>Tue, 26 Mar 2024 11:19:13 GMT</pubDate>
            <atom:updated>2017-06-23T14:07:40.565Z</atom:updated>
            <content:encoded><![CDATA[<p>Android studio now provides immediate insight of your APK. Using the APK Analyzer can reduce time to reduce your APK size.</p><ul><li>Get absolute and relative size of files in the APK</li><li>View DEX files.</li><li>Extract APK and check manifest, resources etc</li></ul><p>You can analyze APK by below flow.</p><p>Select <strong>Build &gt; Analyze APK</strong> in the menu bar and then select your APK.</p><p>Watch this video to understand how you can use this tool to manage your APK size.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FqSPMrNa8XVI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqSPMrNa8XVI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FqSPMrNa8XVI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ad912e6afc1198560974677a661f62b/href">https://medium.com/media/7ad912e6afc1198560974677a661f62b/href</a></iframe><p>I hope you will like this video. If you have any feedback, feel free to comment below: I would be very happy to get suggestions.</p><p>Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8656fa6700f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codeandroid/how-to-use-apk-analyze-tool-in-android-studio-d8656fa6700f">How to use APK Analyze tool in Android Studio</a> was originally published in <a href="https://medium.com/codeandroid">CodeAndroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>