Questions tagged [layer]

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

This tag is ambiguous. Consider using more specific tags to better reflect the question's content.

If the question relates to Geographic Information Systems, consider whether the question is better suited to the GIS Stack Exchange.

2129 questions
0
votes
1 answer

layer when tap button

I have this code in which I leave the "ColorCell" class to my cell, after which I want to click on a button of my collectio, I created ul layes around (only the selected one) to get an idea and know which premo. the code works, debugging within the…
user10652382
0
votes
4 answers

How to set shadow for custom view of UITableViewCell in swift 4.2?

I have tried this but didn't work for me: cell.totalView?.layer.shadowColor = UIColor.yellow.cgColor cell.totalView?.layer.shadowOffset = CGSize.zero cell.totalView?.layer.shadowOpacity = 1.0 cell.totalView?.layer.shadowRadius =…
0
votes
1 answer

Layer over zxing scanner

I'm writing an App for Android which uses the ZXing scanner. I'd like to place a layer over this activity to show some customized messages or images while the user is scanning. Is it possible? If so, how? Thank you very much!
jamp
  • 2,159
  • 1
  • 17
  • 28
0
votes
0 answers

correct layer swift programmatically

As you can see from the picture, despite the "masksToBounds" I see the layer under the botton x. How can I solve? class StickerView: UIImageView { let stickerIdentifier: String let xButton = UIButton().then { …
user10652382
0
votes
1 answer

Is it possible to add an Image to a CGFloat

I am trying to create a progress bar that goes from 0%-100%. When the progress reaches 100%, I would like it to fade from the percentage to an image such as a check mark. I am setting this progress bar up as a CAShapeLayer and inside of it, I would…
user9951119
0
votes
1 answer

Change subview layer position

Good evening, I have been trying to figure out how to fade a screen when I press a button in order to give a subview a more distinct appearance. I have researched zPositions and I thought that implementing this feature within my code would help.…
user9951119
0
votes
1 answer

How can I get multiple outputs in an LSTM network in Python with Keras and Tensorflow?

I am working by first time with LSTMs in Keras and Tensorflow in Python, and I want to create a neural network with some layers and which gives 10 output values. I generated multiple layers in a neural network, and I created an output DenseLayer of…
jartymcfly
  • 1,945
  • 9
  • 30
  • 51
0
votes
0 answers

Layer remove swift 4

This function allows me to save a UIImageView called sticker containing a UIImage. I paste the layers to 0 and it works correctly. But if I insert 2 or more UIImageView called "sticker", I remove the layers only one. I need to remove the layers from…
user10674377
0
votes
1 answer

to rotate whole imageViews in linearlayout in y axis

There are many answers to how to rotate image in y axis. Also, there are answers to rotate layer in z axis. However, what I want is to put many image side by side in a linear layer (or whatever), and rotate them in Y axis for a specific degree at…
0
votes
2 answers

Javascript hide/show layers

I am working with hiding and showing divs in javascript, basically I want to show one div, then when a button is clicked hide that div and show another. I can't quite figure the javascript out here's what I have at the moment but the second layer…
Amy
  • 7
  • 1
  • 3
  • 9
0
votes
2 answers

Painting on JPanels

I'm writing a program that will be just a simple shape maker, I'm supposed to my main panel, ShapeMakerPanel, along with 2 panels on that one, controlPanel(which holds buttons for choosing the shape and clearing it, etc) and drawingArea (where the…
0
votes
0 answers

Swift shapeLayer.fillColor not work in cell contentView

I have a chartView and a customized tableViewcell. And I try to use chartView add on my tableviewcell. This ViewController is child ViewController. I push to this ViewController, and I want to call tapIndexAction(index: 0) to hightlight my bar of…
JimmyLee
  • 507
  • 2
  • 7
  • 24
0
votes
0 answers

Printing NSView to PDF not working as expected

I converted in PDF an NSView (PDFContentView:NSView) with the method NSPrintOperation. This NSView contains 2 subviews (Drawing:NSView). This subviews are drawn using the drawRect method. The expected result is correct when I display my view in a…
0
votes
0 answers

how to layer an image over another

My code below kind of works but the frame is not symmetrical and I am using 2 images let bottomImage and let frame and only let frame should be used. To give you a example check out the image below I created. Frame should take the place of the black…
user8105388
0
votes
1 answer

Can i get the top layer of UITextview to get html special characters before it encoded?

i made an app that show some text in UIWebview, but the text is edited or input in UITextview. My problem is, i want to show "<" and another HTML special characters in UIWebview, but when i type it in UITextview, it got something wrong. When i…
R. Dewi
  • 4,141
  • 9
  • 41
  • 66