Error when trying to use the library
See original GitHub issueThe library looks fantastic and I would like to use it.
I added the following to the build.gradle
implementation 'com.github.skydoves:powermenu:2.0.3
on onCreate
I have the following code -
powerMenu = new PowerMenu.Builder(this)
.addItem(new PowerMenuItem("Settings", false))
.addItem(new PowerMenuItem("Travel", false))
.addItem(new PowerMenuItem("Logout", false))
.setAnimation(MenuAnimation.SHOWUP_TOP_LEFT) // Animation start point (TOP | LEFT)
.setMenuRadius(0f)
.setMenuShadow(0f)
.setTextColor(Color.BLACK)
.setSelectedTextColor(Color.WHITE)
.setMenuColor(Color.WHITE)
.setSelectedMenuColor(Color.BLACK)
.setOnMenuItemClickListener(new OnMenuItemClickListener<PowerMenuItem>() {
@Override
public void onItemClick(int position, PowerMenuItem item) {
Toast.makeText(getBaseContext(), item.getTitle(), Toast.LENGTH_SHORT).show();
}
})
.build();
mMenuButton = (Button)findViewById(R.id.floating_menu_context);
mMenuButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
powerMenu.showAsDropDown(view);
}
});
I get the following error :
Error:(339, 26) error: cannot access LifecycleObserver class file for android.arch.lifecycle.LifecycleObserver not found
any help ? thanks !
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Troubleshoot the Unable to Connect to the Library Error
If you can't connect to the in-game library, it is likely due to a network connection issue. This article provides information on how...
Read more >[bug] Error when trying to use the library, although the code is ...
I would like to quickly pay attention and update the library. Expected Behavior. No response. Steps To Reproduce. No response. Link to Minimal ......
Read more >Why do I get an error message when trying to access library ...
The problem is intermittent and only affects some users. Publishers are working to resolve this issue. Try one of the following to access...
Read more >Opening a Library in Windows Explorer gives error that it is no ...
This article provides some steps for fixing the error which shows it is no longer working when opening a Library in Windows Explorer....
Read more >Why do I keep getting an error message when I try to ... - Ask Us!
Sometimes saved information in a browser or an old bookmark can cause these errors. Try to clear your browser's cache and cookies or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, I managed to do what I needed with the CustomPowerMenu, thanks for all the help, great lib !
@NateZ7 Sorry. The only way is Customizing now. Thank you!