Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old December 3rd, 2012, 07:19 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Notsure Making app's to take only SOME portion of screen

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.

Advertisements
Kartik Sharma is offline  
Reply With Quote
sponsored links
Old December 5th, 2012, 10:10 PM   #2 (permalink)
Junior Member
 
AndroidWallies's Avatar
 
Join Date: Dec 2012
Gender: Male
Posts: 20
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 1 Time in 1 Post
Default

Are you talking about widgets?

Here is a good article to get the ball rolling: Android Homescreen Widgets- Tutorial


Cheers!
AndroidWallies is offline  
Reply With Quote
Old December 8th, 2012, 10:48 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by AndroidWallies View Post
Are you talking about widgets?

Here is a good article to get the ball rolling: Android Homescreen Widgets- Tutorial


Cheers!
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,
Kartik Sharma is offline  
Reply With Quote
Old December 10th, 2012, 09:10 AM   #4 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

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.
__________________
My blog, Inverted Keystrokes, is looking for aspiring developers (not necessarily with Android) to post articles. If you have any development experience and are interested in participating, please PM me. =)
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
Kartik Sharma (December 19th, 2012)
Old December 13th, 2012, 01:19 AM   #5 (permalink)
Junior Member
 
LexiconStudios's Avatar
 
Join Date: Jul 2012
Posts: 96
 
Device(s): Samsung Infuse 4g
Carrier: Not Provided

Thanks: 10
Thanked 10 Times in 9 Posts
Default

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.
__________________
Check out our hot new game Bubble Basher and the development blog.
LexiconStudios is offline  
Reply With Quote
Old December 13th, 2012, 09:05 AM   #6 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

Quote:
Originally Posted by LexiconStudios View Post
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.
Agreed. There are very few cases where an app that only takes up some of the screen is a good idea.
jonbonazza is offline  
Reply With Quote
Old December 19th, 2012, 03:29 AM   #7 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jonbonazza View Post
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.
Thanks dude. Love you. No Home
Kartik Sharma is offline  
Reply With Quote
Reply
Tags
android, app, notification area


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:14 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.