1. Download our Official Android App: Forums for Android!

Apps Making app's to take only SOME portion of screen

Discussion in 'Android Development' started by Kartik Sharma, Dec 3, 2012.

  1. Kartik Sharma

    Kartik Sharma Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Dec 3, 2012

    Dec 3, 2012
    3
    0
    5
    So, I want to make an app that usses only some portion of screen, while the rest portion can be used by user.

    For example, if a user open app through Home Screen Shortcut, app may cover 25% of height while rest 75% will be covered by home screen such that user can use both apps and home screen. Same applies to other scenarios.

    I am actually trying to create a custom notification panel, hence want my panel to hide the original one.

    If there is any other way to do this, plz tell me.
     

    Advertisement

  2. AndroidWallies

    Rank:
    None
    Points:
    36
    Posts:
    20
    Joined:
    Dec 5, 2012

    Dec 5, 2012
    20
    1
    36
    Male
  3. Kartik Sharma

    Kartik Sharma Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Dec 3, 2012

    Dec 3, 2012
    3
    0
    5
    Well no, I dont wanna make widgets but something like StatuseBar+(Click me)


    You see why I want mt app to use only SOME portion of screen, :D
     
  4. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    You just need to make the potion of the screen you want to "appear" as being not taken up by your app transparent. Also, i you want touch events to pass through your app, into the underlying app (for example the home screen), you need to register a View.OnClickListener with transparent layout and just return false.
     
    Kartik Sharma likes this.
  5. LexiconStudios

    LexiconStudios Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    94
    Joined:
    Jul 14, 2012

    Jul 14, 2012
    94
    10
    38
    Developer
    Making that part of your app transparent is definitely the way to do it, but I'd still do this only if absolutely necessary and it contributes to your app. I've seen it done poorly and in a way that confuses uses.
     
  6. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Agreed. There are very few cases where an app that only takes up some of the screen is a good idea.
     
  7. Kartik Sharma

    Kartik Sharma Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Dec 3, 2012

    Dec 3, 2012
    3
    0
    5
    Thanks dude. Love you. No Home:D
     

Share This Page

Loading...