android


Horizontal scrolling between activities in Android


I'm building a new application to the Android platform and I want to implement moving between different activities by scrolling. I want also to use some kind of scrolling effect like in this example.
I've searched the web and found a couple of examples using view pager and fragments, but my problems are:
View pager is used to switch between views and I want to switch between different activities.
I don't want to use fragments because I don't think it's going to fit to earlier API (before Android 2.1).
So, for my questions:
Is there any other way for doing it, except of using onFling gesture and then losing the sliding effect?
Can I use fragments to the earlier API's?
Thanks.
Of course it is possible to use fragments in lower versions. You simply have use the android support library and impost viewpager to your app. Here is a very good example which uses View Pager and fortunately it implements the support libraries and it worked for me from android 2.1.
http://viewpagerindicator.com/
You can use fragments in earlier versions, using android-support-v4.
If you work with Eclipse, you can add it to your project by right-click on it, "Android Tools", then "Add Support Library... "

Related Links

How to do a tap on the screen in AccessibilityService in Android 7
Android studio PDF text with spaces
How to enable second SPI channel of Raspberry Pi 3 on Android Things?
Combine 2 observables and get output from one which complete first
How to customize Leanback's ListRows?
What is the max number of Android emulators running with intel HAXM on the same PC?
How to add side drawer? [Nativescript + Angular]
CheckBox setChecked has no effect
FragmentManager is already executing transactions Android
Android method cannot run
Android two Textviews, align them as one paragraph
Robolectric AsyncTask callback
why the checkBox is check when setChecked(false) is called
How to identify android app installations [duplicate]
A/libc: Fatal signal 6 (SIGABRT) at 0x0000315f (code=-6), thread 12639
send SMS using Twilio android

Categories

HOME
windows
eclipse
phpword
microsoftgraph
jpa
pda
mstest
owl-carousel
can
nsbundle
echo
trac
modal-dialog
extjs4.2
okhttp
jquery-ui-sortable
categorical-data
mxgraph
x-cart
azure-powershell
coin3d
aws-sdk
fileserver
template-engine
delphi-xe5
googlebot
href
ios10.2
opentk
fable-f#
android-sharedpreferences
linked-data
bioinformatics
realm-mobile-platform
nsurl
scrollview
livelink
hreflang
contacts
reactjs.net
sql-delete
baidu-map
servicestack-text
python-pptx
latitude-longitude
mongoose-schema
tasm
magento-1.9.3
datacachefactory
parser-generator
sharp-snmp
configurationmanager
geotiff
mongotemplate
wpas
context-sensitive-grammar
dt
simplepie
dotnetnuke-7
installshield-2010
aurora
turbo-prolog
asyncdisplaykit
decimalformat
android-launcher
graphics2d
entity-framework-4.3
bcache
filesplitting
post-commit-hook
psr-4
linkedin-jsapi
wcm
nsmenu
cuba
kissfft
live555
malformedurlexception
jjaql
alternate
spring-remoting
getopt
syndicationfeed
embedded-fonts
ice-cube
superscrollorama
swfobject
dajaxice
wiimote
role
workflow-services
fsevents
qglwidget
wcf-instancing
netbeans6.1

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App