I have problem. My problem is visual effect dissolve. I use effect dissolve for transition show/hide image. On device it's working fine. But on desktop it's not working
This simple code :
lock screen for visual effect
hide img nImg of grp "intro"
show img (nImg+1) of grp "intro"
unlock screen with visual effect dissolve slow
Visual effect dissolve support desktop?
Try quoting the effect description;
lock screen for visual effect
hide img nImg of grp "intro"
show img (nImg+1) of grp "intro"
unlock screen with visual effect "dissolve slow"
(works for me on version 6.6.2)
Related
When I open an activity layout on Layout Preview, I want to zoom in but when I click to zoom in button nothing happens. Also, zoom out and zoom to fit screen buttons not working.
What I tried:
Updated Android Studio to version 3.3.
Done all Android SDK updates.
Updated NDK.
Clean Project.
Rebuild Project.
Create a new project.
How can I fix this problem?
Edit:
I think I found the solution. If your zoom level on 24%, zoom in and zoom out buttons not working. To fix the bug, lower layout preview window size till zoom level become 23% and lower. After this, zoom buttons starts to work again.
Screenshots:
https://prnt.sc/mgkphw |
https://prnt.sc/mgkpxu
It is a bug in Android Studio; at some zoom levels (e.g 24% or 9% or whatever) the zoom buttons stop working. One fix is to keep changing the 'Device for Preview' type and find the one on which zoom buttons work.
But the best fix that worked for me was to minimize all the tools on the bottom, i.e Run, Logcat, TODO, Terminal, Build and more ... Then the zoom buttons start working. Even you open the tools back again, the zoom will keep working.
Just to verify the solution; re-open one of the bottom tools (e.g Logcat) and click 'Zoom to fit screen (ctl+0)', most likely the zoom buttons will stop working again. Simply minimize the tools again and it's fixed.
Normally the vertical scrollbar in the text editor (code view) of Visual Studio Express 2012 runs the full length of the window you're viewing the text in.
After installing on a new machine, my new scrollbar is two sad little arrows, one up, one down, and cannot be navigated by moving the indicator inbetween them as there isn't one. If I split the view, I get two sets of scrolling nubs.
I've tried disabling and re-enabling the vertical scrollbar in Tools > Options > Text Editor > General. When disabled the miniature scrollbar goes away and comes back miniature if I re-enable.
Trying to figure out what setting or group of settings regulate this and how to get back my proper scrollbar.
Following worked for me
Go to %System Drive%\Users(user-account)\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
Rename the cache file (Microsoft.VisualStudio.Default.Cache) present there to 'Microsoft.VisualStudio.Default.Cache_1'.
Restart the visual studio.
I am getting familiar with Android Studio and now prefer it over Eclipse. However I find the window handling of Eclipse more efficient and flexible.
Is there any way to open a second window for the same project (like you can if you have separate projects)? Basically the "New Window" function of Eclipse.
Is there any way to store different window layouts and switch quickly between them (like the perspective of Eclipse)
I am developing on a Notebook, so space is limited. I rather switch with Alt+Tab between IDE windows than resizing 5 docked windows.
Opening a separate window (Qn #1)
This is possible. For an existing window tab, click and drag the tab outside of the window area of Android Studio. This is easier if the Window is in a restored state. So:
Ensure that there's some desktop area that's not covered by Android. This could be by ensuring the Android Studio window is not maximized (as you'd do on your notebook), or by having a dual-monitor setup.
Bring the window to be 'floated' to be the active tab
Drag the window outside of the Android Studio window area, and release mouse.
The window is now floating. To make it tabbed again, just drag it back to be where it was (beside other tabs).
Alt+Tab navigates between floating windows and the main IDE window.
Floating tool windows
Tool window tabs can be dragged in the same way:
... such that they float like this:
Window layouts (Qn #2)
It appears that there's only the option of a 'Default' layout, and after changing this (e.g. pinning tool windows), the option to revert to a previously saved 'Default' layout.
To save a layout, select 'Window' -> 'Save Current Layout as Default'. Now after re-arranging any tool window layouts, the saved layout can be restored via 'Window' -> 'Restore Default Layout'
Tool windows such as '1. Project', '2. Favorites', 'TODO', 'Terminal' etc. can be dragged to be in different border areas of the application. It's the arrangement of these tool windows that is affected by the layout feature.
I'm writing a game that asks the user to click on an image, which then reveals a different image. I'd like to make the transition between the images look like a playing card being turned over on both Android and IOS.
I've done a bit of research, but it all seems to indicate that the "curl" visual effect will do what I want, but is only available on IOS ( I can't test this as I don't have access to a MAC at the moment. )
Is there a cross platform way of doing this "turning a playing card over" sort of transition?
You might scale the (front) image control vertically until it is only 1 line and then scale the second (backside) image from 1 vertical line to its original size.
Only very few visual effects are cross platform. One of them is the reveal up/down/left/right effect. You might use this effect to display a neutral, e.g. gray or blue picture after hiding the front side image and before showing the back side image. Something like this:
lock screen for visual effect
hide img "front"
show img "intermediary"
unlock screen with visual effect reveal left fast
lock screen for visual effect
hide img "intermediary"
show img "back"
unlock screen with visual effect reveal right fast
I know it isn't ideal, but if you want it to be cross platform, you need to find a workaround. Why don't you check for the platform and write a different conditional routine for each platform?
I think the effect you want is flip and yes it's only available on iOS at the moment. There are a couple of iOS visual effects that push the image into a UIView and animate that with native methods. This blog post indicates it would be possible to implement something similar on android but it would need to be in the engine: http://www.techrepublic.com/blog/software-engineer/use-androids-scale-animation-to-simulate-a-3d-flip/
I am developing Windows Store Apps for Tablet using VS2012. Right now i am creating splash screen for my application. My requirement is the splash screen should be display full screen in my app.
but it is working as Center of the screen. Can any one help regarding this...
The answer is that there is no way to create an official splash screen that is full-screen. A splash screen has to use a 620 x 300 pixel image, where it is a normal splash screen or an extended splash screen. However, you can match the background color around the splash screen to the color of the splash screen image (using the instructions you already found), which makes it appear like a full-screen image, even though much of it is just color.
AFAIK a splash screen has to be centered, but maybe a valid work around would be to create a start page (regular xaml) and have this one displayed as initial screen as soon as the splash screen is gone.
But this would mean that your startup time has to be quite fast.
Maybe it's an option for you.
Open the "package.appxmanifest" manifest file.
The manifest should automatically open in the Microsoft Visual Studio Express 2012 for Windows 8 Manifest Designer.
Open the Application UI tab and scroll down to the Splash Screen
section. If you are still using project defaults, you should see the
"images\splashscreen.png" path in the Splash Screen field. If you
open "package.appxmanifest" in a text editor, you should see
SplashScreen element as a child of the VisualElements element. For
example, the default splash screen markup in the manifest file looks
like this:
XML
{ <SplashScreen Image="images\splashscreen.png" /> }
Change the splash screen image by using the Browse... button and
confirm that the image was added to your Visual Studio project.
Important The splash screen image you choose must be 620 x 300
pixels using a 1x scaling factor.
In the Background Color field of the Splash Screen section, set the
background color to display with your splash screen image. You can
enter either the name of a color or '#' and the hex value of a color.
Setting a background color for your splash screen is optional. If you
do not specify a color, the splash screen background color defaults
to the Tile background color (the color in the Background Color field
of the Tile section in the Application UI tab). If you open
package.appxmanifest in a text editor, the Tile background color is
specified via the BackgroundColor attribute of the VisualElements
element.
my workaround is make a 620x300 splash .png image with alpha background, so its not a full 620x300 image. the image itself is just a 300x300 logo. my suggestion is just make a small center image (your app logo or something else) and make it blend to the background (gradient or alpha)