Discussion Forums  >  Uncategorized

Replies: 3    Views: 444

Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
01/07/11 10:33 AM (15 years ago)

Layout Question

I hope what I ask makes since. Looking in the Eclipse res/layout I see all the layouts for the app. Where in the code do you decide what is the dafault layout? Such as I think act_home is the default. Trying to see if I can add some 'tabs' to the main area or through all the screens.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/07/11 11:18 AM (15 years ago)
Yeah, good question. I don't have the project in front me but it goes kinda like this.... In a tabbed interface, each tab would a home screen - an Activity. I've made several tabbed apps in the past for clients and it's not too tough. But, converting a buzztouch v.1.4 app to this could get tricky. The idea would be to first get the default screen or whatever Android calls it (it's listed in the Manifest) to load an Activity that built the tabs, each one with a sub-activity. a) Figure out how tabs work in Android http://developer.android.com/resources/tutorials/views/hello-tabwidget.html b) Get the app to use the tabbed container as the default Activity c) Make icons, text, etc for each tab Hope this help. Yes, v1.5 supports tabs. But, we are only now approaching the public release of the iOS version, Android wayyyyy behind ;-)
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
01/07/11 11:37 AM (15 years ago)
I have build a seperate project that works great with tabs, For some reason I was hoping it have it populate through the app it would be as eas as adding the 'tabwidget' xml code in the global xml file..(all the other stuff as well). At this point crashing. I 'll keep at it. O how I wish Andoid 1.5 release was way ahead of scheduled. It's all fun.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/07/11 11:50 AM (15 years ago)
No doubt on the schedule thing. For sure, tons and tons of the complicated details associated with the new release that we have already engineered, programmed, worked out will NOT need to be re-worked for Android so it should be much easier to roll it that this one. You can't image how much different, better, organized, efficient this new code-base is. Super exiciting.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.