Ciao ragazzi stavo imparando ad usare lo scrollview , dopo aver letto numerosi esempi e questioni di altri utenti ho provato a farlo io , ho provato a fare lo scroll di un layout dove all'interno c'è un listview solo che si vede tutto bianco , come mai ? Vi allego il progetto
Ciao Paolo
Primo nel pannello lol chiama l'oggetto scrol " scv "
secondo cava la riga 'scv.Initialize(1000dip)
esegui e vedrai che funziona
Ciaooo
Mamo
There are two problems in your code :
1) You load the layout 'lol' where you have the ScrollView with the name ScrollView1
and in the code you define a ScrollView with the name scv and you initialize it !
Rename the ScrollView in the lol layout scv
2) You initialize a new ScrollView and you don't add somewhere.
Remove the line scv.Initialize(1000dip) !
Why do you want to put a ListView onto a ScrollView ?
ListView scrolls on its own.
You will probably have some trouble in the scrolling because both ListView already uses the scroll event !
Attached a modified version using only the ListView.
There are two problems in your code :
1) You load the layout 'lol' where you have the ScrollView with the name ScrollView1
and in the code you define a ScrollView with the name scv and you initialize it !
Rename the ScrollView in the lol layout scv
2) You initialize a new ScrollView and you don't add somewhere.
Remove the line scv.Initialize(1000dip) !
Why do you want to put a ListView onto a ScrollView ?
ListView scrolls on its own.
You will probably have some trouble in the scrolling because both ListView already uses the scroll event !
Attached a modified version using only the ListView.