I am totally newbie in Unity.
I have some pop-up windows in my 2d project. I want "block" rest of screen if pop up window is active.
How i can achive this?
I am working with android.
Welcome new user, it's actually pretty simple.
if you are used to programming ios or android, it's different, you simply do it "manually".
All you do is ...
in your UI
make a new panel which is full screen, name it "gray cover" or such
make it 90% alpha and black
in fact simply put your popups on top of that
when you want one of your popups to appear, just turn on the gray cover and whichever popup/message you want
Enjoy
Related
Another app pop up a dialog in the center of my tablet suddenly and make my app not visible. Is there any way I can send any kind of api (like what we do in Windows ) to move (and also resize) it to the edges of the tablet but not close it?
And is it possible to close it also?
Thanks
Since you are using your Application and suddenly, you gets a popup on top of it which is being called from a different application. Basically, there is no way an application can interrupt another until there is permissions provided to the concerned Application.
However, You can check the logs and accordingly you can write a piece of code to dismiss any popup that appears on the screen, but for resizing an popup, I am not sure how to handle the UI.
Thanks!
I want to add black padding (a thick black border) to the android screen such that every app is displayed with the padding around it. I know how to do this for my app but how do I do this such that when my app is running in background the display is padded?
I don't believe this is possible unless you're willing to create and run a custom ROM.
Thankfully, this is not possible for the average non-ROM third party Android developer.
The screen on mobile devices is actually very limited, and when programming for the mobile environment, you have to learn to get away from the windows metaphor used by traditional desktop PCs.
On the other hand, may be your app could pretend it is running in the background, but still stay in the foreground with its transparency enabled. And perhaps if you can't do something, may be you can find a way to fake that something for your users.
Also, note that the default home launcher is capable of doing something similar to what you want, but only for widgets. And if being able to run widgets is sufficient for you, perhaps you could write your own launcher application that can embed widgets.
What I want to achieve here is to shrink all of the Android's OS UI (everything inclusive) to use only 70-80% of the screen.
The reason is that I wish to have my area to put in whatever I want - apps icons which exist and are always visible (no matter if I am in a browser, or playing angry bird etc).. its like Windows's quick launch or Mac's dock which always stays there . I can also put some important text that I wish to see throughout my interaction with the device or anything else.
I just want to use 20-30% of the screen-size all by myself and run Android on the remaining portion of the screen.
Do you think it is possible? If so, can you please give me pointers?
Thanks much,
Rohan
There are two solutions for me:
1) create custom Android build. Change WindowManager code a little.
2) create own virtual keyboard which will serve keyboard and your stuff (http://developer.android.com/reference/android/inputmethodservice/InputMethodService.html)
I am porting an iPhone app to Android, and I can't find the Android equivalent of the UINavigationItem. These are buttons with a triangular side indicating movement between different screens. For an example of what I'm trying to accomplish, this is from the BeyondPod app:
http://mobiputing.wpengine.netdna-cdn.com/wp-content/uploads/2011/05/beyondpod.jpg
The buttons labeled "Categories" and Podcasts" are what I'd like to duplicate.
Android has a hardware back button. Forward is typically accomplished by some widget, such as a button or link, somewhere in the Activity.
I looked at the screenshot you posted again and noticed that your left and right buttons are to switch between categories and not to go to an earlier screen.(Im not sure if im right)
If that's the case using the left and right buttons are okay as they are to switch between categories and not the previous screen. But keeping a left button just to go to the previous screen isn't really necessary. Here we need to think in terms of an android user. They are hardwired to press the hardware back button to go to a previous screen. There are many examples of apps that have a bit of changes in their android and iPhone version. Eg Evernote.
It uses tabs on the iPhone but in android they sort of created a dashboard in combination with an action bar.
So main thing to consider when porting an iphone app is to make enough changes so that an android user will feel like it has a navigation they are used to. Most apps that look exactly the same as iphone apps are created with these cross mobile development tools(titanium, sencha touch).
On Android, the home screen has dots to indicate which screen you are on. I want to do something similar in my app. Is there a control that contains dots and lights up?
No... you will have to do it by your self. Take a look at the Tweetdeck app fro android... they have something similar.