FAQ Database Discussion Community


List item background like Play Store

android,listview,background
I have specifically requested that the background of the items in a ListView be equal to the background items listed in Play Store. Like this: So far I try this drawables: @android:drawable/alert_light_frame @android:drawable/dialog_holo_light_frame @drawable/abc_menu_dropdown_panel_holo_light And this layer-list: <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle"> <solid android:color="#99D3D3D3"/> <corners android:radius="3dp" /> </shape>...

in C#, changing background image of a button after click

c#,image,background,click
This code does not report any error and should have work.The button background image does not change. Any idea of what could be wrong? void MyHandler(object sender, EventArgs e, string val) { //Process Process.Start(@val); //Change button bkground image var button = (Button)sender; button.BackgroundImage = global::Test.Properties.Resources.impOK; } EDIT The event MyHandler...

Background image cover whole screen

css,background,screen,cover
On the homepage of http://www.jeroenvanderwaal.com i'm trying to get the background image to cover the whole screen. I am unable to find out why it isn't covering but leaving an empty space at the bottom. The code so far: .page-id-4 #main { background-image: url(http://www.jeroenvanderwaal.com/wp-content/uploads/2015/03/achtergrond2.jpg); background-repeat: no-repeat; background-attachment: fixed; background-position: center...

handleWatchKitExtensionRequest play background audio on iphone

ios,iphone,audio,background,watchkit
I'm experimenting with an WatchKit app that will trigger an audio alert on the iphone. I've got it setup to do the trigger, repeating every 5 seconds. On the iphone, I have the logic that will play the short audio wav file in the background. It is designed to work...

How to control background image transparency in android app?

android,eclipse,image,background
I use this tag to set background android:background="@drawable/image_name" how to make that?...

Change control colour, and change it back to original

c#,winforms,button,background,click
I want to change colour of the button momentarily to show that button has been pressed. How can I achieve this in C#? I can change the background color easily enough like this: private void button1_Click(object sender, EventArgs e) { button1.BackColor = Color.Green; } of the button, but how do...

Running multiple exec commands and waiting to finish before continuing

background,tcl,exec,tk
I know I ask a lot of questions and I know there is a lot on here about this exactly what I am trying to do but I have not been able to get it to work in my script nor figure out why it does not let me do...

Using Trianglify js plugin. Setting it as
background

javascript,html,background
I have some problems using Trianglify javascript plugin. I would like to use it as a /div> background. How can I do it? I didn't find a proper example. I guess I should change this code somehow (get my div and its width and heigth): <script> var pattern = Trianglify({...

NSTimer selector keeps getting called even in the background

ios,timer,background
So, I have an NSTimer that is set to call a selector every second: timer = [NSTimer scheduledTimerWithTimeInterval:1.0f target:self selector:@selector(TimerSelector:) userInfo:nil repeats:YES ]; This is all fine, but ever since I updated to iOS 8, I've noticed that this selector keeps getting called even after the application goes to the...

how to run scheduled php background processes?

php,codeigniter,background
Is it possible to execute a php function according to a timely manner in a web server ? Ex - execute a function every day at 4.30 PM.

Detecting element widh DOM javascript

javascript,dom,background
My question is pretty simple, i can't detect a element, i wanna change a backgroundColor through javascript but I can't check it since is a tag+class + tag+class... Here's the code i tried: var one = document.getElementsByTagName("div"); var two = document.getElementsByClassName("red"); var three = document.getElementsByTagName("h2"); var four = document.getElementsByClassName("title"); one.two...

Java replacing the background of an image

java,image,colors,background,pixel
I am writing a program where I take one picture and replace the background of that picture. The picture I have is: And the background that I am using for the cat is: I know that in order to this I have to use the cat picture and take the...

Responsive full page background image with CSS

css,background
I am trying to achieve full length responsive background image as done in this website http://www.dubsmash.com/ I tried applying background-size: cover; background:url('image') no-repeat center center; overflow:hidden; min-height:100% to html but the result is different. See the way how image is centered at all times in the dubsmash website. They used...

Javascript: Compare backgroundColor set by javascript

javascript,css,background,comparison
How can compare the background color of an element, when the color is set with javascript, I want a function that toggles the backgroundColor: function toggleBgColor() { if(document.getElementById("id").style.backgroundColor === "blue"){ document.getElementById("ide").style.backgroundColor = "red"); }else{ document.getElementById("ide").style.backgroundColor = "blue"); } } The problem is that the comparison is always false, so my...

How to set background image on the right hand side of a shape in android

android,background,android-edittext,shape
I am making a background shape for EditText - xml below: <?xml version="1.0" encoding="UTF-8" ?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/WhiteSmoke"/> <stroke android:width="1dp" android:color="@color/aadhaar_logo_brown" /> <padding android:left="2dp" android:top="2dp" android:right="2dp" android:bottom="2dp" /> <corners android:topRightRadius="10dp" /> <gradient android:startColor="@color/White" android:centerColor="@color/White"...

Blogspot Simple Template, centered background

css,background,blogger,blogspot
I've recently gotten back into blogging, but I'm a bit rusty on HTML/CSS specifics and have run into a little obstacle. I'd like this background image to be centered and repeating vertically so it "borders" the content, and I thought I had done everything right in the CSS, but the...

Best practice for scehduled background task Android

android,service,timer,background,scheduled-tasks
I am creating a notification app, which will alert user after they set a reminder notification. My current implementation logic is: Create a Service, which starts running in background when user opens their app. In onCreate() method of service, I am implementing a Timer task which will repeat after 5000ms...

how to change div background image with animation

html,background,jquery-animate
Is there a way to change DIV background with fadeout or animation in JQuery? For example, I wanna change the background with this code $('#DIV').css("background", "url(Image1.jpg)") if (Button1 == true) { $('#DIV').css("background", "url(Image2.jpg)") } ...

Full screen Background on some part of the page

html,css,twitter-bootstrap,background
i am trying to do a background on almost 75% of the whole page. I do not want the background on body as there is a solid color area on left hand side in design. http://take.ms/uNp67 And if i put the background on the main-container, then it is not full...

How can i add an image as background in Chartjs?

background,background-image,chartjs
I am using chart.js lib on a programmable device i need to add an image as background to my chart, if that is not possible how can i change background color to black?. I cannot use Jquery as it is not supported by the Platform. Thank you...

NSTimer and closing app while in background

ios,xcode,background,nstimer,close-application
I've encountered problem with closing the app while in background. When working in the background, tapping 2x and swiping the app to close it, the app doesn't call the applicationWillTerminate:(UIApplication *)application, but goes to @autoreleasespool, which is definitely crash. I suppose it is connected with working NSTimer, because without initializing...

FFmpeg: How to convert vertical video with black sides, to video 16:9, with blurred background sides

video,background,ffmpeg,blur
How to make this by using FFmpeg? Example without FFmpeg: Adobe After Effects Sony Vegas Pro...

Setting facebook's profile picture as a LinearLayout background

android,facebook,background,uri,profile-picture
I have been trying with no avail to set my facebooks profile picture as a Linearlayout background in my application. here are the two ways I tried to do this: first way: got the uri from the profile picture and converted it to drawable protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...

swift background color + button/image bug

ios,image,swift,debugging,background
I have just encountered a really odd bug when testing my app. import Foundation import SpriteKit import AVFoundation class EndScene : SKScene { var Highscore : Int! var ScoreLabel : UILabel! var HighscoreLabel : UILabel! var AudioPlayer = AVAudioPlayer() override func didMoveToView(view: SKView) { scene?.backgroundColor = UIColor.grayColor() var EndGameMusic =...

Pull notifications from web server to iOS device when app is backgrounded

ios,background,apple-push-notifications
I would like to be able to make location and app state requests when the app is in the background. I know that you can have different background modes registered for the app. Is it possible for my web server to send a push notification to an iOS device and...

Blurred Background on View not Working Consistently

ios,swift,background,viewcontroller,uiblureffect
Using the following code to make the background of a view blurry is not working consistently. func makeBackgroundBlurry () { var blurEffect = UIBlurEffect() blurEffect = UIBlurEffect(style: UIBlurEffectStyle.Light) let blurEffectView = UIVisualEffectView(effect: blurEffect) blurEffectView.frame = view.bounds //view is self.view in a UIViewController view.insertSubview(blurEffectView, atIndex: 0) view.backgroundColor = UIColor.clearColor() //add auto...

How to change background of TextView From EditText Text Change?

android,colors,background,android-edittext,textview
I am using Fragment class in which I want to change the color of Text View When text is changed on my edit Text. What are the possible ways to change the background color of TextView When Text is Changed in EditText . My code looks like this : public...

Javascript background changer no working

javascript,image,background
I want to implement a background image changer in my code, but it doesn't seem to work. Here is my JS: function XAX() { var P = document.getElementById("background1"); var O = document.getElementById("background2"); var I = document.getElementById("background3"); if {P.checked === true} { document.body.style.backgroundImage = "url(Gates.jpg)"; } else if {O.checked === true}...

Qt transparent label doesn't always update its background [duplicate]

qt,background,transparent,libvlc,qlabel
This question is an exact duplicate of: Can not overlay a transparent Qlabel on a QWidget that LibVLC uses 1 answer I have 3 child widgets of the main widget which are aimed to play video files(their sizes and positions are the same, I mean they are overlaying each...

Detect battery level when app is closed in iOS

ios,background,uilocalnotification,batterylevel
I'm building an app in iOS that will need to detect when the battery reaches a low level to send a notification. When the app is running this is simple, just by detecting the UIDeviceBatteryLevelDidChangeNotification notification and inspecting the current battery level. However, is it possible to receive this type...

Android studio Fullscreen Background Image with android:background

android,background,fullscreen
I have been trying to make an android app with a full screen background image, but just can't get the picture to fill the whole screen. Here's what I got so far: activity_main_screen.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context=".MainScreen" android:background="@mipmap/background" > Any ideas?...

Javafx accordion with transparent background?

background,javafx,accordion
Somehow accordion seems to behave differently than the other javafx elements, cause I cannot make its background transparent with CSS. I found a hint somewhere with this: .accordion.titled-pane > *.content { -fx-background-color: null; } But it didn't work. Maybe the syntax, I don't know, I tried without the > and...

Website background images not showing on mobile safari

html,css,background,mobile-safari
I'm having trouble getting m background images to show on mobile safari. Sometimes it works, sometimes not. Usually if I refresh the page everything shows the way I want, which makes it tricky to test. Always works fine on the desktop browsers I've tried. Here is the site: https://www.shimmeo.com I've...

Edittext on background fragment still editable

android,background,android-edittext
I have problem with using EditText with several fragments. I have two fragments: FragmentOne and FragmentTwo, and each fragment has EditText. After adding FragmentTwo above FragmentOne: android.support.v4.app.FragmentManager fragmentManager =getActivity().getSupportFragmentManager() fragmentManager.beginTransaction().add(R.id.frame,new FragmentTwo()).addToBackStack(null).commit; When I press Enter on keyboard, cursor goes to EditText on FragmentOne. How to fix it? Similar problem was...

Modify android theme from appcompat theme

android,background,themes,appcompat,actionmode
Is there any way to change an attribute from the stock android themes, if the App is using the AppCompat theme? My Problem: I am using AppCompat theme in order to get the L-Look. But I need to use the ActionMode, which is from basic Android API. If I change...

How to make a background image fill the canvas?

android,canvas,bitmap,background
Hello everyone I am new to android and I just have a quick question. I am making an animation using Bitmaps and drawing them to the canvas using the onDraw(). I am trying to draw a background to the canvas that I made in photoshop. I already uploaded it as...

How to make an iframe change height automatically?

html,css,iframe,background
First, I know there are a lot questions like this. I've read a lot of them, but they didn't help. Here's my html: <!DOCTYPE html> <html class="bg3"> <head> <title>Foto's</title> <link rel="stylesheet" href="style.css"> <script> function go(loc){ var iframe = document.getElementById("iframe"); iframe.style.display="block"; document.getElementById('iframe').src = loc;} </script> </head> <body...

navigationBar setBackgroundImage not working

ios,objective-c,background,uinavigationbar
I am trying to set the background image of my navigation bar using the following code: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. viewController = [[ViewController alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController]; [viewController presentViewController:navigationController animated:YES completion:NULL]; [self...

Stretch background image width but crop height

html,css,background
How do you make a background img that would: Stretch across the window horizontally Have a fixed height Crop height when it's bigger than the content's height (do not shrink) Currently I have this code that implements #1 and #2 but I can't seem to make it do #3: <img...

Launch app in background automatically?

ios,background,apple-push-notifications
Is there a way to persist an iOS app in the background such that it starts up automatically when the device is turned on and will re-launch later if terminated? I have read a few posts on either voip and gps services. My app sends emergency SMS messages with the...

Recovering from process being killed by android

android,process,background,kill
In the logcat i can see the following line: 03-16 10:10:44.208 748-839/? I/ActivityManager﹕ Process MyProcess (pid 30657) has died It's not the only process that was killed, something is probably happening... The application i'm working on is actually doing its important part when operating on the background and everything stops...

Android - draw9patch should help me? background of textview

android,view,background,textview,imageview
I need to set background of the TextView without stretching like this: I tried draw9patch but seems that it doesn't do that work. How can I reach this efect? I could also use ImageView, but I don't know how I can add text in ImageView (I cannot use layout or...

How to create background that follows the character in SWIFT?

swift,animation,background,sprite-kit
I am working on this project in Xcode, where I am making animations. I have perfectly working program where little character walks around the screen. If I press on screen, that is direction the character is going. What I want to do here is to add a background image and...

Is it possible to set a background for the reachability feature?

ios,objective-c,background
With reachability I mean this iOS feature (a feature that makes it easier to use apps with just one hand, it is executed by double-tapping the home button without actually pressing it): Is it possible to set a background instead of the black screen?...

NSURLSessionDataTask when running in background remote notification with content_available =1

ios,background,notifications,push-notification,nsurlsession
My app is sending notifications (like a chat app) that inform the other app that it needs to fetch the message from the server even when it's not in the foreground. I plan an APN to send notification with Content_available=1 and then have the app to call the server to...

Is there a way to override default CSS of HTML5 form validation messages

css,html5,validation,background
I want to change background of bubble message - to be red and text to be in another language , not english. I've set "required" to my input fields and CSS for valid and invalid and it's working. And how to make this bubble message to appear when you hover...

How to change background while changing visiblity?

javascript,html,css,background,visibility
I set a section named "show" in my html file to invisible using div id="show" style="display:none, and tried to to change the visibility using document.getElementById("show").style.display = "block" in a JavaScript function. Now my problem is, how can I change its background color while I change the section to visible? I...

How do I set colors for specific sections of my background?

html5,css3,background
I'm currently attempting to set my background color for a specific section of my page background. The idea is to have about 1/5 or 1/4 of the top section of the page be one color, while the whole remaining bottom is a separate color. I've considered using gradients to do...

Countdown Timer Notification

android,android-activity,android-studio,background,countdowntimer
I'm begginer in Android programming, I have to do a CountdownTimer that starts from a number selected by the user using a two number pickers (one for Hours and other for minutes). The characteristics must be: -The CountdownTimer must work in background and notify the user when it arrives to...

google charts change background color

charts,background,google-visualization,background-color
I saw some previous questions/answers here on StackOverflow but none of the code provided in those answers seemed to work with my chart: Here is my code: <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1.1", {packages:["bar"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Month', 'Sales', 'Expenses'], ['January', 200, 150], ['February',...

How to use the camera with images?

android,background,camera
I want to make an application that contains an image and the background you can use the device camera. I know how to launch the camera but not how put the image forward. An example would be this application: https://play.google.com/store/apps/details?id=com.kat.police.photosuit.montage Anybody know any tutorial explaining how to do it or...

Adding a background image to RelativeLayout hide all others elements

android,background,android-edittext,android-linearlayout,android-relativelayout
I have a simple XML: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".LoginActivity" android:background="@drawable/login_background"> <LinearLayout android:orientation="vertical" android:layout_width="320dp" android:layout_height="160dp" android:layout_alignParentBottom="true" android:layout_marginStart="218dp"...

How to schedule commands to run in background in Azkaban

bash,background,command,azkaban
In bash script, I can append & at the end of the command to make it run in the background such as: top & However, when I put that in a Azkaban job, such as: type=command command=top & It will give the error message as: 29-04-2015 23:53:08 PDT start ERROR...

Change background on element with multiple background images

css,background,responsive-design,dynamic-css
I have used CSS background on multiple divs to create a number of large format buttons. It looks beautiful, but the buttons are created dynamically, and there could be thousands of them. This means a HUGE dynamic CSS script... it there a better way of giving each element a different...

CSS different backgrounds for different divs

css,css3,background,background-color,opacity
Something's not working. The code is here: bambakids.com/menu Content: index.html jquery.easing.1.3.js smoothscroll.js CSS Folder: css/style.css Let me know if you want the images too, although they shouldn't matter. Goal: For there to be a different background color on the contact div then on the main one (headermenu)...

WatchKit: direct communication with the containing iOS app

ios,web-services,background,watchkit
I just get started with WatchKit and I'm trying to do this (if I'm not wrong, it is possible to do): I'd like the WatchKit Extension to ask the containing app for requesting some data to a web service, and then return the service response to the Extension to update...

Image as a background in JScrollPane

java,image,swing,background,jscrollpane
How to add an image as a background in JScrollPane? I tried this but the image doesn't display: BufferedImage img = null; try { img = ImageIO.read(new File("C:\\Users\\Suraj\\Documents\\NetBeansProjects\\JavaApplication2\\src\\javaapplication2\\images\\2.jpg")); } catch (IOException e) { e.printStackTrace(); } Image imag = img.getScaledInstance(d.width, d.height, Image.SCALE_SMOOTH); ImageIcon imageBack = new ImageIcon(imag); FlowLayout fl = new...

Css Background how this site did it?

html,css,background
I cannot find where the grainy-ish grey background is coming from on this website.. the image is a simple png with only white lines. There ARE grainy overlay on the background right? what css am I missing here? http://www.precipart.com/home...

Change button background with an action

android,button,background
I have two activitys in the android application, the MainActivity and the SecondActicity. In the MainActivity i have one button which is lead to the second one. I have a background image on this button and i like to change that from the SecondActivity. There is a simple question in...

iOS tableView.backgroundView with no cell

ios,objective-c,background,tableview
I've checked how to make background with UITableView with this code in cellForRowAtIndexPath : UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.JPG"]]; [tempImageView setFrame:tableView.frame]; tableView.backgroundView = tempImageView; It works fine, but when there is no cell, the background doesn't display because cellForRowAtIndexPath isn't call when there is no cell. Alright, I...

How do I write on top of a background image with bootstrap 3.3?

css,twitter-bootstrap,text,scroll,background
I need a "background text" like this > (EXAMPLE) The text doesn't go up when I scroll down the page. my .css for background image html, body { font-family: 'Lato', sans-serif; height: 100%; background: url(../img/image-bg-jpg.jpg) center center no-repeat fixed; webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } I'm using...

Writing a background program with command line interaction [closed]

c++,linux,shell,command-line,background
I'm just playing around and want to write a c++ program that monitors my CPU temperature, (i know there is no need to do it, i know i can get that info without writing a program). I'm willing to design the whole thing as a background process in linux and...

Java SWT ScrolledForm Background Color

java,background,swt
I am having an issue with a ScrolledForm. I am trying to change the background and foreground colour for a Label defined in the body of the ScrolledForm, however it doesn't seem to be working. In my code snippet, I would like lblWhat to have a black background and white...

adding background image in jTable Java

java,swing,background,jtable,netbeans-8
I am trying to add background image in jTable but when I run code nothing shown. only white color and no jTable shown and my java Application hangs also. is there any thing wrong in this code. here is the preview also. import javax.swing.table.*; import java.awt.event.*; import javax.swing.*; import java.awt.*;...

How to change ViewPort3D background color in WPF?

c#,wpf,colors,background,viewport3d
i have viewport3d and i want to change its background color. i am very new to Wpf. i didnt understand what to do from other posts. so i ask here. i changed brush property for viewport3d but it does nothing <Window x:Class="W3DTinker.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="800" Width="1200"> <Grid HorizontalAlignment="Left" Height="780"...

Trying to make multiple background images cycle through a slideshow with CSS and JQUERY

jquery,html,css,background,slideshow
I've placed three background images in a div. I'm trying to make all three of them cycle through on a timer that fades in and out. I've actually found similar quesitons on here, but I cannot get them to work. Anyway, here's the relevant code: HTML <div id="slideshow"> </div> CSS...

Change SVG image color using Css or do it manually in SVG file

html,css,svg,background,background-color
I have a svg picture file, but the content inside is black, and I need a white, I tried to add background-color property to style attribute of svg file, but Image still black, I trying to find solution in Internet, and I found, but I cant use jQuery or some...

OpenGL how to render background

opengl,background,render
Hi I am doing an assignment and can't figure out how to render a background. I've drawn the triangles and every thing renders to the screen ok but it always becomes the foreground and blocks everything else from view. Here is my code for rendering the back ground. void render(){...

Full-window background on empty webpage? [closed]

html,css,background
Is there any way to apply a full-window background on an empty webpage, without using viewport units ? The actual page is not empty but all its elements are absolutely positioned and the background stopped working when I tried to proof it against browsers which don't support vh/vw, and I guess...

How to fill entire calendar header from border to border?

html,css,background,header,fill
I can't fill all header, for example, with red color, because it's filling only in the area of text and I need to be filled from top left corner grey area to where days are starting. Here is html: <div id="calendar-container"> <div id="calendar-header"> <span id="calendar-month-year"></span> <div id="calendar-dates"></div> </div> </div> and...

Background image on JFrame [duplicate]

java,image,swing,background
This question already has an answer here: Setting background images in JFrame 4 answers I begin in the Java programming language. I would like to make a JFrame and put a background image on it and above the JFrame, I would like to insert widgets : JTextArea , JButton...

Transparent background on custom Dialog

android,background,dialog,transparency
I'm trying to get a transparent backgroud on my custon Dialog, but I can't get it done on android 4.4.4. It only works on an Android 5.1. The result I'm looking for is this: http://www.americocarelli.com.br/android_5.1.png But I get this:http://www.americocarelli.com.br/android_4.4.4.png This is my custom layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/dialogo_layout_root"...

Background issue

css,background
I am trying to make a background color, but all I got is a coloured rectangle above the footer. Live example: http://solutionsmvo.nazwa.pl/test/ body, html { font-family: Helvetica, Arial, sans-serif; width: 100%; height: 100%; background-color: #582c2c; } What am I doing wrong?...

C# How to change background color of root layout in Windows Phone 8 WinRT

c#,windows-phone-8,colors,background,windows-runtime
I'm trying to change the background color of the main content area in my Windows Phone 8 (WinRT) app. I've tried specifying the color (grey) by adding borders to grids and the main listview. The problem is that I can see the background color change from black to grey when...

Multiple checkboxes, if correct change background image (HTML/Javascript)

javascript,html,image,checkbox,background
Theres a form with 4 answers. 2 of them are correct. If both answered are checked, there should appear some button to check if the correct ones are selected. If that is the case, the background image is supposed to change.

Two colors background Android

android,android-layout,android-activity,background,background-color
I am programming an Android activity and it should have a background of a color in its upper side and another color in its bottom side. The relative layout used is padded. What I usually do is using non padded relative layout and dividing it in in upper and bottom...

iOS Swift m3u8 background play doesn't work

ios,swift,background,mpmovieplayercontroller
I try to background play .m3u8 after pushing HOME button and coming back from foreground. It stop when pushing back button. Please any help. @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application...

Sending requests in background android [closed]

android,background
What is the best way to send requests sequentially in background? I'm having trouble deciding between an AsyncTask, Service or Runnable due to the complexity of my problem. Basically I have a DB, with pending requests, and I want to create a "background job" that doesn't get killed until he...

Android background image not showing

android,background
I'm currently working on a Android project, which requires me to put an image as background for some activities. I'm using Android Studio to develop the app, and have tested the app on multiple devices. At first I had put the background image in the drawable folder. This resulted in...

Updating UI From a background thread on iOS

ios,user-interface,background,thread-safety
On iOS, its well documented that the UI should never be updated from a background thread. Rather the main thread should be the sole interface to update the UI. My Question is why? Is it because UIControls are not thread safe and hence there is always the possibility of main...

Disabling UILocalNotifications after closing app

ios,background,core-location,ibeacon
I am using beacons in my app (app set to background) and I am setting series of UILocalNotifications on beacon:DidExitRegion: (kind of alarm when beacon is lost). Edit: When app is in the background, user exits region, then the notifications are set properly. When user wants to close the app...

How to have an image in background of plot in matlab

matlab,plot,background
I have a plot from a network of lines in 3D space and I have one image from the object as well. Now I want to put the image file in the background of my plot as a fixed background and then the network should be plotted on that background....

Want to hide scrollbar when a absolute div already has a 100% height

html,css,background,html5-video
I am having a client's Html Site Project, Where I used a video in the background of site's homepage, I used a absolute div outside of video with 100% height and width, My Client don't want a scrollbar on y-axis & I also cant use overflow:hidden; property of CSS, may...

Show icon while app is in background. Android

android,background,popup,icons
My goal is to create an application that even if it is in background. to be more clear I show you some examples of what I would get. Is it possible to do. ...

How can I have different background colors in the same animation?

css,animation,colors,background,animated
On my nav bar I have 4 different buttons and I want each one of them to have a different color when I hover them. Here is a demonstration. And here is the code used for the animation: .hvr-underline { display: inline-block; vertical-align: middle; -webkit-transform: translateZ(0); transform: translateZ(0); box-shadow: 0...

JavaFX button background image

image,button,background,javafx
I have problem with setting backgroundImage on button in JavaFX. Image newGame = new Image("File:/CSS/nova_hra.png"); BackgroundImage newGameBgr = new BackgroundImage(newGame, null, null, null, null); Button buttonNewGame = new Button("Nová Hra"); Button buttonLoadGame = new Button("Načíst Hru"); Button buttonStatistics = new Button("Statistiky"); Button buttonExit = new Button("Konec"); buttonNewGame.setGraphic(new ImageView(newGame)); //buttonNewGame.setBackground(new Background(newGameBgr));...

CSS gradient on border

html,css,background,border,gradient
In the following code, the gradient has a width of 100% and goes over the border on the left side. JSFiddle input { background: transparent; font-family:'Open Sans'; border: 1px solid rgba(255, 255, 255, 0.2); box-sizing: border-box; padding: 5px; color: rgb(164, 164, 164); } input:focus { outline: none; border: 1px solid...

JavaFX - how to get background color of Tab, Button, etc

java,animation,colors,javafx,background
Problem description: I can't get background of object in JavaFX. I don't mean Shapes, but normal Nodes like Buttons, Tabs and others. I don't know how to access to theirs background color. What I want? I am developing IDE and I want to run Color animation on tab with file...

iOS: change background color using multiple buttons

ios,select,button,background
I am trying to change background color randomly as an effect overtime any of the buttons on the screen are tapped. I would like to control this effect with an On/Off UIButton. Tapping ChangeColorButton just logs “Off” never “On”. Not sure what to do? thanks everyone!! edited code so far!!...

how to change the background color of TextView if EditText is empty in android?

android,background,android-edittext,textview,textchanged
I am using Fragment class in which I want to change the color of TextView When EditText is empty after text is changed. I am able to change the color of TextView on text change but when the text is clear the TextView background color doesnot change to previous one....

Buttons Over Image Android

android,button,background
I am developing a feature for my app where the user can click on buttons that are placed within an image background. The problem: I need to place the buttons to a particular location within the image so it doesn't look displaced and works dynamically to different kind of devices'...

Why is my UL sub-menu taking the background of it's grandparent?

html,css3,background,navigation
I'm working on a menu and on small screens I have it using gradients for backgrounds. There are 4 levels to this sub-menu, and each have their own color backgrounds. But for some reason my 4th level sub-menu is taking the background color of the 2nd sub-menu (it's grandparent) instead...

How to set a Background of a CustomView behind the Canvas?

android,canvas,background,android-custom-view
I have got a custom View like this: public class ShadowTextView extends TextView { ... @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); final int parentWidth = MeasureSpec.getSize(widthMeasureSpec); final int parentHeight = MeasureSpec.getSize(heightMeasureSpec); final int minSize = Math.min(parentWidth, parentHeight); mShadow = new Paint(Paint.ANTI_ALIAS_FLAG); RadialGradient gradient = new RadialGradient(...

Change Background image in WPF using C# [duplicate]

c#,wpf,image,background,resources
This question already has an answer here: Change WPF window background image in C# code 3 answers I'd like to change the background image of my WPF application by a button. I know how to do it using WindowsForms, but in WPF I failed. I found a solution already,...

Why I am unable to set ImageBitmap to RelativeLayout here?

android,android-activity,bitmap,background
I'm trying to select a background image from gallery and set it as Activity background. But the problem is here when I set RelativeLayout instead of ImageView, it gives me error on setImageBitmap, what;s the reason here? Here's my code: I referred to this tutorial : http://viralpatel.net/blogs/pick-image-from-galary-android-app/ Thanks in advance!...

CSS background elements on both sides of the screen

html,css,background,styles
I want to achieve this: two decoration elements (sort of waves) on both sides of the screen. Here's what I've got so far. If more elegant solution is possible (like styling with CSS only body element), then please advise. Below solution would be fine, if both < img > elements...

CSS background property applied to HTML Input element within Table cell

html,css,background,html-table,html-input
JSFiddle When you hover over an input field in the table, the entire cell turns grey except for a few pixels at the top. Why is that? I've tried setting everything I can think of (margin, padding, box-shadow, etc) to 0 or none, but to no avail....

iOS Swift - Reload location function with NSTimer for app background doesn't work

ios,swift,background,location
I've got a problem with location services. I can't set up a function that updates my location coordinates in the background by a NSTimer. Here is my code from appDelegate: var locationManager = CLLocationManager() func applicationDidEnterBackground(application: UIApplication) { self.locationManager.delegate = self self.locationManager.desiredAccuracy = kCLLocationAccuracyBest self.theTimer = NSTimer(fireDate: NSDate(), interval: 40,...

Not able to run service indefinitley in background

android,service,background
I am working on below code to run a service in background,but the problem is i am not getting how to run the service indefinitely even though the app is closed,here on press of back my service is stopping.I have read many tutorials but still confused with this. public class...

Background Fetch iOS - Terminated Apps

ios,ios7,background,background-task,background-fetch
I think this might be answered quiet a few time, but still there are some unknown cases that I wanted to clarify. I have been looking at Background Fetch API for one of my iOS application. I learned from several articles that fetchNewDataWithCompletionHandler will get called when OS decides to...