tabactivity

Controlling Tab colour-state / size in a TabActivity?

独自空忆成欢 提交于 2019-11-30 07:15:08
问题 Ok, this is driving me nuts - I've searched all of the references and examples I can find and I still seem to be missing something really obvious. These are the tabs for a 7-day TV Guide (not normally with the red arrow, obviously :) )... What I need to know is what is the object (View or Drawable I assume) that makes up the main body/background of a Tab itself? (as indicated by the red arrow) and how do I access it or have it automatically change its state colour to a list of my choice? Also

OnActivityResult is not working in TabActivityGroup?

蓝咒 提交于 2019-11-29 16:45:00
I am using Tab Activity as a main Activity in which it has 4 tabs. One tab is Activity Group which has three buttons. Each button is one activity. I am using camera in one of those activity. I know its working because i have checked in the memory card the image get saved, but it doesn't calling the Onactivityresult() method. This is to display the ContentView public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); View viewToLoad = LayoutInflater.from(this.getParent()).inflate(R.layout.enter_expenses, null); this.setContentView(viewToLoad); This code is used to

Controlling Tab colour-state / size in a TabActivity?

萝らか妹 提交于 2019-11-29 02:31:07
Ok, this is driving me nuts - I've searched all of the references and examples I can find and I still seem to be missing something really obvious. These are the tabs for a 7-day TV Guide (not normally with the red arrow, obviously :) )... What I need to know is what is the object (View or Drawable I assume) that makes up the main body/background of a Tab itself? (as indicated by the red arrow) and how do I access it or have it automatically change its state colour to a list of my choice? Also, how can I get the state colour of the indicator TextView to follow suit? Example: In the capture

OnActivityResult is not working in TabActivityGroup?

心已入冬 提交于 2019-11-28 11:52:46
问题 I am using Tab Activity as a main Activity in which it has 4 tabs. One tab is Activity Group which has three buttons. Each button is one activity. I am using camera in one of those activity. I know its working because i have checked in the memory card the image get saved, but it doesn't calling the Onactivityresult() method. This is to display the ContentView public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); View viewToLoad = LayoutInflater.from(this

Android. How to change Activity within a Tab

不打扰是莪最后的温柔 提交于 2019-11-28 03:43:13
Following situation: I have TabActivity with e.g. three tabs, TabA, TabB, TabC. There are a button in activity (Act_C_1) of TabC. So if the user clicks on that button, another activity (Act_C_2) should occur in TabC. I thank you in advance for any suggestions / or ideas. Mur UPD: Here is my code TabActivity with three Activities: public class TabScreen extends TabActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab_menu); TabHost tabHost = getTabHost(); // The activity TabHost TabHost.TabSpec spec; // Resusable TabSpec for

Android UI TabActivity issue

Deadly 提交于 2019-11-27 23:21:16
I am trying to implement the following background for the application... For the background image(application background) ... i am setting the image in setContentView(layout)... by adding this line, i am getting a runtime exception... if i set this background in the subactivities..i wont get the background to fill the full application background.. any idea whats the alternative? public class HMITabActivity extends TabActivity{ private TabHost tabHost = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.background);

Android选项卡实现之TabHost/TabSpec/TabWidget

↘锁芯ラ 提交于 2019-11-27 13:04:12
Tab是什么就不用再用我来描述了。android的ui开发中,承载Tab的容器就是TabHost,每一个Tab对应一个Activity,每个Activity均会有自己的布局。 1.继承TabActivity 2.布局文件中使用tabHost,tabWedgit和framework 3.在activity中通过源码添加tab选项卡,每个选项卡中显示指定activity中的内容。可以通过代码控制界面的显示效果。 下面还是通过一个代码示例来说明下吧: (1)创建一个新的工程TestTab吧 (2)将生成的MainActivity的继承类改成TabActivity,如果没自动生成mainactivity,那就自己手动创建一个吧: public class MainActivity extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); } } (3)创建main的布局文件 注意:TabHost ,TabWidget ,FrameLayout的ID必须分别为 @android :id/tabhost, @android :id/tabs, @android :id/tabcontent

Android Facebook api 3.0 error: Cannot call LoginActivity with a null calling package

我只是一个虾纸丫 提交于 2019-11-27 08:18:53
I am trying to integrate an android app with the the new facebook 3.0 api, but I get this exception: java.lang.RuntimeException: Unable to resume activity {dk.imu.konnekt/com.facebook.LoginActivity}: com.facebook.FacebookException: Cannot call LoginActivity with a null calling package. This can occur if the launchMode of the caller is singleInstance. I have search for this error but no one else seems to have had any troble with it. I guess it is because I am using a TabHost and TabsGroupActivities for each tab. But I have no clue on how to solve it. I have added the relevant code here: public

Android UI TabActivity issue

会有一股神秘感。 提交于 2019-11-26 21:26:23
问题 I am trying to implement the following background for the application... For the background image(application background) ... i am setting the image in setContentView(layout)... by adding this line, i am getting a runtime exception... if i set this background in the subactivities..i wont get the background to fill the full application background.. any idea whats the alternative? public class HMITabActivity extends TabActivity{ private TabHost tabHost = null; @Override protected void onCreate