Transition from Windows to Mac OS is pretty hard. It wasn’t easy for me at first considering I’ve been used to using Windows for more than a decade now. Both do have standard keyboard shortcuts but the symbols that Mac uses is kinda different.

The sequence of symbols in a shortcut means that these keys should all be pressed in order to have the desired action be invoked. This does not mean though, that for example a shortcut needs 3 key buttons, you would need to have 3 key buttons pressed at the same time.

You can either press 1 of them first, then the 2nd (while still having the 1st key pressed), then the 3rd. The same way you do with 2 key button shortcuts under Windows. Here is a small guide for you noobs out there.

In Android m5 rc15, nested XML is not possible. Google should have included this feature because it is very useful. You don’t have to clutter your layouts inside 1 XML file. As with other web programming languages where you can do includes, Android doesn’t have it. So far, there has been no workaround made. I came upon one person who gave a solution but somehow it didn’t work. I always have this “layout_width must be set” problem. You can however load XML layouts at runtime using the ViewInflate class. But you need to have layout tags in your XML files and retrieve them via your code. For a quick sample, I had a separate article regarding this.

Click here.

Here is a sample code to load XML layout files at runtime within your Android application. Basically, you have to have a Layout tag within your main XML file so that we get to have a placeholder to where we want to store our content.

Then in your code, follow this:

where a is the class that extends Activity. If you are going to place this code within your class that extends Activity, you don’t need to include the a. in the code. Of course, this does not restrict to LinearLayout alone. You can use all other layouts to add new Views as its content.

Related Posts Plugin for WordPress, Blogger...