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

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.

Related

Android Studio 3.5.3 show Design view empty but build is Successful

newbie in Android studio. Using Android Studio 3.5.3 to create app and the Build is Successful
I have the default MainActivity and activity_main.xml
Problem:
when I clicked on the activity_main.xml
- The Design view empty. Thus I can not drag UI like Plain text or others onto the Design activity Layout
Made changes in Style.xml
added the Base in below:
1) style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"
but this does not work.
Need your help to solve this problem.
Thanks
#MikeBottle, There might be a couple of things going on here. It could be because your activity doesn't have theme assigned.
Please check this:
Note: In the design view, when you click the eye icon, it will give you the options to show / hide the layout decorations. It includes the top and bottom status bars. Please check if that changes anything.
Also, make sure the activity has theme assigned.
For the reference, I also included the layout preview to demonstrate how it look when show layout decorations is not checked.

Rendering Problem in Android Studio Layout Preview

I've looked at the suggested answers and none of them get the layout preview to render properly. I have tried changing the theme and lowering the API.
With "AppTheme" selected as the theme, the layout preview does not render elements properly and does not match the emulator. The error messages, .xml, emulator and layout preview are shown in the screenshot.
Please let me know what information is needed. I am new-ish to android studio.
// Edit
The solution given by Jadhu worked with my previous IDE version. However, I also wanted to see the Action Bar in the preview. I tried to use the solution listed in the Jadhu's link but it still did not show the Action Bar.
After updating the IDE, I no longer need to make any changes but the Action Bar still will not appear.
// Edit 2
Make the Action Bar appear by clicking the "Eye Symbol" drop-down on the upper-left corner of the preview and selecting Show Layout Decorations.
Go to your res/values/styles.xml and change the:
"style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar""
to
"style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar""
if it doesnt work, you may find the answer Here, please feel free to take a look.

Android Studio (3.3.1). Layout decorations are not visible

Im learning Android studio now and encounter this problem with Layout Preview. I cant see phone frame.Ok, it's not big deal, but in result I see that the toolbar was not counted in design. For better understanding look at picture Virtual Device and Layout preview comparison. For layout preview and virtual device I picked Nexus 6. Screen sizes should be exactly the same. In the picture you can see the button in the layout preview. But in the virtual device the button is almost completely out of the screen bounds.
This is a link to my app
HelloWorldApp
WORKS!!!
Click that 'eye' icon and select the 'Show layout decorations'. Done.
Try this,
Click on Preview-> Visibility Symbol which named as view options
There is one option, Show Layout Decorations , Select this options.
For reference find below image:
I hope its work for you.
You can try to select device and theme for your preview window see attached image
https://i.stack.imgur.com/RB0QG.png
In the new version, you can see this feature in the 'layout validation' vertical bar on the right.

Android action bar home button not including activity title

I am using the home button of the main Activity of my IM app to allow the user to change their availability status. My app is using ActionBarSherlock, which falls back to the native implementation where supported.
However, the size of the tappable area is inconsistent between Android releases:
On Android 4.2.0 and before (including the compatibility library), only the icon is tappable:
On Android 4.2.1+, icon and activity name are tappable:
How can I make the tappable area consistently include icon and activity title on all versions of Android?
I am using ActionBarCompat (and you should probably update, if you haven't already), so this may not behave exactly the same. I wanted the full title to be clickable for using the navigation drawer. For some reason, using a custom logo instead of the text makes the whole thing automatically clickable, where only the icon could be clicked before:
final ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayUseLogoEnabled(true);
actionBar.setLogo(R.drawable.im_title);
I don't know if it's possible to trigger that change while still using text with the default icon, but the setDisplay... methods and flags may be a good place to start looking.

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.

Resources