This question already has answers here:
AppCompatActivity.onCreate can only be called from within the same library group
(3 answers)
Closed 4 years ago.
I use this code
ActionMenuItemView item = (ActionMenuItemView) findViewById(R.id.my_item_id);
item.setTitle("Test String");
and get the error
ActionMenuItemView.setTitle can only be called from within the same library group (groupId=com.android.support)
I use the Android SDK 27 with Java 8 support activated. All related issues I found were bugs in previous releases of older Android versions. But I use the latest one.
The app runs though anyway. But how to get rid of that error without only suppressing it?
this link
helped me out.
It seems that the FloatingActionButton was move to a new package and now uses the .show() and .hide() methods instead of setVisibility().
The post applies to Kotlin, but the method names are the same for Java.
Hope this helps someone out there.
Related
This question already has answers here:
Android Studio shows wrong file contents
(10 answers)
Closed 1 year ago.
I am working on a project from last 1 month. One day I wrote the code and closed the android studio. After that when I opened it some code was automatically changed and doesn't maked any sense. Like before, a java code of my activity was looking like this-
but now it is looking like this-
Why did this happened. I was working on this project from very long but many of my hard work is ruined. The code automatically changed to something like null null null... as in the screen shot. this only happened to some of my java activity's. Please if anyone know why this happened and how to fix it please tell me.
check in local history, you will be able to get the recent changes there.
adding steps-
right click on file in which you are facing issue.
click on "local history", it will give option to show history.
attaching screenshot for better understanding.
This question already has answers here:
Intellisense in IntelliJ no longer working
(20 answers)
Closed 5 years ago.
Enable code completion problems within Intellij / Java.
List<String> newList = new ArrayList<>();
If writing: newList. the code completion that popups are only cast, field and so on...
Is it even possible to get the "class" methods like in other editors such as Eclipse, Android Studio and so on...
Check the following settings screenshot above.
This question already has an answer here:
Eclipse Autocomplete (percent sign, in Juno)
(1 answer)
Closed 7 years ago.
Recently I started using Java 8 with latest eclipse. Whenever I am using eclipse shortcut to get API list using "control+space" (on Windows 7); most of the API shows some percentage as shown below screen shot--
Can anybody please help me to understand what is it exactly.
Following are version information-
Eclipse EE version: Mars Release (4.5.0)
JDK version: jdk1.8.0_60
See the Eclipse manual about Recommenders:
The Call Completion engine, for example, provides you with recommendations of likely methods to call whenever you trigger code completion on an object, be it a variable, field, or constant. The call completion engine bases its recommendations on what other developers in a similar situation have called on an object of the given type.
So it's a percentage of which method was chosen by other people.
Notice the 4 percentages add up to 100%.
It shows the most used methods/classes among the suggestions that are shown to you. The percentage values are recommendation rank. Eclipse is trying to help you with the relevant suggestions.
This question already has answers here:
Eclipse - List of default keyboard shortcuts
(4 answers)
Closed 8 years ago.
I am going to do one enhancement in the existing java project .So I have to learn the useful short cut keys to navigate and analyse the java project in eclipse.
Example :
1 .If I use F3 it will navigate to method where its used
2.Ctrl+o will show the list of methods
Your help is highly appreciated...
Take a look at a cheatsheet for the version of eclipse you're using.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Downloading Eclipse’s Source Code
I have known that I can get the eclipse SDK. But how can I watch the real code in the SDK. Can someone tell me the detail to watch them?
You can find all source codes you need here:
http://git.eclipse.org/
Eclipse has a lot of sub projects and you probably need a couple of them to be able to build your own ide.
I would start with this github project https://github.com/eclipse/eclipse.platform and work from there.