/explore
|
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. |
|
| | | | | ||
| | | | |
zserge.com
We love XMLs, but there might be a better way |
|
| | | | | ||
| | | | |
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... |
|
| | | | | ||
| | | | |
zserge.com
Bringing java 8 features to android platform |
|
| | | |||