|
You are here |
zserge.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. | |
| | | | |
ryanharter.com
|
|
| | | | | On a recent client app, I ran into a situation where I needed an arbitrary number of EditText fields based on a selected value, where the user could enter people's information. My initial thought was to put this logic in my Fragment, just adding EditTexts to a LinearLayout container as the selected value changes, but that bloated my Fragment, and didn't allow for much reuse. This was a perfect opportunity to encapsulate this interaction functionality in a custom view, which would be reusable throughout t... | |
| | | | |
jakewharton.github.io
|
|
| | | | | Field and method binding for Android views. | |
| | | | |
www.thepolyglotdeveloper.com
|
|
| | | Use a Java InputStream with threads to download remote files without a browser in Android. Use this method to download in-app purchase files or update data. | ||