X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Funical%2FAddEventActivity.java;h=caa901557cff34d95600f7949f279d461020c4c8;hb=724f9857beb10b810e8cad7ca513d74641e60f6c;hp=0fc26ab477c6eeb54e93d37032fe3474b86f1918;hpb=6d7e08bf032626962f50c8d9db6c1c5b3d978271;p=unical.git diff --git a/src/ro/ieval/unical/AddEventActivity.java b/src/ro/ieval/unical/AddEventActivity.java index 0fc26ab..caa9015 100644 --- a/src/ro/ieval/unical/AddEventActivity.java +++ b/src/ro/ieval/unical/AddEventActivity.java @@ -2,15 +2,10 @@ package ro.ieval.unical; import android.app.ActionBar; import android.app.Activity; import android.app.Fragment; -import android.app.FragmentTransaction; -import android.app.ActionBar.Tab; -import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; -import android.widget.TabHost; -import android.widget.TabHost.TabSpec; public final class AddEventActivity extends Activity { @Override @@ -18,15 +13,15 @@ public final class AddEventActivity extends Activity { super.onCreate(savedInstanceState); setContentView(R.layout.add_event); setTitle(R.string.addeventtitle); - ActionBar actionBar = getActionBar(); + final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); - ActionBar.Tab t1 = actionBar.newTab().setText(this.getString(R.string.addevtab1)); - ActionBar.Tab t2 = actionBar.newTab().setText(this.getString(R.string.addevtab2)); - ActionBar.Tab t3 = actionBar.newTab().setText(this.getString(R.string.addevtab3)); + final ActionBar.Tab t1 = actionBar.newTab().setText(this.getString(R.string.addevtab1)); + final ActionBar.Tab t2 = actionBar.newTab().setText(this.getString(R.string.addevtab2)); + final ActionBar.Tab t3 = actionBar.newTab().setText(this.getString(R.string.addevtab3)); - Fragment f1 = new AddEventBasicTabFragment(); - Fragment f2 = new AddEventDetailsTabFragment(); - Fragment f3 = new AddEventOtherTabFragment(); + final Fragment f1 = new TrivialFragment(R.layout.add_event_basic_tab); + final Fragment f2 = new TrivialFragment(R.layout.add_event_details_tab); + final Fragment f3 = new TrivialFragment(R.layout.add_event_other_tab); t1.setTabListener(new AddEventTabListener(f1)); t2.setTabListener(new AddEventTabListener(f2));