Conditioned layout

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Conditioned layout

Postby Debapriya Ray » Fri Jan 09, 2009 7:11 am

Suppose I have a layout file in xml.In this I have 3 textviews .I want each to display for one condition i.e. one at a time only.Can I do that in xml ? Which view should I change to enable it if not textview.From the java file I want this check to happen and accordinly the correct message should show .Please give me a solution for this.
Debapriya Ray
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Jan 09, 2009 6:51 am
Location: India

Top

Postby MrSnowflake » Fri Jan 09, 2009 12:05 pm

You can't do such conditions, and why would you? You just can change the text in the TextView to reflect the 3 different versions.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Emmanuel7 » Sat Jan 10, 2009 3:44 am

Or you can also change visibility for your views to show / hide them...
Emmanuel7
Senior Developer
Senior Developer
 
Posts: 164
Joined: Fri Dec 12, 2008 2:17 am
Location: Paris

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 11 guests