activitygroup

[Android]使用ActivityGroup来切换Activity和Layout

六月ゝ 毕业季﹏ 提交于 2019-12-01 07:19:00
前言    在一个主界面中做Activity切换一般都会用TabActivity,使用方便,Activity互相之间相对独立,但是可定制性不强,而且修改起来 很麻烦。当然也可以把layout分开,把逻辑代码全写在主界面的逻辑代码中,但是很明显可维护性相当差,这里通过ActivityGroup来解决这个 问题。 正文   一、效果图          要求点击底部不同图片按钮切换不同的Activity,并在中间显示Activity对应的ContentView。   二、 实现代码 layout.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="fill_parent"> <LinearLayout android:gravity="center_horizontal" android:background="@drawable/myinfor2" android:layout_width="fill_parent" android

Android 1.6 & Fragment & Tabhost

一曲冷凌霜 提交于 2019-11-30 01:57:02
I'm working on upgrading an Android application (1.6 compatibility) which uses a TabHost to show 3 different tabs with nested activities. At the time I used the ActivityGroup trick to show nested activities in a tab but I'm very unhappy with this method since it's a real pain to handle some features. I heard about the Fragments API compatibility package for 1.6 and a Fragment looks perfect for what I want to do (show nested views / features within a tab with transition effects and stuff) but I can't make it work with a TabHost (It was meant to work with an Action Bar but it's not available in

Android: ActivityGroup tutorial with example [closed]

天涯浪子 提交于 2019-11-28 02:09:30
问题 Can u please suggest a good tutorial (with example) for ActivityGroup. I am completely new about this topic. Thank you 回答1: Are you trying to extend ActivityGroup in your project with specific requirements? Here is a tutorial with a TabActivity and ActivityGroup. 来源: https://stackoverflow.com/questions/4601475/android-activitygroup-tutorial-with-example

startActivityForResult from ActivityGroup?

不羁的心 提交于 2019-11-27 04:41:07
I can't seem to get ANY result when trying to start an activity from an activitygroup. I've put an onactivityresult in the activity and activitygroup? Specifically I'm trying to let the user choose a photo/video from the Intent.ACTION_GET_CONTENT, but I never get anything back? What am I doing wrong? Here is how I call the code: Intent pickMedia = new Intent(Intent.ACTION_GET_CONTENT); pickMedia.setType("video/*"); startActivityForResult(pickMedia,12345); Any ideas? Steven Pena I've had a similar issue. I had an ActivityGroup managing sub-activities. One of the sub-activities called a similar

ActivityGroup Example

喜你入骨 提交于 2019-11-27 02:02:46
Can anybody please give me an example of ActivityGroup. I have heard that by making use of ActivityGroup we can change the nested activities maintaining the TabHost as it is. Any help would be greatly appreciated. Thanks, david brown 100rabh david here is a an example I found useful: http://ericharlow.blogspot.com/2010/09/experience-multiple-android-activities.html 来源: https://stackoverflow.com/questions/4568468/activitygroup-example

ActivityGroup Example

安稳与你 提交于 2019-11-26 17:28:55
问题 Can anybody please give me an example of ActivityGroup. I have heard that by making use of ActivityGroup we can change the nested activities maintaining the TabHost as it is. Any help would be greatly appreciated. Thanks, david brown 回答1: david here is a an example I found useful: http://ericharlow.blogspot.com/2010/09/experience-multiple-android-activities.html 来源: https://stackoverflow.com/questions/4568468/activitygroup-example