Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1b8434
commit 1de2f33
Showing
29 changed files
with
117 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry kind="output" path="bin/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
# project structure. | ||
|
||
# Project target. | ||
target=android-3 | ||
target=android-7 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<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" > | ||
|
||
<TabWidget | ||
android:id="@android:id/tabs" | ||
android:layout_width="fill_parent" | ||
android:layout_height="48dp" | ||
android:background="#000" | ||
android:gravity="center_horizontal" /> | ||
|
||
<FrameLayout | ||
android:id="@android:id/tabcontent" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:fadeScrollbars="false" | ||
android:fadingEdge="none" | ||
android:scrollbars="@null" > | ||
</FrameLayout> | ||
|
||
</TabHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="hello">Hello World, TutorialTabsActivity!</string> | ||
<string name="hello">Hello World, TabTutorialActivity!</string> | ||
<string name="app_name">android-tabs</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.nitindhar.android.tab; | ||
|
||
import android.app.TabActivity; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.widget.TabHost; | ||
import android.widget.TextView; | ||
|
||
public class TabTutorialActivity extends TabActivity { | ||
|
||
private static TabHost tabHost; | ||
private static TabHost.TabSpec spec; | ||
private static Intent intent; | ||
private static LayoutInflater inflater; | ||
|
||
private View tab; | ||
private TextView label; | ||
private TextView divider; | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.main); | ||
|
||
inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); | ||
tabHost = getTabHost(); | ||
|
||
tab = inflater.inflate(R.layout.tab, getTabWidget(), false); | ||
label = (TextView) tab.findViewById(R.id.tabLabel); | ||
label.setText("HOME"); | ||
divider = (TextView) tab.findViewById(R.id.tabSelectedDivider); | ||
divider.setVisibility(View.VISIBLE); | ||
intent = new Intent(TabTutorialActivity.this, TabContentActivity.class); | ||
spec = tabHost.newTabSpec("home").setIndicator(tab).setContent(intent); | ||
tabHost.addTab(spec); | ||
|
||
tab = inflater.inflate(R.layout.tab, getTabWidget(), false); | ||
label = (TextView) tab.findViewById(R.id.tabLabel); | ||
label.setText("HOME"); | ||
intent = new Intent(TabTutorialActivity.this, TabContentActivity.class); | ||
spec = tabHost.newTabSpec("home").setIndicator(tab).setContent(intent); | ||
tabHost.addTab(spec); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.