Android Question Desinger problem in Scrollview

Tayfur

Well-Known Member
Licensed User
Longtime User
Helllo;

I have panel (Panel_ayar_list) 14pcs Label and Editbox.
I see in desingner page. They are normal (I saw 14pcs)
So, runnning code. Open on tablet.
I cant see last 2 label and
//*******Last 4 items ************
Label_ham_dosyaad
Label_ham_dosyayolu
Text_ham_dosyaad
Text_ham_dosyayolu
//*******************


Desinger_page.jpg



This is screenshot on tablet
I cant see last 2 editbox and label.
After I change "Top" value. I can see when I set
<Text_dosya_suresi.Top> Last 4 items ".top" value>

HOW CAN I FIX IT????

Screenshot_2014-03-05-14-37-11.png


*************ACTIVITY CODE*****************************
Code: Copy
Activity.LoadLayout("ana_sayfa")
            Msgbox(100%x&"-"&100%y,"")
            gorev_ag.Initialize
            Panel_ayar_list.RemoveView
            'ScrollView1.Panel.AddView(Panel_ayar_list,5dip,5dip,ScrollView1.Width-10dip,Panel_ayar_list.Width)
            ScrollView1.Panel.AddView(Panel_ayar_list,5dip,5dip,Panel_ayar_list.Height,Panel_ayar_list.Width)


**************desinger Code*****************
Code: Copy
Panel_ayar_list.Height=2000

Label_id.Top=1
Label_user.Top=(Label_id.height+5)*1
Label_pass.Top=(Label_id.height+5)*2
Label_server_ip.Top=(Label_id.height+5)*3
Label_parca_dosya.Top=(Label_id.height+5)*4
Label_p_dosya_yolu.Top=(Label_id.height+5)*5
Label_tekres.Top=(Label_id.height+5)*6
Label_anapc_ip.Top=(Label_id.height+5)*7
Label_anapc_port.Top=(Label_id.height+5)*8
Label_timer.Top=(Label_id.height+5)*9
Label_dosyaadedi.Top=(Label_id.height+5)*10
Label_dosya_suresi.Top=(Label_id.height+5)*11
Label_ham_dosyaad.Top=(Label_id.height+5)*12
Label_ham_dosyayolu.Top=(Label_id.height+5)*13


Text_Cihazid.Top=Label_id.Top
Text_username.Top=Label_user.top
Text_password.Top=Label_pass.top
Text_serverip.Top=Label_server_ip.Top
Text_parc_dosyaadi.Top=Label_parca_dosya.Top
Text_p_dosya_yolu.Top=Label_p_dosya_yolu.Top
Text_tek_res_yolu.Top=Label_tekres.top
Text_ana_pc_ip.Top=Label_anapc_ip.top
Text_ana_pc_port.Top=Label_anapc_port.top
Text_timer.Top=Label_timer.Top
Text_dosyaadedi.Top=Label_dosyaadedi.Top
Text_dosya_suresi.Top=Label_dosya_suresi.Top
Text_ham_dosyaad.Top=Label_ham_dosyaad.top
Text_ham_dosyayolu.Top=Label_ham_dosyayolu.top
 
Last edited:
Do you adjust somewhere set ScrollView1.Panel.Height = Panel_ayar_list.Height ?
In the Designer Scripts you should use dip values.
Instead of
Label_user.Top=(Label_id.height+5)*1
use
Label_user.Top=(Label_id.height+5dip)*1
Same for Panel_ayar_list.Height=2000 >>> Panel_ayar_list.Height=2000dip
Are you sure that the height of 2000 is the right one ?
You should set the height to the needed value.
 
Last edited:
Upvote 0
Do adjust somewhere set ScrollView1.Panel.Height = Panel_ayar_list.Height ?
In the Designer Scripts you should use dip values.
Instead of
Label_user.Top=(Label_id.height+5)*1
use
Label_user.Top=(Label_id.height+5dip)*1
Same for Panel_ayar_list.Height=2000 >>> Panel_ayar_list.Height=2000dip
Are you sure that the height of 2000 is the right one ?
You should set the height to the needed value.


Helllo
firstly, Thakn you for helps.

I try your tips. So, İt cant run. Result is same.

I change actvity code for lloking positions. (I looked with showmsg)
screen size =1024 / 496
(in screen) Panel_ayar (.top)=80
(in Panel_ayar) Scroolview1 (.top)=49
(in Scrollview1 Panel_ayar_list (.top)=5
(in panel_ayar_list) Label_ham... (.top)=424 (i see =423 ,i cant see 425)

Code: Copy
Activity.LoadLayout("ana_sayfa")
            Msgbox(100%x&"-"&100%y,"")
            gorev_ag.Initialize
            Panel_ayar_list.RemoveView
            ScrollView1.Panel.Height = Panel_ayar_list.Height
            ScrollView1.Panel.AddView(Panel_ayar_list,5dip,5dip,Panel_ayar_list.Height,Panel_ayar_list.Width)
            Label_ham_dosyaad.Top=Label_ham_dosyaad.Top+3dip ' if you want see label on screen increasing or decrease this value
            Msgbox (Label_ham_dosyaad.Top,"Label Top")
            Msgbox (Panel_ayar_list.Top,"Panel ayar list Top")
            Msgbox (Panel_ayar.Top,"Panel ayar Top")
            Msgbox (ScrollView1.Top,"Scrollview Top")
            Msgbox(100%x&"-"&100%y,"Screen size")
 
Upvote 0
quote="klaus, post: 226305, member: 904"]Do adjust somewhere set ScrollView1.Panel.Height = Panel_ayar_list.Height ?
In the Designer Scripts you should use dip values.
Instead of
Label_user.Top=(Label_id.height+5)*1
use
Label_user.Top=(Label_id.height+5dip)*1
Same for Panel_ayar_list.Height=2000 >>> Panel_ayar_list.Height=2000dip
Are you sure that the height of 2000 is the right one ?
You should set the height to the needed value.[/quote]



I find a things.

I take a pictures when My acvtivty code is running.
Why, I can see on 1.picture , I cant see on 2.picture.

Ithink, it has a problem in lines
Panel_ayar_list.RemoveView
ScrollView1.Panel.Height = Panel_ayar_list.Height
ScrollView1.Panel.AddView(Panel_ayar_list,5dip,5dip,Panel_ayar_list.Height,Panel_ayar_list.Width)


Code: Copy
Activity.LoadLayout("ana_sayfa")
            Msgbox(100%x&"-"&100%y,"") '***** 1. PICTURE
            gorev_ag.Initialize
            Panel_ayar_list.RemoveView
            ScrollView1.Panel.Height = Panel_ayar_list.Height
            ScrollView1.Panel.AddView(Panel_ayar_list,5dip,5dip,Panel_ayar_list.Height,Panel_ayar_list.Width)
            Label_ham_dosyaad.Top=Label_ham_dosyaad.Top+3dip ' if you want see label on screen increasing or decrease this value
            Msgbox (Label_ham_dosyaad.Top,"Label Top") '***** 2. PICTURE
            Msgbox (Panel_ayar_list.Top,"Panel ayar list Top")
            Msgbox (Panel_ayar.Top,"Panel ayar Top")
            Msgbox (ScrollView1.Top,"Scrollview Top")
            Msgbox(100%x&"-"&100%y,"Screen size")

1.picture
pic-1.jpg


2 picrture. I cant see my last 2 label.

pic-2.jpg
 
Last edited:
Upvote 0
Upvote 0
Back
Top