java


Images horizontal scroll view to display each page one image only


I used the below codes to implement images in horizontal scroll view , its work fine but all images scrolling one to each other ,
what i try to achieve is to scroll one image by one image in each page (each page must occupy only one image ),
any suggestion will be appreciated
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="horizontal">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<ImageButton
android:id="#+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="10dp"
android:src="#drawable/a" />
<ImageButton
android:id="#+id/imageButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="10dp"
android:src="#drawable/b" />
<ImageButton
android:id="#+id/imageButton3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="10dp"
android:src="#drawable/c" />
</HorizontalScrollView>
</RelativeLayout>

Related Links

Java Error on function call [duplicate]
i want to send parameters to the `php` script so it can filter correctly
Using EJB 3 TimerService with JBoss AS 7.1.1.Final?
Eclipse RCP application is not setting the ERRORLEVEL upon System.exit()
Unable to create maven based application using maven-archetype-webapp plugin
Java Generic syntax with Comparable interface
Error: Could not Find or Load Main Class [Building and executing JAR File]
Displaying a date field from the java DB in 3 combo boxes in a Jform(GUI)
JTextArea and GridBagLayout: how to avoid changing column width as we write some text?
do while loop doesn't get out of the loop?
Does Android care about exit status code passed to System.exit(…)?
“int cannot be dereferenced” in some calculation methods
Editing a table in JavaFx
how can i set the don't disturb mode in my app? [closed]
Battleship AI program issues
use xstream in play framework 2.1 encountered CannotResolveClassException

Categories

HOME
xamarin
wso2-am
vbscript
atom-editor
hook
isabelle
server
google-play
plone
comparison
hp-exstream
session
mean-stack
spagobi
cakephp-2.5
onelogin
paradox
kibana-4
qt-creator
task
orchardcms
ibm-odm
decimal
iolanguage
systemc
facebook-page
flux
cloudhub
realex-payments-api
tibco-mdm
restful-authentication
firebase-crash-reporting
xpages-ssjs
sparse-matrix
info.plist
greendao
typo3-6.2.x
buck
opentype
frame
google-sites-2016
kendo-ui-grid
vsts-build-task
lxd
protovis
geopositioning
y86
cloud-code
html5-fullscreen
neuroscience
vapor
webdriver-manager
android-tabhost
g-code
nand2tetris
nxlog
no-www
flashair
node-sass
eclipse-gef
outlook-2013
strptime
pango
pubmed
celery-task
svmlight
google-perftools
webdriverjs
sonarlint-vs
topbeat
cubes
slicknav
impresspages
gstreamer-0.10
markojs
testng-dataprovider
system.management
maven-tomcat-plugin
reactive-banana
tarjans-algorithm
sframe
ionic
cakephp-3.1
ibaction
service-accounts
sortedlist
system.reflection
rake-task
tween
xc16
cctv
socketexception
gulp-less
sgen
undefined-reference
algebraic-data-types
mcts
page-layout
quartz-graphics
dotnetnuke-5
easy-install
yui-compressor
cassini-dev
angularjs-controller
cisco-jtapi
multipage
labwindows
bubble-chart
semantic-diff
boost-filesystem
pydot
yetanotherforum
appendto
gdlib
iphone-web-app
h.323
revisions
ext3
avatar
yagni
data-acquisition
django-notification
wsdl.exe
commodore
paul-graham
ntvdm.exe

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile