w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
I have a background set to the bottom of the screen, but when I go to full screen there is an empty white space beneath. Why is this happening?
First, fix the errors in your HTML. They look terrible. Then, you calculate the height as screen.availHeight. That's a mistake, availHeight is the height of the desktop. Excluding things like taskbars and whatever you may have on your computer. What you need is screen.height.

Categories : HTML

How to know if a JFrame is on screen in a multi screen environment
This is a little redumentry, but, if all you want to know is if the frame would be visible on the screen, you could calculate the "virtual" bounds of desktop and test to see if the frame is contained within in. public class ScreenCheck { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setBounds(-200, -200, 200, 200); Rectangle virtualBounds = getVirtualBounds(); System.out.println(virtualBounds.contains(frame.getBounds())); } public static Rectangle getVirtualBounds() { Rectangle bounds = new Rectangle(0, 0, 0, 0); GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice lstGDs[] = ge.getScreenDevices(); for (GraphicsDevice gd : lstGDs) {

Categories : Java

Does linux support multi-touch screen
Linux started supporting Microsoft's Multi-touch protocol from kernel 3.8 onwards. The reference is here: https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt Addendum http://www.ptrackapp.com/apclassys-notes/embedded-linux-multitouch/ has arm multi-touch tutorial for iPhones but it applies equally to Android. The hid-multitouch in linux supports a whole bunch of panels: See http://lxr.free-electrons.com/source/drivers/hid/hid-multitouch.c for details Addendum 2 Multi touch support has been somewhat there since 2.6 Ubuntu had multi touch support in its distribution in 2010. Microsoft Multi-touch protocol support started in 3.8. Chrome OS support started in kernel v3.9. X.org server had multi touch support built into it in 2011.

Categories : Linux

how to position Views on an Android screen relative to the screen edges using offsets in terms of pixel position on the screen coordinates?
You can put a margin to your element to move it away from the edge. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" <!-- move it to the top left corner --> android:layout_alignParentLeft="true" <!-- move it to the top left corner --> android:layout_marginTop="10dp" <!-- move it 10dp down --> android:layout_marginLeft="10dp" <!-- move it 10dp right --> android:text="@string/hello_world" /> </RelativeLayout>

Categories : Android

Screen resolution. Full screen - perfect. Normal screen - not perfect
Can't see the rest of the code but if you want the background to be centered don't you want it to set it up as: body{ background-position: center; } The way it is now, the background is properly centered for only one resolution, because it is aligned to the left.

Categories : CSS

native calling screen animation stops when dialog activity display on screen
I implemented a solution that works well for me (and does not stop animation), here it is: https://github.com/inez/CustomIncomingCallScreen

Categories : Android

Splash screen displays white screen and then black before it sets the menu page
Is your Code for doing background things running in another thread or is it part of the UI Thread? Because your animation wont be shown until your onCreate method finishes, so that could be. Also you could use startAnimation(animation) on the imageviews so they start in that moment.

Categories : Android

Is there a way to build a web page that uses different fonts on a phone screen and a desktop screen without writing any JavaScript?
Sure, you can do it in CSS, using @media rules to set different fonts based on the screen size. Here's a good source of information: http://css-tricks.com/snippets/css/media-queries-for-standard-devices. I'd set the desktop font first, then override it with @media queries with your phone font.

Categories : Javascript

How to create videoview like youtube "small screen and full screen play in android "
You have to override setAnchorView in your new java class which extend the Android's MediaController (android.widget.MediaController) and add an extra view/button to the controller. And do something like this @Override public void setAnchorView(View view) { super.setAnchorView(view); Button fullScreen = new Button(context); fullScreen.setText("FullScreen"); FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); params.gravity = Gravity.RIGHT|Gravity.TOP; addView(fullScreen, params); } now add clicklister to view

Categories : Android

how to make popup in center of screen and overlay/background to full screen high
Place the Popup Window inside the overlay-div! <body id="page1" style="height: 100%;"> <form id="form2" runat="server" style="min-height: 100%;"> <div id="content"> .. content ... </div> </div> <div class="darkenBg" id="popupBackground" style="display:none;"> <div class="greenBox2 popUpWin" id="companySigninPopup" style="display:none;"> <div class="topWrap"> popup window </div> <div class="botWrap"> <div class="corner-bottom-left">&nbsp;</div> <div class="border-bottom">&nbsp;</div> <div class="corner-bottom-right">&nbsp;</div> </div> </div> </div> </fo

Categories : Javascript

How to open another screen insted of Main Screen when push notification received
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if (launchOptions != nil) { // Launched from push notification NSDictionary *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; //Redirect it to your page here } } - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { if ( application.applicationState == UIApplicationStateInactive || application.applicationState == UIApplicationStateBackground ) { //opened from a push notification when the app was on background //Redirect it to your page here } }

Categories : Iphone

Everything moves in website when changed from full screen mode on desktop screen
Something to this effect? The biggest issue was that you didn't have a minimum width for your menu, so it would keep shrinking until it stacked on itself. #navigation { float:left; width:60%; height:24px; min-width:1000px; text-align:center; padding:10px 20px; }

Categories : HTML

Jquery .animate, make a div enter from off screen, float accross, exit off the screen, & repeat
By adding a function to the animate parameters, that function will be called once the animation is completed. Inside that function, you can reset the position of the cloud. After you reset the position, you can use a timeout to restart the animation like you've already done. $("#cloudone").animate({left:"600px"},5000,function(){$("#cloudone").css({"left":"0px"});});

Categories : Jquery

aligning linear layout half the size of screen in exact center of screen horizontally
Your OuterlinLayout LinearLayout should have android:orientation="horizontal" instead of vertical and all its children should have android:layout_width="0dp"

Categories : Android

How to stop Ipad screen orientation while loading splash screen?- In Flex Mobile Application
This might be possible, when you remove splashScreenImage attribute and Provide Launch Images for Different Orientations, like: Default-Landscape.png Default-Portrait.png Default-Landscape@2x.png Default-Portrait@2x.png

Categories : Actionscript

Phonegap get screen height of working area (screen less the status bar)
I'm use $(window).height() which is ~ equal window.innerHeight but it's work for me when page fully loaded on Android and iOS. Sample here

Categories : Android

Trying to animate lines of a grid onto the screen in a WPF app and detect how many can fit on the screen at a time
You can probably get away with using a Grid or StackPanel and animate the margin value of your elements (use negative margins to slide items in). You need to ensure that the parent element has ClipToBounds set to false so that items can be drawn outside of its bounds. To measure an element's height, just use the Measure method on the row element to figure out how much space it needs vertically. Based on that, you can determine how many elements you can fit in one page.

Categories : C#

Showing Dialog when Home Screen Causing Gray Screen
Ok. (As from your comments). You can not have your dialog automatically appear while your app is in the background. The dialog is displayed within the context of your Activity(along with its window manager), if the activity is not displayed, nor is your dialog. To display content while your activity is in the background you have a few options, non of which will be straight forward though. Attach views directly to Android's WindowManager. This will not work with a dialog, you would have to construct a dialog layout and manually attach it, it would remain foreground above everything else. Launch your dialog from a transparent activity. Problem here is if you are say on your homescreen then the transparent activity/dialog launches and you then call you application the transparent activit

Categories : Android

Im using this screen capture code to take a screenshot of the screen but sometimes it's returning null why?
If you want to know WHY an exception occurred, I suggest you handle whatever exception you find in your catch. so instead of catch { result = null; } try catch (Exception ex) { // log the value of ex.ToString() to a file, the screen, something. System.IO.File.AppendAllText("debug.log",ex.ToString()); result = null; }

Categories : C#

Phonegap (Android Build) - Intermediate Screen before Splash Screen
Does your app eventually show or does it just stay blank? Cant really tell what is going on but a quick something came to mind. Are you using a splash screen? Take a look at the config.xml docs at the section about splash screen duration (Android only). The docs can be found here. Splash Screen Duration splash-screen-duration with a value in milliseconds defaults to 5000 (5 seconds) example: <preference name="splash-screen-duration" value="10000" /> for auto-hide behaviour call navigator.splashscreen.hide(); in the device-ready method supported on PhoneGap 2.1.0 and above Try setting the duration to 0 (<preference name="splash-screen-duration" value="0" />) and see what happens. *On second thought, it probably isn't a splash screen issue but worth a shot. Post some code

Categories : Android

asp.net mvc sitemap that adjusts for screen size so menus are not off the screen
The menu template can be edited to get whatever HTML output you want, and then you can use CSS to control the visual aspect. It's no different than modifying any other MVC view. You can edit the template by modifying the /Views/Shared/DisplayTemplates/MenuHelperModel.cshtml file (or MenuHelperModel.aspx if you are not using razor). If you don't have the file in your project, you can get the contents of the Razor and ASPX files and add them to your project manually. Also, it looks like you have a very old version - here is the upgrade documentation to version 4.0.

Categories : Asp Net Mvc

screen shot of a specific screen area in android
is there any way to capture a specific area of a screen or view Capture something larger, then cut out the "specific area" into a separate Bitmap, probably using one of the createBitmap() methods.

Categories : Android

C# Transform a point from one screen coordinate to another screen coordinates
If the origin in both systems of reference is identical, what is the case (0, 0); the only thing you can do is scaling the values from one to the other system by relying on a simple rule of three: curX -> in 340 newX -> in newWidth(1024) newX = newWidth(1024) * curX/340 OR newX = curX * ratio_newWidthToOldWidth Same for height (newY = curY * ratio_newHeightToOldHeight). This is already a pretty simple way so why looking for simpler alternatives? In any case, you should bear in mind that the width/height ratio change from one resolution to the other (i.e., 1.33 and 1.2 in the examples you provide) and thus if you apply this conversion blindly the appearance of the objects might change (would be adapted to the given screen but perhaps would look worse than what you want). T

Categories : C#

Creating a Fake Computer Screen Within a Screen in Website
I'd just use an iFrame to show the actual content, and then take the illustration and put it around it on the parent page. You could build "navigation" (back button? and working Page Titles?) into the illustration too, that would be pretty simple and pretty cool. You'll probably want some JS involved to handle resizing of content (in the iframe) and the illustration will probably need to be split up a bit so parts can be resized properly?

Categories : Jquery

Libgdx : setting another screen, but still buttons from old screen active
I changed this : I moved the input processor to the show() method of that screen using stage variable of that screen public void show() { ... Gdx.input.setInputProcessor(stage); } before I was setting this only in the constructor of the screen, so even If I was changing the screen, the input processor was still attached to the last created screen's stage

Categories : Java

What is the Intent to call "Choose screen lock" screen?
There is none. You can view all possible Intents in android's source code: https://github.com/android/platform_packages_apps_settings/blob/master/AndroidManifest.xml

Categories : Android

App shows main screen after screen rotation
You should use onSaveInstanceState to save your state, and then recreate it in onCreate. Read following answer Restore values on screen rotation

Categories : Android

the difference between screen and no screen in twitter bootstrap
http://www.w3.org/TR/CSS21/media.html#at-media-rule @media screen is computer screen, so The first rule is for computer screens only with resolution width at least 768px. The second rule is just for devices with width >=768px including tablets, phones, printers etc., that have high enough resolution.

Categories : CSS

Using Auto Layouts while 4 screen app running in 3.5 screen
You need to use a spacer view between each button. That way you can use a variable size of the space that depends on the height of the screen. Something like this... @"V:|[_spacer1][_button1][_spacer2(==_spacer1)][_button2][_spacer3(==spacer1)][_button3]...[_lastSpacer(==spacer1)]|" This will then layout all the buttons with equal spaces between them. But the space between will change depending on the height of the screen.

Categories : Iphone

How to run services even after screen off, Lock the screen?
you have to register a reciever for the screen on off private static BroadcastReceiver mReceiver = new ScreenReceiver(); make a method regScreenReciever(). put this code in that IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); appContext.registerReceiver(mReceiver, filter); then create a broadcast reciever , override its onRecieve method and then put if(intent.getAction().equalsIgnoreCase(Intent.ACTION_SCREEN_ON)){ Util.disableKeygaurd(); } Intent linkuryIntent = new Intent(context, UpdateService.class); context.startService(linkuryIntent); your code will run fine

Categories : Android

when a new Screen is called then will the old screen be disposed?
It depends on you, if you are move from one screen to another screen and if you used finish() method with intent then first screen will be disposed otherwise it will be in paused state.

Categories : Java

How to know exactly off screen size of the screen in android?
If you want the the display size in pixels you can use getSize: Display display = getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size); int width = size.x; int height = size.y; If you're not in an Activity you can get the default Display via WINDOW_SERVICE: WindowManager wm = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); You can get more information here

Categories : Android

how to make screen scrollable from mid of screen
First: You change your layout only like this: (Bring apart of your layout to another file xml) <?xml version="1.0" encoding="UTF-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff" android:orientation="vertical" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/editbackground" > <ImageButton android:id="@+id/btnback" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:background="@android:color/transparent" android:paddingBottom="8dp

Categories : Android

How to fit screen as per device/screen resolution?
In extjs not able to differentiate laptop and desktop device. I have gone different way. but this not correct way. we can achive as per requirement. In view globally calculating height of the screen. if screen resolution is 1600X900 (Desktop) window.ineerHeight will be come more than 700. if screen resolution is less than 1600x900 window.innerHeight will be less than 700. So here calculating dynamic value assigning to component. it is working very nicely for me. Cheers Here is my code: if(window.innerHeight>700){ var paddingValue = 10; var imgHeight = window.innerHeight/4.1; //Desktop } else{ var paddingValue = window.innerHeight/35; var imgHeight = window.innerHeight/5.7; //Laptop }

Categories : Javascript

screen: how to turn on alternate screen?
UPDATE : I had forgotten about a feature of screen that disables alternate screen support by default. Add altscreen on to your $HOME/.screenrc to enable it. This is probably all you have to do; all the messing about with $TERM, $TERMCAP, and $TERMINFO is probably unnecessary. I'll leave the rest of this answer here anyway. I've had this in my own .screenrc so long it slipped my mind. To enable this feature for the current session, type your screen escape character (Cntrl-A by default) followed by :altscreen on Enter. Without this, screen won't respond to the escape sequences, even if they're defined in terminfo or termcap. vim (and less, and most other curses-based full-screen programs) use the smcup and rmcup strings defined by the terminfo entry for your terminal. (These are refer

Categories : Linux

sh screen - Wait for screen to terminate
For *nix systems, you can use the wait command in your shell script. wait can take a PID as well, so you can do wait $! to wait on the last executed command run in background. If your commands are not running in background (no & at the end of the command), then running your script will wait until that command finishes

Categories : Shell

Best Storyboard-Practice for App w/ Initial Setup Screen
go with option B, you just need to make sure in your app delegate to perform a check on which controller to show. You can set in your Settings.plist a BOOL variable that show if the setup has already done or not. fetch that result from your settings plist and use it to call one or another view controller. ( if the BOOL hasSetup is TRUE ( you already have setted all up ) you won't even create the instance of the setup controller ).

Categories : IOS

PHPMyAdmin/setup show blank screen, while PMA itself works
Most likely this is same issue as bug #1175142 , which has been fixed 4:4.0.1-2. The problem is that in Debian packaged phpMyAdmin, the config script includes one helper function, what prevented in config file being loaded multiple times.

Categories : PHP

How to display google map in right half of the screen while left half of the screen contain list view
Use linear layout with horizontal orientation and put both your mapview and listview inside it , now give similar weight to them .May be that will work .for example give layout_weight 1 or 0.5 in both mapview and listview .

Categories : Android

If my screen Size is 480x800 what screen size should i choose in photoshop for android UI design
For this purpose exacly they created this page. The problem here is not only the devices resolutions, but also those here: Supporting Different Screen Sizes Supporting Different Densities You will also have to take a look here and here. Designing an App is not a simple matter if you would like it to look "the same" on different devices, those are devises with different screen sizes and/or densities. EDIT: You may also like to take a look at this like here, which explains, as stated on the title "Understanding Density Independence in Android". Cheers

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.