<?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 Vlonjat Gashi on Medium]]></title>
        <description><![CDATA[Stories by Vlonjat Gashi on Medium]]></description>
        <link>https://medium.com/@vlonjatgashi?source=rss-5607659f5007------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KoI3hzdc2Hczjw-_1sXGBA.jpeg</url>
            <title>Stories by Vlonjat Gashi on Medium</title>
            <link>https://medium.com/@vlonjatgashi?source=rss-5607659f5007------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:02:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vlonjatgashi/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[How to Filter Out Android Logcat Logs]]></title>
            <link>https://medium.com/@vlonjatgashi/how-to-filter-out-android-logcat-logs-66945a4a0e0a?source=rss-5607659f5007------2</link>
            <guid isPermaLink="false">https://medium.com/p/66945a4a0e0a</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[logcat]]></category>
            <dc:creator><![CDATA[Vlonjat Gashi]]></dc:creator>
            <pubDate>Thu, 07 Jun 2018 07:57:42 GMT</pubDate>
            <atom:updated>2022-12-13T15:18:30.590Z</atom:updated>
            <content:encoded><![CDATA[<p>The Android system and other apps log way too much stuff in Logcat. Considering that the Logcat window doesn’t have much real estate, all these logs clutter the output and hide away the stuff that you actually want to see.</p><p>But using regex expressions and the Logcat’s filter configuration, we can filter this mess away. Open the Logcat window &gt; Edit Filter Configuration. In the new logcat filter window, fill up this information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*MNGN9gai8lD6_OQUS_7uKw.png" /></figure><p>In the Log Tag field, using the regex expression ^(?!(HideMe)), enter the Log tags that you don’t want to see. You can separate multiple tags with| and if a tag is dynamic, enter the static part and end it with *.</p><p>In the package name, enter your apps package name.</p><pre>^(?!(zygote64|dalvik|ViewRootImpl*))</pre><p>The above expression will print everything in Logcat from your app, except logs with the tags zygote64, dalvik and everything that starts with the ViewRootImpl* tag.</p><pre>Thank you for reading. If you enjoyed this post, please consider <br>following for more content like this.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66945a4a0e0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android’s Data Binding with Kotlin]]></title>
            <link>https://medium.com/@vlonjatgashi/androids-data-binding-with-kotlin-1d199c8c2495?source=rss-5607659f5007------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d199c8c2495</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android-data-binding]]></category>
            <dc:creator><![CDATA[Vlonjat Gashi]]></dc:creator>
            <pubDate>Tue, 02 Jan 2018 20:16:25 GMT</pubDate>
            <atom:updated>2018-01-02T20:16:25.273Z</atom:updated>
            <content:encoded><![CDATA[<p>To use Data Binding with Kotlin, there’s a hidden dependency that needs to be added, which isn’t obvious in the official documentation and may give headaches to developers who aren’t aware about this.</p><ol><li>In your app’s build.gradle set data binding as usual:</li></ol><pre>android {<br>    ...<br><br>    dataBinding {<br>        enabled = true<br>    }<br>}</pre><p>2. Add the compiler dependency</p><pre>dependencies {<br>    kapt &quot;com.android.databinding:compiler:3.0.1&quot;<br>}</pre><p>3. Then apply the plugin at the top of the file:</p><pre>apply plugin: &#39;kotlin-kapt&#39;</pre><p>4. Now you can use data binding as usual.</p><p>The full build.gradle file:</p><pre>apply plugin: &#39;com.android.application&#39;<br><br>apply plugin: &#39;kotlin-android&#39;<br><br>apply plugin: &#39;kotlin-kapt&#39;</pre><pre><br>android {<br>    dataBinding {<br>        enabled = true<br>    }<br>}<br><br>dependencies {<br>    kapt &quot;com.android.databinding:compiler:3.0.1&quot;<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d199c8c2495" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Glide with Kotlin]]></title>
            <link>https://medium.com/@vlonjatgashi/using-glide-with-kotlin-5e345b557547?source=rss-5607659f5007------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e345b557547</guid>
            <category><![CDATA[glide]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Vlonjat Gashi]]></dc:creator>
            <pubDate>Thu, 28 Dec 2017 03:20:24 GMT</pubDate>
            <atom:updated>2022-12-13T16:55:17.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*PG7q_78CFDUWF4Q8z247Lw.png" /></figure><p>Glide is an image-loading library for Android that simplifies the process of loading and displaying images from external sources. It’s highly customizable and efficient, making it a popular choice among Android developers.</p><p>In version 4, Glide received massive API changes that slightly changed how we can use it in our apps. To make it work with Kotlin, follow these steps:</p><p>First, you’ll need to add the Glide dependency to your app-level build.gradle file:</p><pre>implementation &#39;com.github.bumptech.glide:glide:4.4.0&#39;<br>kapt &#39;com.github.bumptech.glide:compiler:4.4.0&#39;</pre><p>Include the kotlin-kapt plugin in your build.gradle file:</p><pre>apply plugin: &#39;kotlin-kapt&#39;</pre><p>Create an <a href="https://bumptech.github.io/glide/javadocs/400/com/bumptech/glide/module/AppGlideModule.html">AppGlideModule</a> implementation:</p><pre>import com.bumptech.glide.annotation.GlideModule<br>import com.bumptech.glide.module.AppGlideModule<br><br>@GlideModule<br>class AppGlideModule : AppGlideModule()</pre><p>Build the project and then use the generated API:</p><pre>GlideApp.with(this)<br>        .load(URL)<br>        .into(image)</pre><p>To learn more about using Glide with Kotlin, check out the official documentation at <a href="https://bumptech.github.io/glide/">https://bumptech.github.io/glide/</a>. There, you can find more advanced examples and explore the full range of features offered by the library.</p><pre>Thank you for reading. If you enjoyed this post, please consider <br>following for more content like this.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e345b557547" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google I/O 2017: My Takeaways]]></title>
            <link>https://medium.com/@vlonjatgashi/google-i-o-2017-my-takeaways-b25591986589?source=rss-5607659f5007------2</link>
            <guid isPermaLink="false">https://medium.com/p/b25591986589</guid>
            <category><![CDATA[architecture-components]]></category>
            <category><![CDATA[android-instant-apps]]></category>
            <category><![CDATA[google-io-2017]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Vlonjat Gashi]]></dc:creator>
            <pubDate>Sun, 21 May 2017 11:37:39 GMT</pubDate>
            <atom:updated>2017-05-21T23:15:14.867Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*1ZBbkqkF7eR3XxXMzlF9aQ.jpeg" /></figure><p>Google I/O 2017 has come to an end, with three days of packed sessions and plenty to look for in the weeks ahead as Google releases the cool stuff that they showed off during the event.</p><p>On the Android side, these are the announcements that I will look for and play around with, as they come out:</p><h4>1. Official Support for Kotlin</h4><p>In the past, we had to use a plug-in in order to use Kotlin in our Android apps. But following the Google I/O announcement and the release of the Android Studio 3.0 Canary 1, we don’t need a plug-in anymore as AS supports Kotlin by default.</p><p>The top things that I love about Kotlin are null-safety, the modern syntax, how well it incorporates with Java, annotations to autogenerate boilerplate code, functional programming support, builders, extension functions.</p><p>Kotlin comes from the community. The language has been developed with the industry in mind and it solves problems faced by working programmers today. The official support makes it even better as the language development and integration in code bases will skyrocket.</p><h4>2. Architecture Components</h4><p>Activity lifecycle in Android is a mess. You constantly have to babysit API-s whenever the activity rotates, goes in background, pauses, is destroyed, resumes. All these checks add a ton of boilerplate in the code base and are the main cause of bugs and crashes.</p><p>The release of the architecture components will be a ton of help with real world needs like offline persistence, lifecycle handling, data changes. What’s even more exciting is that the team announced that there will be even more to come in the future releases.</p><p>It’s worth mentioning that an all time favorite release was Android Data Binding in the 2015 I/O. It has simplified the connection between code and the UI and has removed a ton of boilerplate findViewByIds and view setters and getters.</p><h4>3. Instant Apps</h4><p>Announced at the last year’s I/O, Instant Apps are finally available to all developers.</p><p>Instant Apps will provide a powerful way to showcase the usefulnesses of an app and will be an important user acquisition platform.</p><h4>4. Play Store Console</h4><p>Following the earlier complete redesign, there are many more features coming to the Play Store Console including:</p><ul><li>Android Vitals to check how our apps are performing out in the wild.</li><li>App release stats so that we can release app updates with more confidence and stability.</li><li>The new subscription dashboard.</li><li>App Signing</li></ul><p>All this being said, I still have a ton of recorded sessions to watch and features to try out. This year’s edition has set the bar high and it’s awesome to imagine how future I/O events will top this one.</p><p>P.S: Considering the bazillion times Machine Learning was mentioned throughout the Keynote, it’s worth considering a career path change 😄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b25591986589" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BindingAdapter with multiple attributes in Android Data Binding]]></title>
            <link>https://medium.com/@vlonjatgashi/bindingadapter-with-multiple-attributes-in-android-data-binding-3e872caf1ef8?source=rss-5607659f5007------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e872caf1ef8</guid>
            <category><![CDATA[data-binding]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Vlonjat Gashi]]></dc:creator>
            <pubDate>Sat, 17 Oct 2015 17:57:50 GMT</pubDate>
            <atom:updated>2022-12-13T16:58:06.467Z</atom:updated>
            <content:encoded><![CDATA[<p>If you need a BindingAdapter with multiple attributes, it can be accomplished in the following way:</p><p>Create a BindingAdapter that has as many bindings as you need, in this case two:</p><pre><a href="http://twitter.com/BindingAdapter">@BindingAdapter</a>({“<strong>bind:title”, “bind:plot</strong>”})<br>public static void movieData(TextView view, String title, String plot) {<br>    Timber.d(title);<br>    Timber.d(plot);<br>}</pre><p>And then set all values in the xml:</p><pre>&lt;TextView<br>    android:layout_width=”wrap_content”<br>    android:layout_height=”wrap_content”<br>    <strong>app:title=”@{movie.title}”<br>    app:plot=”@{movie.plot}” </strong>/&gt;</pre><pre>Thank you for reading. If you enjoyed this post, please consider <br>following for more content like this.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e872caf1ef8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>