-
Implementing the double tap on an ImageView
Read more: Implementing the double tap on an ImageViewIn this post I explain a simple example of an implementation of a double tap event on an ImageView that can be adapted with some changes for a TextView or an Activity.
-
Padding and margin in DialogPreference
Read more: Padding and margin in DialogPreferenceI implemented a Time Picker in the preference using the code found here where the class TimePreference extends the class DialogPreference but I found a lack of alignment with the other preference items because of a different setting of the margins and/or padding.
-
Copying an array in java
Read more: Copying an array in javaIn this post I show some ways to copy arrays of primitive data and objects to another array.
-
Handling the multi-touch in a surface view
Read more: Handling the multi-touch in a surface viewIn the previous post Handling the multi-touch in a view I’ve used a class that extends a View to show the circles where the screen is touched, here I display the same example but using a SurfaceView.
-
Handling the multi-touch in a view
Read more: Handling the multi-touch in a viewIn this post you find a full example about how to extend a view to draw, in this case, a circle where you touch the screen implement a listener on a view to handle the multi-touch
-
How to change the look and feel of a view using css
Read more: How to change the look and feel of a view using cssA lotus view open in a browser is very ugly but you can greatly improve using stylesheets (css); here I explain how to use the css in a lotus view in order to improve the look and feel and to display rows in alternate colors.
-
Running a fortran program from java
Read more: Running a fortran program from javaIn this post I write an example about how to launch a fortran executable form a java program passing some arguments and getting back a result. The chosen example uses code written in fortran to get primes, it is from Sieve of Eratosthenes.
-
Getting the variables of the outer class from an inner class
Read more: Getting the variables of the outer class from an inner classThe inner classes, and then not static, can access even if with some limitation to the variables of the outer class.