Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.
π About the author
As we all know, life is a long process of constantly overcoming difficulties and reflecting on progress. In this process, there will be a lot of questions and thoughts about life, so I decided to share my thoughts, experiences and stories to find resonance!!
Focus on Android/Unity and various game development tips, as well as various resource sharing (websites, tools, materials, source code, games, etc.)
Welcome to pay attention to the public account [Mr. Empty name] for more resources and communication!
π premise
The current environment
2020.3.1 Patch 2 version was last downloaded on October 8, 2021
π Practice
π Panel Related
The Stucture panel is located at -90 degrees to the far left of Android Studio. Developers who have come from Eclipse know that tag changes not only show the code structure, but also show methods, member variables, and so on, giving you a glimpse of the skeleton of the class. Click to quickly navigate to the location.
Support not only code, but also layout and other things.
π code area white vertical line
This line is the line breaking position when the code is formatted. When the code length exceeds this position, [Ctrl+Alt+L] formats the line breaking position.
The setting position is in file-settings-editor. There are two options: one is to display or not, and the other is to adjust the position (i.e. width) of the vertical line.
π Preview page
Android has matured so far. I believe that many companies have their own adaptation, adaptation is not difficult to solve the problem. Open source adaptation and today’s toutiao adaptation is the most hot.
Anyone using AndroidAutoSize must have changed the page preview Settings.
We can’t expect to buy all of the company’s phones and tablets in all of their resolutions, even though all of the other options will certainly include various interface previews. Even if you buy, this plug plug plug data line is hard.
What? You mean wireless debugging? The installation process is not time-consuming. It’s not worth the cost, so it’s best to use the dedicated preview tools provided by Android Studio to preview the software before you start debugging on the real machine. Save trouble and trouble.
In addition to the default Google native resolution of
Custom resolutions are also supported
Some people may not find it in the device list after creation or have to re-select it every time they open a layout.
Select the layout you want to preview and restart Android Studio.
π other
π’ author: Kom and Kom in Kom
π’ reprint instructions – be sure to specify the source: Zhim Granular’s personal home page – column – Nuggets (juejin. Cn)
π’ welcome to like π collect π message π