https://github.com/ngsilverman/android-stacklayout
Custom ViewGroup of which the top element can be swept away.
https://github.com/ngsilverman/android-stacklayout
Last synced: 2 months ago
JSON representation
Custom ViewGroup of which the top element can be swept away.
- Host: GitHub
- URL: https://github.com/ngsilverman/android-stacklayout
- Owner: ngsilverman
- License: mit
- Created: 2014-04-28T04:05:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-19T00:45:03.000Z (about 11 years ago)
- Last Synced: 2025-02-13T02:35:47.952Z (4 months ago)
- Language: Java
- Homepage: http://androiddev.tips
- Size: 203 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android StackLayout
Custom ViewGroup of which the top element can be swept away in all directions.
## Attributes
Name | Format | Description
------------|------------|-------------
infinite | boolean | If true swept views will be added back to the bottom of the stack, otherwise they are removed entirely.To use these attributes the following attribute must also be set on the root element of the XML layout:
`xmlns:custom="http://schemas.android.com/apk/res-auto"`## Public Methods
Returns | Method | Description
--------|------------------------------------------|-------------
void | setAdapter(Adapter adapter) | Sets the Adapter used to provide the data which backs this Stack.
void | setListener(StaskListener listener) | Register callbacks to be invoked when swipes and hovers occur.## Example
```xml
```