Android Question Lost Activity.Title

Discussion in 'Android Questions' started by gruizelgruis, Jun 14, 2015.

  1. gruizelgruis

    gruizelgruis Member Licensed User

    Hello,

    I seem to have lost the Activity.Title.

    I started new on my project. With the new IDE.

    When I load the older code. The tytle is showing.

    I compared
    Code:
    #Region  Activity Attributes
        
    #FullScreen: false
        
    #IncludeTitle: false
    #End Region
    And found it is the same. all set to false.

    I checked the manifest editor and that is fine aswell

    I cant find how to get is back.

    please advice
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Set #IncludeTitle to True if you want the title to be visible.
     
  3. gruizelgruis

    gruizelgruis Member Licensed User

    Thanks for that quick reply.

    I did and it works. But.. it is set the same (both values to false) in older code.
    In the older code I use a second activity. The title does not show on the main activity as it is set to false.
    On that second activity the titlebar is shown. Without an icon.
    Now that I have the title bar back,

    The question is How do I get rid of the icon
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The icon is part of the holo theme (Android 4 theme). If you set targetSdkVersion to 4 instead of 14, in the manifest editor, then the old style will be used.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice