« first day (2 days earlier)      last day (4938 days later) » 

6:43 AM
hi to all
any one there
 
 
2 hours later…
8:41 AM
hai all
 
 
3 hours later…
11:57 AM
hello guys
 
12:09 PM
hai sajjoo
 
hi Tilsan
 
pls see this url
0
Q: Problem in Supporting Multiple Screens in Android?

Tilsan The FighterHai Friends, I have developed an application which en-composes list views and posted that .apk file in my htc device, the design and alignment everything works fine,but the problem When i am testing in various devices such as Morotolo Droid,Nexus Devices the alignment of Listviews g...

help me if u know answer for this sajjoo
 
ok let me see
 
ok sajjoo
 
the other devices you are testing your app has the same width and height?
 
12:16 PM
no sajjoo
other devices are different width and height
 
hmmm then you should get width and height of device on run time
Display display = getWindowManager().getDefaultDisplay();
screenWidth = display.getWidth();
screenHeight = display.getHeight();
and the make your layout accordingly
if you can code your layout programatically instead of using xml
it,d be best practice
 
oh thanx sajjo
 
your are always welcome
 
pls go through now
sajjo
i have added the screen shots of the application
in nexus device
and normal emulator
screen output
 
yep i have seen it. use the screen width and height on run time
and make ur layout dynamic to adjust with your device,s layout
 
12:24 PM
did u saw the screen shots , it is possible to run any android devices
such as Morotolo Droid or
Nexus or LG
or samsung ,
device how i can code to achieve this pblm
 
by making your layout dynamic you wont have any problem in whatever device you use
first of all
in on create method get the screen width and height of the device
and then code your layout accordingly with the width and height you get on run time
now you have to put effort on how to make your layout code dynamic and efficient
i just could give you the idea
 
so u r telling i have to create main.xml for each & every device
is it right
 
i hope its gonna work
nope
i am saying do not use XML
write your layout code programatically
without using XML
 
then how can i set the ListView size and scroll view size
 
Layout Params gonna help you with that
 
12:28 PM
so ask me to set that Listview lv= findViewById(R.id.lv);
lv.setHeight(400);
i am correct sajjo
 
for the hints
look at this code
this is a text view which i have created programatically
now check APi demos to create List programatically
lblGridRef = new TextView(getApplicationContext());
lblGridRef.setText("0000 0000");
params = new RelativeLayout.LayoutParams(160, 30);
params.leftMargin = 0;
layout.addView(lblGridRef, params);
 
lblGridRef = new TextView(getApplicationContext());
lblGridRef.setText("0000 0000");
params = new RelativeLayout.LayoutParams(160, 30);
params.leftMargin = 0;
layout.addView(lblGridRef, params);
 
ok sajjoo thanx for ur guidence, u gudied in a right path
thanx
sajjoo
 
ur welcome
my pleasure
do vote for me if you find my solution use ful
:D
 
12:32 PM
Sure Sajjoo, i will always appericate right answers
 
Hi,how to pass an object to another class?
how to pass an object to sub activity. Do anyone know ??
 
that may do better phrased as a question on SO. And please don't flag things for moderator attention unless you mean it ;p
 
for passing the object use putExtra() method
Intent i = new Intent(SimpleList.this, Simple_list.class);
i.putExtra("array", pProvince);
startActivity(i);
 
MGS
1:01 PM
hi..there
 
tell me MGS
we are Here
 
MGS
Do u have any idea to set progrss bar listview images,
 
Sorry, no Idea MGS , i hope other frnds may answer u
 
1:46 PM
hai frnds anybody here
how to call updateGUIState();
 

« first day (2 days earlier)      last day (4938 days later) »