android-tabhost

Android - iphone style tabhost [closed]

倾然丶 夕夏残阳落幕 提交于 2019-11-26 03:42:48
Is it possible to style the Android Tabhost to look like that of the iPhone? If not, is there any open source code that can show how to create Bottom Tabs for Android ? (source: appshopper.com ) I would suggest you guys to not change the default look and feel of the tabs, because users on android devices have their own user experience, and you will negate that past experience, so don't force them to learn new tabs experience (because users on mobile are so lazy to learn new things, usually they rely on their past experience.) See Pure Android for more. However if you want to go ahead, I've

Android - iphone style tabhost [closed]

可紊 提交于 2019-11-26 03:25:01
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Is it possible to style the Android Tabhost to look like that of the iPhone? If not, is there any open source code that can show how

Dynamically changing the fragments inside a fragment tab host?

让人想犯罪 __ 提交于 2019-11-26 00:54:47
问题 I have one main activity which is fragment activity here I am setting two tabs with two fragments A and B in the B fragment I have one button when the user click on the button I want to change fragment B to fragment C. But the tabs above are visible... How I can achieve replacing fragments inside tabs? Any solution are greatly appreciated. 回答1: Basic concept- We can achieve this by creating a container. Each tab will be assigned with a specific container. Now when we need a new fragment then

How to return a result (startActivityForResult) from a TabHost Activity?

大城市里の小女人 提交于 2019-11-25 23:36:21
问题 I have 3 classes in my example: Class A, the main activity. Class A calls a startActivityForResult: Intent intent = new Intent(this, ClassB.class); startActivityForResult(intent, \"STRING\"); Class B, this class is a TabActivity: Intent intent = new Intent(this, ClassC.class); tabHost.addTab... Class C, this class is a regular Activity: Intent intent = this.getIntent(); intent.putExtra(\"SOMETHING\", \"EXTRAS\"); this.setResult(RESULT_OK, intent); finish(); onActivityResult is called in Class

Dynamically changing the fragments inside a fragment tab host?

不羁岁月 提交于 2019-11-25 19:20:38
I have one main activity which is fragment activity here I am setting two tabs with two fragments A and B in the B fragment I have one button when the user click on the button I want to change fragment B to fragment C. But the tabs above are visible... How I can achieve replacing fragments inside tabs? Any solution are greatly appreciated. AndroidHacker Basic concept- We can achieve this by creating a container. Each tab will be assigned with a specific container. Now when we need a new fragment then we will replace same using this container. Kindly follow undermentioned code step by step to