Source code: Android custom ListView

Since many of you have asked for a source code of this tutorial: Android custom ListView tutorial I decided to write it and share. The tutorial was witten based on a bigger project, so I could not share it. This is why I have written custom ListView source code example from scratch based on the … Continue reading Source code: Android custom ListView

Android custom ListView tutorial (including source code)

This tutorial will show how to prepare ListView with custom items and buttons (with click handlers) like this: Source Code The source code for this tutorial is in this post. You can download it and use as You like. 1. Create single list item layout Item consists of three views: name, value (EtitTexts) and delete … Continue reading Android custom ListView tutorial (including source code)

JavaScript: page refresh after timeout

If webpage business logic requires to refresh it after some timeout, the JavaScript function can help. If you use JSF, take a look here to see how to refresh page from Java code. Put this code in page <head>: <script type="text/javascript"> function refresh (timeoutPeriod){ refresh = setTimeout(function(){window.location.reload(true);},timeoutPeriod); } </script> and call it, for example in … Continue reading JavaScript: page refresh after timeout