Thanks! I will try it out tomorrow!
On 20 abr, 11:17, Zsolt Vasvari <[email protected]> wrote: > A TabHost children are shown/hidden as you flip tabs. If you are > building an iPhone clone app with a button bar on the bottom, just > simply put below the TabHost. > > My layout that uses this pattern looks like this. I have a TabHost > and an always visible status bar. > > <LinearLayout android:orientation="vertical"> > > <TabHost android:id="@android:id/tabhost" > android:layout_width="match_parent" > android:layout_height="0px" > android:layout_weight="1"> > > <LinearLayout android:layout_width="match_parent" > android:layout_height="match_parent" > android:orientation="vertical"> > > <TabWidget android:id="@android:id/tabs" > android:layout_width="match_parent" > android:layout_height="wrap_content"/> > > <FrameLayout android:id="@android:id/tabcontent" > > android:layout_width="match_parent" > android:layout_height="0px" > android:layout_weight="1"> > > <FrameLayout android:id="@+id/page1" > > android:layout_width="match_parent" > > android:layout_height="match_parent"> > > </FrameLayout> > > <FrameLayout android:id="@+id/page2" > > android:layout_width="match_parent" > > android:layout_height="match_parent"> > > </FrameLayout> > > <FrameLayout android:id="@+id/page3" > > android:layout_width="match_parent" > > android:layout_height="match_parent"> > > </FrameLayout> > </FrameLayout> > </LinearLayout> > </TabHost> > > <FrameLayout android:id="@+id/status_bar" > </FrameLayout> > </LinearLayout> > > On Apr 20, 4:42 pm, Sergio Luceno <[email protected]> wrote: > > > > > > > > > mmmmm.... > > > I had the activity builded with a tabhost, but I wanted to have the > > menu buttons at the bottoms always visible. So i started to adapt the > > app for using ActivityGroups. Since i started i have been solving > > problems... > > > Maybe you are right, and it's better to not use the activity group. > > > Let's say i'm not using the activity group, but the application has a > > must. The bottom menú has to stay visible always... > > > What can I do for it? > > > I was thinking to have a view with the buttons and merge the layout in > > every view of the application, to have the look and feel that you're > > using activity groups... > > > Or there is a better solution for this? > > > On Apr 20, 9:34 am, Zsolt Vasvari <[email protected]> wrote: > > > > There are many annoying bugs with ActivityGroups. Your best bet is to > > > bite the bullet and rewrite your app so that it uses a single Activity > > > with a TabHost and View's for the pages. > > > > On Apr 20, 3:05 pm, Sergio Luceno <[email protected]> wrote: > > > > > Hi everybody! > > > > > I have a tabhost on my application and I'm using an Activity group > > > > which handles 3 activities inside. > > > > > Example: > > > > ActivityGroup Handles > > > > A -> B -> C > > > > > When i start this activities i'm using the flag > > > > Intent.FLAG_ACTIVITY_CLEAR_TOP. > > > > > My problem is when the user goes from A->B->C and press back button, > > > > my B activity shows up, but it does not resume or reload or refresh. > > > > It has the same state as before. > > > > > For example if the user goes again to C, C is refreshed, but when from > > > > C goes back.... B is not. > > > > > On B I have implementend methods such as onResume, onStart, > > > > onReestart and debugging it the main thread never goes in there... > > > > > And i need to refresh B because C can make changes that change the > > > > content displayed on B. > > > > > I have googleled this for 3 days and I couldn't found a solution..- > > > > Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

