Hi,

I have created multiple UI layout files and placed them in res/layout
folder. The layouts designed are similar to a forms. Each layout has
some buttons to transition to an alternate layout. Let me elaborate
how my files look like:

main.xml
linearlayout with button b1

s1.xml
linearlayout with button b2

s2.xml
linearlayout with button b3

s3.xml

In the main Activity, for OnClickListener of b1, i modify to

{
runOnUiThread(new Runnable()
{
public void run()
{
// with some processing
setContentView(R.layout.s1);
}
});
}

for OnClickListener of b2, i modify to
{
runOnUiThread(new Runnable()
{
public void run()
{
// with some processing
setContentView(R.layout.s2);
}
});
}

for OnClickListener of b3, i modify to
{
runOnUiThread(new Runnable()
{
public void run()
{
// with some processing
setContentView(R.layout.s3);
}});
}

I get a force close when I try to perform the same. Could you please
point what mistake I am making? Any suggestions of a better UI design?

Cheers
Bobby
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to