开发者

how to place one activity on another activity [closed]

开发者 https://www.devze.com 2023-01-11 05:51 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. 开发者_StackOverflow

friend's, i have an task to set horizontal swipe tabs below the header,how can i set an activity on another activity.


You need a layout which is the zone where you want to put your activity. Take a look at this link

TheLayout.removeAllViews();
View view = getLocalActivityManager().startActivity(id, intent).getDecorView();
TheLayout.addView(view, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));


try this Is there a way to make Android tabs slide?


checkout TabActivity and TabHost in android developer site http://developer.android.com/resources/tutorials/views/hello-tabwidget.html this might help you

0

精彩评论

暂无评论...
验证码 换一张
取 消