Android : part of the layout transparent - android-layout

I have a zone in my layout that I want to be transparent, while the rest of the layout has a black or an image in the background (kinda like a window effect). Is it possible in android?
Edit : Someone asked, so here is what Im trying to do :
The red part is supposed to be transparent, and there will be a movable widget in its place. The point is that when the widget move, what's behind the application appears.

Here is a link on how to create a transparent Activity.
After creating a transparent activity, make sure that every other component that you add to the xml (except for the zone you want to leave transparent) are opaque. (i.e. have their backgrounds set).

Related

Layout management inside Cairo DrawingArea/Context?

I have a window in mono gtk#, which has lot of VBoxes & HBoxes. These boxes contain some buttons, labels, and some other widgets also. Now I need to make this window alone to transparent.
I created one drawingArea by referring zetcode page.
But inside this drawing area I'm not able to do the arrangements of my widgets, one Move function is available, but it is not much use for me. So how do I do widget arrangement neatly inside a drawingArea?

Tile/live tile change color when windows change theme UWP

In my UWP application in tile I set black color of background, and icon has transperent background, it's look very well. But then i change theme in windows 10(desktop) to white and my tile change background color to white. Why is it happend, when i set color - black in manifest of application. Like in this application.
Best regards, Dmitry
I can't add a comment but if you mean the high contrast setting I do not believe this is possible since the tile settings cannot be changed at runtime and there is no other way to set the color outside of the apps manifest. You can create override the styles for other controls but not for the tiles properties.
"Note It’s possible to override the system color resources for high-contrast color and accent color by creating resources with the same names, but it’s a best practice to respect the user’s color choices, especially for high-contrast settings. Xaml Theme Resources
More on high contrast themes here: High Contrast Themes - MSDN
I would instead try setting the image background to not be transparent and take up the whole space of the tile. You won't be able to change it but it appears you want it always black anyways. I am not certain this will work in your scenario though since you are using a live tile and not just an image.
You may also want to look at using a secondary tile: Theme Resources

Transparent icon in start menu for universal app

I'm developing a universal app. I have a list of icons in the manifest. The icon on the taskbar is fine, transparency works.
The start menu icon doesn't have transparent edges.
No edges.
The list of icons that I have.
How would I make the edges transparent? Should I add any other icons?
This is by design as the background (behind the tile itself) may be colored quite differently. In the start menu, there's a dark background whereas there's a white background in the Cortana search. Maybe try sending MS your wishes via the feedback app :)
Seems like that it's by design, as you can see, default Windows Apps behave the same too, even those which use transparent color for their logo (like Calculator, Mail, etc).
However, If you set background color of logo and tile to "transparent" (in app manifest) your app icon may get displayed in start menu with transparent background in some circumstances like when Windows is in hight contrast theme.

MergEXT MergZXing layer and barcode not reading

Just started working with this awesome external but have a couple of questions.
When the control is evoked, is it always the top layer or can I have a background transparent image on top of it so I can frame the control nicely?
Also, my testing seems to read most Barcodes but when it comes down to reading Barcodes on hard drives, the control does not want to decode those.... Too dense of bar code pattern?
I am very impressed thus far with the ease of use of your externals. Makes we want to code more for mobile devices!
an overlaying transparent image is not possible, as far as i know.
but couldn´t you use
command mergZXingControlSetRect pLeft,pTop,pRight,pBottom
to define the rect of that scanner after creation
or
command mergZXingControlCreate pLeft,pTop,pRight,pBottom
to create the scanner control in the specified rect.
Set the rect smaller than the width and the height of the screen.
You could then use an underlying image, which is displayed outside of the scanner rect, to show the frame around scanner control. Did not test it myself, but i would assume that this should work.
Unfortunately the native controls in externals and the ones the engine provides are added as views on top of the LiveCode view. That means you can't intermingle LiveCode controls with them. One thing that some users have done is add a web view with a transparent background and a load a png image. If you create the barcode view first and the web view second then the web view will be on top.

Drawing a Rectangle that never dissapears

I have to draw a transparent square, that never disappears from the user's interface, by clicking to other windows the rectangle remains, only the windows/application content has to be shown behind.
I have thought of doing it with OpenGl or Flex or Canvas , but the problem is whenever I click on another window the programmed rectangle disappears .The rectangle has to act as a default image but has to be always at the foreground.
Do I have to mess with the operating system(Linux, Mac or Windows), by creating this image as default?
here is one example
http://i42.tinypic.com/15g3vxh.png
You can do that with Java pretty easy. See this link for code examples. If you got your transparent Image, you can use the setAlwaysOnTop(true); Method on the Object, and you are good to go. The only things that could get in front of that are other Applications that are using that method.

Resources