where is layout of source - android-layout

if i want get root view,i also by call getWindow().getDecorView().findViewById(android.R.id.content) or findViewById(android.R.id.content).getRootView().so i want to know if i can find the layout of android.R.id.content. could you tell me where is the layout.you can give me a link or other.thanks

You can use Hierarchy Viewer tool, See the definitons and Steps of how to use this tool in developer guide as shown below,
It shows visual representation of the layout's View hierarchy (the Layout View) and a magnified inspector of the display (the Pixel Perfect View).
To get the Hierarchy Viewer started:
Connect your device or launch an
emulator. From a terminal, launch
hierarchyviewer from your SDK /tools
directory. In the window that opens,
you'll see a list of Devices. When a
device is selected, a list of
currently active Windows is displayed
on the right. The is
the window currently in the
foreground, and also the default
window loaded if you do not select
another. Select the window that you'd
like to inspect and click Load View
Hierarchy. The Layout View will be
loaded. You can then load the Pixel
Perfect View by clicking the second
icon at the bottom-left of the window.
If you've navigated to a different
window on the device, press Refresh
Windows to refresh the list of
available windows on the right.
Now with the help of this tool, it shows the content is in Frame Layout, pls refer this output given by this tool.

Related

Find the View and container Fargment information from Click event captures in profiler

I am profiling a new application I am working with. I can see the captured pink circle, I want to find out where the view is ,In which fragment and where the click listener is defined.
Here I can only see the activity information.
It's a big project.
If you are using the latest version of Android Studio, when hovering over the green bar near the top, there should be a tooltip showing the Activity and Fragment.
Regarding how to find out the View, have you tried Android Studio's Layout Inspector? I don't know a single-click way to locate the listener but it may be feasible once you locate the view.

How can you keep the Structure window always displayed in Android Studio 3.5.1?

I'm sure that I open the Structure window in my Android Studio 3.5.1 project, you can see Image 1, but sometimes Android Studio 3.5.1 hide the Structure window automatically.
I hope to keep the Structure window displayed. How can I do?
Image 1
According to the docs you just need to choose Dock Pinned as View Mode of the Tool Window:
You can make a tool window stay open even if your focus is somewhere else, for example, in the editor or other tool window. To achieve that, use the Dock pinned mode when you select your viewing mode.
Here are the steps to change it:
On the title bar of a tool window, click the Show Options Menu icon, from the list of options, select View Mode and the actual mode option.
Right-click a tool window or a title bar and from the list of options, select View Mode and the actual mode option.

Keep taskbar icon, replace MFC dialog

I have a MFC dialog based application. User can change the language of the dialog, and I made this by closing existing dialog, and opening another with changed language. The problem is that the effect in the taskbar is that one icon is removed, and another identical is created in its place. If my application's icon is not the last icon in the task bar it will be perceived as it was moved to the end of taskbar icon set.
I want to retain icon's position in the taskbar, and rather to prevent icon flicker at all from happening. How do I do that?
The application must support OS'es from Windows XP to Windows 7.
EDIT: alternative question for which I would accept an answer is how to create an invisible window that is nevertheless shown in the taskbar, and how to forward relevant window messages from that window to my main window?
Make the dialog a child of another outer parent window. The parent can be a dialog or any other kind of window; all it will be providing is the title bar. If the user tries to resize it it will have to forward resizing commands to the dialog, but otherwise you shouldn't need to do much in the parent window.
Why not replace the dialog with a CFormView instead? That way there's a frame window that wraps around the dialog (which is embedded in a form view) and it's the frame window that owns the taskbar icon.
Create an SDI application that displays a CFormView. Display the dialog in the default language (or whatever langauge the user previously chose) on initialization. When the user chooses the 'change language' option, simply change the form view that's being displayed with a new one.
Bonus feature: with this design, the framework will take care of things like language-specific accelerators and menus for you with no effort on your part.
For more on how to do this, check out http://www.codeguru.com/cpp/w-d/doc_view/viewmanagement/article.php/c3341/Multiple-Views-Using-SDI.htm

Browser Window Gone in Latest Xcode?

Has the browser window been removed from the latest version of Xcode? I've seen this window in an iOS class I watched online and again in a book I have. I can't find anything in the View menu to turn it on.
I'm running Lion and the latest version of Xcode. I created a new project with Core Data turned on and then built it. I then clicked on .xcdatamodeld file and I get a graphic window with the default table in it.
Do you mean the project browser on the left? You enable that using the 'view' buttons on the right side of the toolbar.
The toolbar might be hidden though, so go to the view menu and select "Show toolbar" if needed.
Then select the fourth button from the right on the toolbar, it is the first button in the set of view buttons. This shows the Navigator View on the left of your screen, which has 7 selectors on the top. The leftmost will give you the project browser (project navigator), the one next to it is the symbol navigator.
I hate to be answering my own question again. I like to keep my answer rate at 100%. Since I didn't get a response here, I tried the Apple developer forums. It turn out the Xcode 4.* changed the interface and this series of windows no longer exist. The same functions can be found in other locations.

In Dreamweaver CS5, is it possible to detach design preview (to move to second monitor)

Is it possible to detach the design preview from the code view, for use on the second monitor?
If you don't like Split view (vertical or horizontal) you can put the code view portion on another monitor by using the Code Inspector (Window -> Code Inspector, or F10 on Windows, I think CMD+F10 on Mac ). The Code Inspector is a floating panel that you can place wherever you want. If you make changes in the Code Inspector you need to refresh the document, (F5 on Win and Mac) so that the updates will migrate over.
Beyond that you'll need to live with it unless you stretch Dreamweaver such that it spans 2 monitors and then use split view and adjust the split point.
When you working on localhost try this:
Monitor 1: dw code view
Monitor 2: Firefox with Auto Reload Add-on (Reload page automatically when selected local files are changed.)
You will have better results...

Resources