<feed xmlns="http://www.w3.org/2005/Atom"> <id>https://huteri.github.io/</id><title>huteri's blog</title><subtitle>My name is Huteri Manza, and this is my blog</subtitle> <updated>2023-03-20T21:43:44+08:00</updated> <author> <name>Huteri Manza</name> <uri>https://huteri.github.io/</uri> </author><link rel="self" type="application/atom+xml" href="https://huteri.github.io/feed.xml"/><link rel="alternate" type="text/html" hreflang="en" href="https://huteri.github.io/"/> <generator uri="https://jekyllrb.com/" version="4.3.1">Jekyll</generator> <rights> © 2023 Huteri Manza </rights> <icon>/assets/img/favicons/favicon.ico</icon> <logo>/assets/img/favicons/favicon-96x96.png</logo> <entry><title>ViewPager2 reset position to 0 when using with Navigation Component</title><link href="https://huteri.github.io/posts/viewpager2-reset-position-to-0-when-using-with-navigation-component/" rel="alternate" type="text/html" title="ViewPager2 reset position to 0 when using with Navigation Component" /><published>2023-03-20T21:24:00+08:00</published> <updated>2023-03-20T21:24:00+08:00</updated> <id>https://huteri.github.io/posts/viewpager2-reset-position-to-0-when-using-with-navigation-component/</id> <content src="https://huteri.github.io/posts/viewpager2-reset-position-to-0-when-using-with-navigation-component/" /> <author> <name>Huteri Manza</name> </author> <summary> If you’ve ever used ViewPager2 with the Navigation Component in Android, you may have encountered an issue where the ViewPager2 resets its position to 0 when coming back from the backstack. This can be a frustrating problem, especially if you’re not familiar with how ViewPager2 works. The problem is caused by the way RecyclerView works. ViewPager2 is built on top of RecyclerView to provide pa... </summary> </entry> <entry><title>Decoder Failed to Init - Exoplayer &amp; ViewPager</title><link href="https://huteri.github.io/posts/decoder-failed-to-init-exoplayer-in-viewpager/" rel="alternate" type="text/html" title="Decoder Failed to Init - Exoplayer &amp; ViewPager" /><published>2019-09-13T13:52:53+08:00</published> <updated>2023-01-04T20:49:27+08:00</updated> <id>https://huteri.github.io/posts/decoder-failed-to-init-exoplayer-in-viewpager/</id> <content src="https://huteri.github.io/posts/decoder-failed-to-init-exoplayer-in-viewpager/" /> <author> <name>Huteri Manza</name> </author> <category term="exoplayer," /> <category term="tips" /> <summary> There is a limit on how many times we can initialize exoplayer in a single device. If we initialize more than it should be, It will cause exoplayer to throw an exception that is not easy to debug and can potentially break the video player in the app. It’s pretty common to show video player inside viewpager, sometimes we just want to play video in a list or swipeable view like view pager. Thi... </summary> </entry> <entry><title>Learning Custom Views in Android</title><link href="https://huteri.github.io/posts/learning-custom-views-in-android/" rel="alternate" type="text/html" title="Learning Custom Views in Android" /><published>2018-03-19T15:35:00+08:00</published> <updated>2023-01-04T20:49:27+08:00</updated> <id>https://huteri.github.io/posts/learning-custom-views-in-android/</id> <content src="https://huteri.github.io/posts/learning-custom-views-in-android/" /> <author> <name>Huteri Manza</name> </author> <category term="views" /> <summary> Today, I would like to share my experience with custom views, and hopefully this can help someone to create their own custom view. The custom view here is a simple analog clock, which is an analog clock view that can be put in XML to show it. Here is the sample It’s available in github and everyone can take a look https://github.com/huteri/analogclock Let’s see how I created this custom ... </summary> </entry> <entry><title>Simple Step to Track and Improve Performance in Android</title><link href="https://huteri.github.io/posts/simple-step-to-track-and-improve-performance-in-android/" rel="alternate" type="text/html" title="Simple Step to Track and Improve Performance in Android" /><published>2016-10-06T18:02:28+08:00</published> <updated>2023-01-05T21:09:05+08:00</updated> <id>https://huteri.github.io/posts/simple-step-to-track-and-improve-performance-in-android/</id> <content src="https://huteri.github.io/posts/simple-step-to-track-and-improve-performance-in-android/" /> <author> <name>Huteri Manza</name> </author> <category term="performance" /> <summary> It’s been a while since I wrote my last article, today I would like to share more about something. Let’s talk about performance. I will give a little sample how we can improve performance of our app. Apps with good performance should not be lagging. By not lagging, it means that the apps load the UI within 16ms/frame or 60 frames/second. The question is how do we achieve it? There are some ... </summary> </entry> <entry><title>The Easy Way to Understand MVP in Android</title><link href="https://huteri.github.io/posts/the-easy-way-to-understand-mvp-in-android/" rel="alternate" type="text/html" title="The Easy Way to Understand MVP in Android" /><published>2016-03-25T15:12:18+08:00</published> <updated>2023-01-05T21:09:05+08:00</updated> <id>https://huteri.github.io/posts/the-easy-way-to-understand-mvp-in-android/</id> <content src="https://huteri.github.io/posts/the-easy-way-to-understand-mvp-in-android/" /> <author> <name>Huteri Manza</name> </author> <category term="architecture" /> <summary> Today, I would like to talk about MVP in android. There are a lot of resources recently talking about MVP in android. MVP is now considered as the good architecture available in Android Development. I hope there is a better way to understand the concept of the MVP first before we talk about how to use MVP in our development workflow. This is the purpose of this article. I want to give a good... </summary> </entry> </feed>
