what is wrong about the layout in Android Studio - android-studio

i installed Android Studio but in the video there was a phoneenter image description here here's the difference, mine:
and his screen:

I'm assuming you want the Design view instead of the Text view. You would want to look to the lower left of the coding window and select Design:
Also I see that you are new to StackOverflow. In the future I suggest you read this: https://stackoverflow.com/help/how-to-ask to understand how to ask a good question.

Related

Hide icons in Android Studio and set Layout zoom to be 25% by default

Is there a way to hide icons highlighted below in Android Studio? Also, is there a way to set layout Design view zoom to a specific value, say 25% by default. I did search the forum as usual but couldn't find specific answers. If there are already, would appreciate the link. Thank you.
Please note the second part of the image is rotated left by 90 degrees to minimize space. Android Studio 3.6.1 on Windows 7 Ultimate.
PS: I did try distraction free mode, even then some of these icons wouldn't go away.
Raised an enhancement request with Google, apparently they thought well of it. Seems its fixed per the tracker here. Hopefully it will roll out in next release.

Adding a text box in Android Studo

Trying to use AndroidStudio (3.4.2) for the first time and it appers to be substantially different to the tutorial at
https://developer.android.com/training/basics/firstapp/building-ui
For example:
There is no layout editor toolbar let alone a show button.
There is no autoconnect button
It doesn't show any wiggly lines from the middle of the blue square to its edges.
When adding a text box it goes to the top left and can't be moved.
WTF is going on? This is awful!
So I know this may sound like the hard answer, but in the long run it will make life 1000x easier.
You need to learn XML to design the activities. It's fairly simple and really easy to research. The reason the textbox can't be moved is because the default layout is ConstraintLayout. In order to fix this, go to the xml file and change the Constraint layout to either Relative layout or Linear Layout. In the end, its more simple to learn straight xml.
I suggest you learn Android programming from here or somewhere else because the Android documentation can be confusing especially for a beginner like yourself and trust me, I've been there.

How to enable/show Device screen in component Tree of resource layout xml file?

I want to see the whole view of my phone instead of just the screen in xml resource layout when designing the UI pane, so as to give me a better idea of how the app will look like on the phone.
A similar Question has been posted a month ago Can't find device screen option in my component tree window but the answer wasn't helpful. In addition, I have tried searching online but no relevent threads/forums related to this could be found. Hence seeking the public's advice on this. Thanks in advance from a Beginner! :D
If your android studio version is between 2.2 - 3.1 you can
1- Click on designer preview window
2 - press F button from your keyboard
Taken from android studio designer preview: how to include device frame?

Design View Structure

I upgraded my Android Studio and then look has changed. I can no longer see the "Phone View".
This is what I see
And this is what I was seeing (Notice the Blue Bar or the phone interface on the left)
I searched google for Android Studio Design Structures and other terms. I also wen through their tutorails but I coudn't figure it out. been at it for couple of hours now. Hope I am not missing something very simple?
In the UI you have a dropdown with an eye icon for some viewing options. In that dropdown you should enable Show Layout Decorations.

Android Responsive design using android studio

Hi all !!
I'm newbie to android, Can i get any solutions to make my android app layout that fits in all screens.
If there is any tutorial on it, that would be appreciated !!
Thanks,
Create the following folders in res and add the xml in that
res/layout-small
res/layout-normal
res/layout-large
res/layout-xlarge
And open it from studio layout and make changes.
this link helps you.
The Android resource system gives you the tools to provide alternate resources based on the available width, height, or smallest width — important measurements that serve as the basis for choosing when to change our UI based on the space available.
Width and Breakpoints
Width is perhaps the most important dimension when it comes to choosing when to change your UI. This is because width is the basis for the breakpoint system.
A very good example is here

Resources