Android Loop Tabs Sample

Here is sample for loop tabs in Android. Video with sample application in action Lets show how it works. 1. I have Tab enum which describe Tab element. Also you can handle tab state. I don’t do it in this sample.

2. Project has View for tabs which extended Read more…

How to detect phone shaking in Android. Sample

Here is sample application which demonstrate shake detecting. This sample application go into red when shake detected. Please look youtube video.

The full source code from Android project (Android Studio) is here:

Send email with text file as attachment android sample

Here is little sample how to send email (send intent to Mail app) with text file as attachment. Screenshot:   And here is source code of main feature:

I make the text file with sample text before sending. This need to make this sample works. The full is:

Read more…

How to create custom style for fast scroll scrollbar in Android

Here is sample for fastScroll ListView functionality. To apply this style you need add the following lines into your app’s style:

Also if you need handle click action on your scrollbar you need create the next drawable:

Also you need apply this style in the AndroidManifest.xml or in Read more…

How to use hexadecimal colours in iOS

I have develop the iOS application which based on design with hexadecimal colours (“#fff”, “#ff0000”, “#88ff0000”). To use the same in the iOS I’ve created special method witch can help me with it. Below you can see snippet of m-file.