[android-developers] Re: How can I delete the black shadow above framelayout in the tabwidget
OK I solved the problem. The following code fix that problem. TabHost android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent android:background=@android:color/ transparent RelativeLayout android:layout_width=fill_parent android:layout_height=fill_parent android:background=@android:color/ transparent FrameLayout android:id=@android:id/tabcontent android:background=@android:color/transparent android:layout_width=fill_parent android:layout_height=fill_parent android:layout_alignParentTop=true android:layout_above=@android:id/ tabs android:paddingBottom=10dp android:paddingRight=10dp android:paddingTop=20dp android:paddingLeft=10dp / TabWidget android:id=@android:id/tabs android:background=@android:color/transparent android:visibility=visible android:clickable=false android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentBottom=true / /RelativeLayout /TabHost I put the tabs on the bottom and use a relative Layout thats all. On 8 Sep., 12:30, DaPhilz daph...@googlemail.com wrote: Hello, I have a problem with my framelayout.I created a tabwidget with a tabgroup the tabgroup setup a shadow and a black line on top of teh framelayout. How can I disable this shadow? I tried to setup the tabwidget padding, transparent, weight and height but nothing worked. THanks for your help. It will work if i remove the activitygroup and show just one activity in a tab. But the use case is to show to activitys in on tab. Please help me out. Thanks a lot Philipp -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I delete the black shadow above framelayout in the tabwidget
Hello, I have a problem with my framelayout.I created a tabwidget with a tabgroup the tabgroup setup a shadow and a black line on top of teh framelayout. How can I disable this shadow? I tried to setup the tabwidget padding, transparent, weight and height but nothing worked. THanks for your help. It will work if i remove the activitygroup and show just one activity in a tab. But the use case is to show to activitys in on tab. Please help me out. Thanks a lot Philipp -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I delete the black shadow above framelayout in the tabwidget
Hello everyone, I have a problem with the tab widget. There is a shadow above the framelayout that's part of the tabwidget. How can I modify or delete this shadow. My layout looks like that TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent android:background=@color/ bright_blue LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dp TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content android:visibility=invisible android:clickable=false / TextView android:id=@+id/template_description android:layout_marginBottom=10dp android:textColor=@color/ dark_grey android:layout_width=fill_parent android:layout_height=wrap_content/ FrameLayout android:id=@android:id/tabcontent android:padding=0dp android:layout_width=fill_parent android:layout_height=fill_parent android:background=@color/bright_blue android:tabStripEnabled=false / /LinearLayout /TabHost I tried a couple of thinks like deleting the padding, changing the background, the parameter android:tabStripEnabled=false and setting up the tabhost tabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 0; tabHost.getTabWidget().getChildAt(0).getLayoutParams().width = 0; tabHost.getTabWidget().getChildAt(0).setVisibility(TabHost.INVISIBLE); tabHost.getTabWidget().getChildAt(0).setHorizontalFadingEdgeEnabled(false); tabHost.getTabWidget().getChildAt(0).setPadding(0, 0, 0, 0); tabHost.getTabWidget().getChildAt(0).setBackgroundColor(R.color.bright_blue); but nothing worked at all. Can someone help me out. Thats would be great. I invest two days in this stuff. Thanks a lot Phil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can I delete the black shadow above framelayout in the tabwidget
It just happend when I use a tabactivity group! On 7 Sep., 11:36, DaPhilz daph...@googlemail.com wrote: Hello everyone, I have a problem with the tab widget. There is a shadow above the framelayout that's part of the tabwidget. How can I modify or delete this shadow. My layout looks like that TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent android:background=@color/ bright_blue LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dp TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content android:visibility=invisible android:clickable=false / TextView android:id=@+id/template_description android:layout_marginBottom=10dp android:textColor=@color/ dark_grey android:layout_width=fill_parent android:layout_height=wrap_content/ FrameLayout android:id=@android:id/tabcontent android:padding=0dp android:layout_width=fill_parent android:layout_height=fill_parent android:background=@color/bright_blue android:tabStripEnabled=false / /LinearLayout /TabHost I tried a couple of thinks like deleting the padding, changing the background, the parameter android:tabStripEnabled=false and setting up the tabhost tabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 0; tabHost.getTabWidget().getChildAt(0).getLayoutParams().width = 0; tabHost.getTabWidget().getChildAt(0).setVisibility(TabHost.INVISIBLE); tabHost.getTabWidget().getChildAt(0).setHorizontalFadingEdgeEnabled(false); tabHost.getTabWidget().getChildAt(0).setPadding(0, 0, 0, 0); tabHost.getTabWidget().getChildAt(0).setBackgroundColor(R.color.bright_blue); but nothing worked at all. Can someone help me out. Thats would be great. I invest two days in this stuff. Thanks a lot Phil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to change an activity in a tab
Hello everybody, I have two tabs each with an activity. Now I implemented an TouchEvent where I will change the activity of one tab. How can I do that. I heard about ActivityGroup and I tried it but If I call that ActivityGroup teh activity switch to fullscreen and the tabs are gone. Could anyone please help me out. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to change an activity in a tab
Hi, I solved the problem. The answer is that first you have to create an class extends from ActivityGroup and implements the OnTouchListener. After you did that you can switch b/w differnet screens in one tab The code look like that: class TabActivityGroup extends ActivityGroup implements OnTouchListener { @Override public boolean onTouchEvent(MotionEvent event) { super.onTouchEvent(event); //create a new intent and call the methode replaceContentView(String id, Intent newIntent), //for example Intent intent = new Intent().setClass(this, myclass.class) // intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); replaceContentView(String id, Intent newIntent) return true; } public void replaceContentView(String id, Intent newIntent) { View view = getLocalActivityManager().startActivity(id, newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView(); this.setContentView(view); } } the Tab class look like this public class TabActivity extends TabActivity { Intent intent = new Intent().setClass(this, TabActivityGroup.class); intent.putExtra(Content, 1); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); tabHost.addTab(tabHost.newTabSpec(Tab1) .setIndicator(Tab1).setContent(intent)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Howto integrate 3rd party app to tabhost
Hello I using android 2.2 and I want to integrate a third party application into the tabulator. Is that possible and how can I do that? The third party app that I use called chartdroid. This is an intent based app and if I post the intent through my host I get an securityexception. ERROR/AndroidRuntime(4442): Caused by: java.lang.SecurityException: Requesting code from com.googlecode.chartdroid (with uid 10033) to be run in process com.chartDroid (with uid 10032) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en