/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

ryanharter.com
| | wittchen.io

When we work with Activities in Android, defining different layouts for different screen orientations is easy. The only thing we need to do, is to create two *.xml files with the same name for layouts in two separate directories (res/layout/ and res/layout-land/). In Fragments its not that easy. In such case, we need to perform additional operations in order to achieve our goal. Fragment in Android is not re-inflated on configuration change, but we can recreate layout and repopulate view manually.
2.2 parsecs

Travel
| |
| | zserge.com

We love XMLs, but there might be a better way
2.8 parsecs

Travel
| |
| | arpitonline.com

In my previous post, I had written a bit about creating custom Layouts for Android. However to make a truly reusable layout there are a few more things we'd probably need: Some unique properties that you may want to assign to it via XML (Like LinearLayout has an orientation property unique to it) Custom LayoutParams...
2.4 parsecs

Travel
| |
| | zserge.com

Bringing java 8 features to android platform
7.1 parsecs

Travel
|