NOTE: TwoWayView's API is not final yet and code is under heavy development at the moment. Do not rely on it for production code just yet. Feedback and patches are very welcome!
An AdapterView with support for vertical and horizontal scrolling.
- View recycling while scrolling, just like ListView/GridView.
- Vertical and horizontal scrolling support.
- Accessibility support
- Keyboard events and navigation
- Focus handling
A lot more to come, stay tuned.
-
Import TwoWayView as a library to your project.
-
Add a
TwoWayView
to your layout. -
Set an Adapter to the TwoWayView.
The sample app uses all features available in the widget.
Grab via Maven:
<dependency>
<groupId>org.lucasr.twowayview</groupId>
<artifactId>twowayview</artifactId>
<version>0.1.1</version>
</dependency>
or Gradle:
compile 'org.lucasr.twowayview:twowayview:0.1.1'
File new issues to discuss specific aspects of the API and to propose new features.
Copyright (C) 2013 Lucas Rocha
TwoWayView's code is based on bits and pieces of Android's
AbsListView, Listview, and StaggeredGridView.
Copyright (C) 2012 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.