translucency

MaterialDrawer library turns a translucent status bar into a opaque one

梦想与她 提交于 2019-12-12 02:27:28
问题 I am using MaterialDrawer library for adding a drawer to my activities. The activities must have translucent status bar. Like the picture below: This is the top part of my activity, when the library has not added to it yet. When I add a drawer using the library: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); DrawerMenu.addTo(this); } } And the

Java Window Translucency on Linux

可紊 提交于 2019-12-11 03:14:41
问题 Using Java 7 window translucency on Windows XP SP3, Vista, 7, 8 and Mac OS X Mountain Lion works great. However, on Linux I cannot get it to work properly. Using the tutorial found here, specifically the GradientTranslucentWindow example, it seems to work great. But if you change the color to something other than white (the only change I made was set R to 0 in the example code), the frame does not composite correctly: The isWindowTranslucencySupported method returns true for PERPIXEL

Java Swing - Translucent Components

梦想的初衷 提交于 2019-12-11 01:56:51
问题 I recently asked a question about translucent components causing odd artifacts from seemingly not updating properly. The answer I received caused the artifacts to go away, but at the cost of translucency. The solution was to- for every translucent component- also call the setOpaque(false) function. This way, Swing knew that it needed to redraw the background behind those components. However, this came at the cost of the translucency that I was trying to achieve. It caused the components to

Java Window Translucency Animation Flicker on Linux

不羁的心 提交于 2019-12-08 02:09:16
问题 I'm trying to do animation in Java with a translucent JFrame. I have modified the demo code from the Oracle Java Tutorials here. Specifically the GradientTranslucentWindowDemo. The following code works great in Windows XP SP3 up to 8 and Mac OS X Mountain Lion and even in Linux mostly . The problem in Linux, and what I need help with, is the animation is flickering. I'm running Ubuntu Linux 12.04 LTS 64bit with nVidia drivers, Metacity and Compiz. PERPIXEL_TRANSLUCENT reports true and is

Translucent JFrame border

﹥>﹥吖頭↗ 提交于 2019-12-07 08:32:21
问题 I want make JFrame border transparent, so I am trying to do so using my own Border class... private class ShadowBorder extends AbstractBorder { private static final int RADIUS = 30; @Override public boolean isBorderOpaque() { return false; } @Override public Insets getBorderInsets(Component c) { return new Insets(RADIUS, RADIUS, RADIUS, RADIUS); } @Override public Insets getBorderInsets(Component c, Insets insets) { insets.top = RADIUS; insets.left = RADIUS; insets.bottom = RADIUS; insets

Java Window Translucency Animation Flicker on Linux

我是研究僧i 提交于 2019-12-06 13:21:44
I'm trying to do animation in Java with a translucent JFrame. I have modified the demo code from the Oracle Java Tutorials here . Specifically the GradientTranslucentWindowDemo. The following code works great in Windows XP SP3 up to 8 and Mac OS X Mountain Lion and even in Linux mostly . The problem in Linux, and what I need help with, is the animation is flickering. I'm running Ubuntu Linux 12.04 LTS 64bit with nVidia drivers, Metacity and Compiz. PERPIXEL_TRANSLUCENT reports true and is working well. Is there something I'm missing in the following code or is there something on the Linux side

Translucent JFrame border

眉间皱痕 提交于 2019-12-05 15:01:08
I want make JFrame border transparent, so I am trying to do so using my own Border class... private class ShadowBorder extends AbstractBorder { private static final int RADIUS = 30; @Override public boolean isBorderOpaque() { return false; } @Override public Insets getBorderInsets(Component c) { return new Insets(RADIUS, RADIUS, RADIUS, RADIUS); } @Override public Insets getBorderInsets(Component c, Insets insets) { insets.top = RADIUS; insets.left = RADIUS; insets.bottom = RADIUS; insets.right = RADIUS; return insets; } @Override public void paintBorder(Component c, Graphics g, int x, int y,

Layout is under StatusBar and Soft Keys

删除回忆录丶 提交于 2019-12-05 00:59:13
问题 I'm not sure how I got this, and I can't find anything similar, but my software navigation and status bar are being drawn over my layout instead of my layout being fit between them. How do I get my layout to be drawn between them instead of under? Edit: It seems this is the culprit, located in the styles: <item name="android:windowTranslucentStatus">true</item> <item name="android:windowTranslucentNavigation">true</item> 回答1: Just fix this: <item name="android:windowTranslucentStatus">false<

How to use a UIVisualEffectView inside of a circle

别说谁变了你拦得住时间么 提交于 2019-12-04 08:33:23
问题 I'm making a custom control circle. Part of the circle may be transparent. It would make more visual sense and look better if it was translucent instead of transparent. Because views are rectangular, and I only want the circle to be translucent, not the rest of the rectangle, this is a problem. The UIVisualEffectView is behind the custom control. (Without anything rendered inside of the circle for debugging purposes) As you can see, the view is blurring things outside of the circle. I don't

Translucent Databases

不想你离开。 提交于 2019-12-04 08:27:58
问题 I am building an application with health information inside. This application will be consumer-facing with is new for me. I would like a method to put privacy concerns completely at ease. As I review methods for securing sensitive data in publicly accessible databases I have frequently come across the notion of database translucency. There is the original book on the subject and an excellent tutorial on the subject from Oriellynet. My concern is that I have seen very little information