'android:duration' and some other attribute don't show when typing.
Any help would be appreciated
Change API level and try it.. It may work for you
Related
I've just updated my Android Studio to 3.2 version. In my html layout I see that some ids are red and message is cannot resolve symbol '#id/...
As you can see at the picture, element with the not resolved id is declared just above. App builds without any problem.
Any ideas about fix?
Easiest way I have found to deal with this is to close the project and re-import it.
File -> Close Project
Import Project(Gradle, Eclipse ADT, etc.)
This bug drives me absolutely insane. I hope this helps someone else!
I'am a newby in android studio and learning a lot, but now have a problem where i cannot seem to find the answer to.
In android studio you can visualy drag&drop your screen.
I have seen it can do al lot (although you sometimes need the xml) but for me it is not working at all.
I mean i cannot drag&drop any widgets on the screen at all.
Tried changing the theme: no help (really tried a lot of them)
Tried a complete new project: same story
Tried other APK verion: same story
Tried Invalidatd caches / restart: no help
Even with a new project (EmptyActivity) it add's a android.support.v4.widget.NestedScrollView and then gives error's on that
(Failed to find style 'coordinatorLayoutStyle' in current theme).
It also gives an error on layout_height/layout_with not being there. But they are there for each widget.
Please do not missunderstand: when i execute the project i runs just fine (both on phone and emulator) but the visual builder for the screen.....:-(
Does somebody knows how to solve this.
If more info is needed please ask.
Any help is more than welcome.
There are several things that could be causing this:
Your caches could be messed up. Try going to
File > Invalidate Caches / Restart ... (I know that you already tried this, but posting for future views.)
Also, make sure that you don't have Drag-n-Drop with ALT pressed only checked in your Settings (Appearance & Behavior - Appearance).
Finally, in a default project created in Android Studio, there are two XML files created for each layout. For example, content_main.xml is embedded within activity_main.xml. Make sure that you are using content_main.xml for your design work.
In the end i fixed it by changing the SDK version in de gradle file.
still do not understand why it was wrong as studio genereded it that way but now it works so.... for me: case closed.
I'm a beginner to android but have done a little with an older version of Android Studio, and in the new version I'm having a lot of trouble getting the java file to find buttons or ImageViews. I'm not sure if it's related to the content_main vs activity_main thing. I'm having trouble finding any answers as to how this works on Google, so I'm just starting here, I want to put a button on the main page of my app and have the java file that correlates to the XML file find it. How do I do this?
Answers online are very vague to me, things like "activity_main.xml will determine how the look of the main activity should be. And on the other hand content_main.xml will determine the contents in the activity_main.xml" does not mean anything to me. Please tell me where to put the button!
If you are adding a button in activity_main rather than content_main it cannot be recognized by your Java file. Not only that is will even not be visible on your app.
people. I have a question. Sometimes accidentally a window appears above some method with it's implementation. So I want to understand is there a shortcut for showing implementation of a method above the method(in new small window - like this when studio shows documentation) ? In my opinion it will be convenient to know it, because in that way it is not necessary to go to implementation and to go up and down in the code. Unfortunately I couldn't find it when I try to google it.
Thanks in advance.
here you go the cheatsheet
hotkeys
I'm using Adobe Dreamweaver CS5, I have been using this for a long time, but this is the first time I am facing such issue.
Some of the code hintings are disbaled, like $_SERVER, $_REQUEST, etc..
Is there any option to enable these hints? I tried preference option though its disabled.
I am missing exactly this:
(source: killersites.com)
Go to menu Edit -> Preferences -> Code Hints and then disable jquery code 1.7.
PHP code hinting is turned on in DW options correct? (sorry can't post pic as comment)
Go to "preferences->code hints" and disable jquery code 1.7 and it works. :)
you can solve the error by just simply disabling the jquery hinting.
Don't exclude jquery, the solution is just to increase the delay, just 0.5.