I have been following your examples from tthe github.com on creating
tabApplication

On Jul 31, 12:17 am, RobinDroid <librain.ro...@gmail.com> wrote:
> Can you just give me link or a small demo ?
>
> i have so far come up to 
> this:http://stackoverflow.com/questions/6869474/checkbox-id-set-manually-n...
> i have posted my codes here and came up with his thread here.
>
> I really find difficulty in understanding one question:
>
> public class Inbox extends ActivityGroup {
>         protected static LocalActivityManager mLocalActivityManager;
>
>         @Override
>         public void onCreate(Bundle savedInstanceState) {
>                 super.onCreate(savedInstanceState);
>                 setContentView(R.layout.inbox);
>                 ListView inboxListView = (ListView)
> findViewById(R.id.inboxEmailList);
>                 inboxListView.setEmptyView((TextView) 
> findViewById(R.id.empty));
>                 List<InboxDAO> inboxList = new ArrayList<InboxDAO>();
>                 inboxList.add(new InboxDAO(1, "From 1", "Subject1"));
>                 inboxList.add(new InboxDAO(2, "From 2", "Subject2"));
>                 inboxList.add(new InboxDAO(3, "From 3", "Subject3"));
>
>         }
>
>         @Override
>         public boolean onCreateOptionsMenu(Menu menu) {
>                 MenuInflater menuInflater = getMenuInflater();
>                 menuInflater.inflate(R.menu.inbox_menu, menu);
>                 return super.onPrepareOptionsMenu(menu);
>
>         }
>
>         public void replaceContentView(String id, Intent newIntent) {
>                 View view = getLocalActivityManager().startActivity(id,
>                                 
> newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
>                                 .getDecorView();
>                 this.setContentView(view);
>         }
>
>         @Override
>         public boolean onOptionsItemSelected(MenuItem item) {
>
>                 switch (item.getItemId()) {
>                 case R.id.edit:
>                         replaceContentView("inboxEdit",new 
> Intent(this,InboxEdit.class));
>
>                         break;
>
>                 default:
>                         return super.onOptionsItemSelected(item);
>                 }
>                 return true;
>         }
>
> }
>
> public class InboxEdit extends Activity{
>         @Override
>         public void onCreate(Bundle savedInstanceState){
>                 super.onCreate(savedInstanceState);
>                 TextView textView = new TextView(this);
>                 textView.setText("Hello");
>                 setContentView(textView);
>
>         }
>
> // this menu doesnt show up why?
>         public boolean onPrepareOptionsMenu(Menu menu) {
>                 menu.clear();
>                 MenuInflater inflater = getMenuInflater();
>                 inflater.inflate(R.menu.inbox_menu_edit, menu);
>                 return true;
>         }
>
> }
>
> On Jul 31, 12:10 am, Mark Murphy <mmur...@commonsware.com> wrote:
>
>
>
>
>
>
>
> > On Sat, Jul 30, 2011 at 3:07 PM, RobinDroid <librain.ro...@gmail.com> wrote:
> > > I wish to have tabs for my application.
> > > If i dont use ActivityGroup, how can i have multiples view in the same
> > > tabs.
>
> > The same way you have "multiples view" anywhere else: put them in a
> > layout manager (LinearLayout, RelativeLayout, TableLayout, etc.).
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android 3.1 Programming Books:http://commonsware.com/books

-- 
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

Reply via email to