Skip to content
Luca Zanini

Luca Zanini

Quod erat demonstrandum

  • Home
  • Categories
    • Java
    • Lotus
    • Android
    • Photos
    • Other stuff
  • Instagram
  • Memories
    • Father
      • The Alzheimer’s disease
    • Mother
  • About
    • Me
    • Portfolio
    • Site
  • Language: English
    • English English
    • Italiano Italiano

Tag: actionbar

Posted on December 19, 2013

How to implement Up Navigation

In this example you can see how to implement the Up Navigation, i.e. the option to go back to a previous activity using the button in the upper left of the action bar.
The previous activity can be a fixed activity or an activity determined at runtime.
Continue reading “How to implement Up Navigation”

Posted on November 17, 2013

Replacing a Fragment in a Tab Layout with an ActionBar

In the post Tab Layout in Android with ActionBar and Fragment the fragments can’t be replaced later, in this post I write the changes in order to replace the first fragment of the first tab with a third fragment using a button at runtime.
Continue reading “Replacing a Fragment in a Tab Layout with an ActionBar”

Posted on June 3, 2013June 3, 2013

ActionBar, Fragment and screen rotation

In the post Tab Layout in Android with ActionBar and Fragment as dnoray wrote in his comment, there is a problem: when you rotate the screen (ctrl + F11 in the emulator) there is an overlap of the two fragments as seen in the figure.

fragment issue

For a further discussion on this topic you can read this.
Continue reading “ActionBar, Fragment and screen rotation”

Posted on February 22, 2013April 29, 2013

How to save the state of a WebView inside a Fragment of an Action Bar

The idea for this post came to me after reading the comment of Esthon Wood: “do you have any idea on how to save the state of the WebView? I mean, the webview refreshes everytime I tap on the tab.” in the post Tab Layout in Android with ActionBar and Fragment. Continue reading “How to save the state of a WebView inside a Fragment of an Action Bar”

Posted on February 14, 2013April 18, 2013

How to replace a Fragment in an ActionBar in mode NAVIGATION_MODE_TABS

In the post Tab Layout in Android with ActionBar and Fragment I wrote an example about tabs in an action bar where each label open a fragment that you can not change at runtime.
In this post I explain how to replace a fragment with an other using a button. Continue reading “How to replace a Fragment in an ActionBar in mode NAVIGATION_MODE_TABS”

Posted on May 16, 2012October 1, 2013

Tab Layout in Android with ActionBar and Fragment

In a previous post I wrote an example of Layout Tab using a TabActivity class that it is deprecated since version 3.0 Honeycomb of Android.
In this post I develop the same interface using ActionBar and Fragment, and I tried wherever possible to limit the changes to the files *.xml. Continue reading “Tab Layout in Android with ActionBar and Fragment”

  • See my app in Google Play Store

Follow Me

Tags

  • access
  • actionbar
  • activity
  • address book
  • agent
  • android
  • array
  • asynctask
  • bean
  • eclipse
  • field
  • form
  • fragment
  • gimp
  • icon
  • image
  • inner class
  • java
  • javascript
  • layout
  • list
  • log4j
  • lotus
  • lotusscript
  • member
  • modifier
  • mysql
  • photo
  • preference
  • project euler
  • school
  • screen
  • scrolling tab
  • sensor simulator
  • spring
  • spring security
  • swipe view
  • tab
  • table
  • thread
  • view
  • viewpager
  • wordpress
  • xml
  • xpage

Recent Comments

  • Saving and reading files in the internal storage - Jacob is studying on programming on Saving and reading files in the internal storage
  • Luca Zanini on Saving and reading files in the internal storage
  • daniel sosa soriano on Saving and reading files in the internal storage
  • Raúl on Saving and reading files in the internal storage
  • nima on The android.os.NetworkOnMainThreadException exception

Archives

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Proudly powered by WordPress
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more