Category Archives: JAVA

Custom View – provide layout from XML when children not supplied

I was doing a component based on LinearLayout instantiated from XML. It could contain children provided as sub-tags in the XML or be left empty and then default layout should be loaded from XML file.

Posted in android, JAVA | Tagged , , , | Comments Off on Custom View – provide layout from XML when children not supplied

Comparing Strings in JAVA

Hi, for last few weeks I am doing JAVA programming for Android, and as my background is mainly with ActionScript I wasn’t aware of JAVA nuances with String comparison, I thought that the equality operator will work i.e. a == … Continue reading

Posted in android, JAVA | Tagged , , , , | Comments Off on Comparing Strings in JAVA