带活动的标签布局 [英] Tab layout with Activities

查看:53
本文介绍了带活动的标签布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个带有两个标签的标签布局。每个选项卡都应该包含Activity1和Activity2之类的活动。 Activity2应该有一个按钮。当我单击Activity2中的按钮时,它将转到另一个新活动Activity3。现在我在Activity3中,当我按下设备的按钮时,它应该来到Activity2以及标签布局。



如何做到这一点?请帮帮我。

I need to create a tab layout with two tabs . Each tab should an activity like Activity1 and Activity2. Activity2 Should Have a button . When I click the button in Activity2, it goes to another new activity Activity3. Now I am in Activity3 and when I press back button of device ,it should come to Activity2 along with tab layout.

How to do this? Please help me.

推荐答案

这个链接将指导你在android中实现标签。



干杯,

Sudhakar
This link will guide you to implement tabs in android.

Cheers,
Sudhakar


这篇关于带活动的标签布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆