Created
June 21, 2016 05:05
-
-
Save Singhak/ffc0a03797a90a6c6a92b84e8d60d2a3 to your computer and use it in GitHub Desktop.
This is launcher activity where we are showing fragment which holds tabs
This file contains hidden or 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
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
getSupportFragmentManager().beginTransaction().add(R.id.relative_layout, new TabHostFragment()).commit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment