How to create tabs in an android application?

0
            <TableRow>
                <TextView android:text="Tipo:"/>
                <RadioGroup android:id="@+id/tipos">
                    <RadioButton android:id="@+id/rodizio"
                        android:text="Rodízio"/>
                    <RadioButton android:id="@+id/fast_food"
                        android:text="Fast Food"/>
                    <RadioButton android:id="@+id/a_domicilio"
                        android:text="A Domicílio"/>
                </RadioGroup>
            </TableRow>
            <Button android:id="@+id/salvar"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Salvar"/>
        </TableLayout>
    </FrameLayout>
</LinearLayout>

    
asked by anonymous 10.05.2014 / 16:37

1 answer

1

Do not use table rows, use prior fragments with tabs:

  

Creating Swipe Views with Tabs

     

Swipe views provide lateral navigation between sibling screens such as tabs with horizontal finger gesture (the pattern sometimes known as horizontal paging). This lesson teaches you how to create a tab layout with swipe views for switching between tabs, or how to show a title strip instead of tabs.

    
14.05.2014 / 09:01