Design screen disappeared in Android studio 2.2 - android

Recently I was playing with ConstraintLayout introduced in Android Studio 2.2 preview.
Screen was like above, but suddenly I have pressed few keys and that black screen disappears.
Does anyone have any idea about how to get back the design screen?

There are 2 buttons in the bar above that screen
The one selected here toggles the design, the one to the right (the blue grid) toggles the blueprint.
So in your case click the Show Design button to make it reappear.
If your Android Studio window is too small, these buttons will auto-hide, so if you can't see them make sure that your window is big enough.
N.B.: if both screens are visible and you click Show Design, it will hide the blueprint, and vice versa. This may be a bug.

Related

Android emulator - Soft buttons showing beside the screen instead of on the screen

I can't seem to get the soft back and home buttons to show at the bottom of the Android emulator, the way they would display in an actual phone or tablet. I have seen answers to this, but I have applied them (the main one is unchecking "Has Hardware Buttons"):
And they do not work. I think it's because the soft buttons already display on the right-hand side of the emulator, so they don't need to show on the actual emulator screen:
How do I move the soft back and home buttons from the right side of the emulator, to the actual emulator screen?
Go to settings and then search for "system navigation", then select 3 button navigation:

Android 11, keyboard bottom area is not working after app launched via Custom launcher and then back from app Recent List

In Android-11, I enabled the Gesture navigation in the Android System Settings and launched a sample application(which contains only one editText on the Screen) using my custom App Launcher. you can see in the below screenshot,
Gesture Navigation means there is no 3-button navigation, similar behavior of iPhones behavior,
You can see in the above image at the keyboard bottom, that there is some additional space available, so in order to remove the space, I used the below code to hide that
WindowInsetsController wcon = getWindow().getInsetsController();
wcon.hide(WindowInsets.Type.navigationBars());
wcon.setSystemBarsBehavior(WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE);
So, after I used the code, I got the expected behavior as below, in this stage everything is working fine, (the additional area is hided)
But,
Once I moved this from recent apps like below and again moved back from the normal stage, the Bottom keyboard area touch is not working, I highlight using the Red Color,
This only happens, when I launched the app using Custom App
What went wrong with this behavior, Why is the bottom area not working?

How to disable blueprint view on Android Studio permanently?

When editing layouts, my computer lags a lot when it shows both the Design and Blueprint views like so :
I can press that blue icon at the top left to disable Blueprint but I have to do it for every layout. Is there a way to permanently disable it for Android Studio?
Yes, you can do this just click on blue print design and press 'B' button and it will hide and you want it again then press "B" again and again.
hope it works..

Kindle Fire status bar and soft key bar bug

I am developing a magazine reader application aimed at the Kindle Fire. In landscape mode the built in softkey bar and status bar in the Kindle's operating system leave little room for my content so I have opted to run the activity in fullscreen mode using the following theme for the activity:
android:theme="#android:style/Theme.NoTitleBar.Fullscreen"
This works fine, the status bar is hidden and the softbar is minimized like so:
I can bring up the menu bar by dragging it up like so:
The bug arises when I then click somewhere on screen to dismiss the softkey bar. The bottom bar slides back away, the top one does too but the space that it took up becomes a black void and my app is pushed down underneath it so my tab bar at the bottom of the app is now unusable:
I am using a tabhost activity here and the tab I am on in these screenshots is the actual reader section of the app. This subactivity uses a PDF viewer widget which is written using native code and this bug only happens on this tab. If I switch to one of the other tabs which contain no JNI code this bug does not happen so I'm pretty sure its the combination of the Kindle Fire OS, the fullscreen activity and the use of JNI code.
Has anyone else experience this issue?
Any help much appreciated!
Thanks
There are a couple of fullscreen modes for the Fire (at least the new ICS based ones) - check out https://developer.amazon.com/sdk/fire/cx-guidelines.html#Fullscreen for the options. I suspect the ICS Full Screen mode will be what you need
Also it's probably worth trapping the onOrientationChanged and onSizeChanged events to make sure you re-draw the screen correctly when the menu/toolbars appear and disappear per the screen layout sample at https://developer.amazon.com/sdk/fire/samples.html

Visual effects, and Activity redraw after pressing home button and come back

I am programming an Android app and it seems to work well, but when the user presses the 'home' button, and after returns to the app, the activity has changed his position some pixels, and due to this some buttons are hidden.
It only happens in some phone models , and only with visual effects enabled on the operating system.
It seems that the activity is drawn before the top bar of Android dissapears (the bar with the battery info, wifi... etc), and the activity starts to draw under the place of this bar.
What can be happening? how can I solve it?
Thank you very much!
PD: I am using a relative layout on this activity, and some layouts inside placed at top and bottom.
PD2: I forgot to tell that the app is in "no tittle bar and fullscreen".

Categories

Resources