question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Action bar does not have "Add File" action

See original GitHub issue

I failed to find a way to add a new file via action bar. Is this something that should be done differently outside of the library (Like adding a new file to files prop) or is there a way to get this done through action bar?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ziaulrehman40commented, May 14, 2020

Well, I also want to allow user to manually click add file while in a directory(just like user can click delete when in a directory) and on that open file selector, and on selection of files, upload those files.

The solution @raveenakothapally has pasted i believe may work for creating empty files, but not to upload files with manual selection instead of drag and drop.

1reaction
jestricklercommented, Aug 19, 2021

@mk-navex you don’t need to create the ActionRenderer directly or pass the browserProps. You set the actionRenderer property along with other props when you create the KeyedFileBrowser and let the library handle it:

<KeyedFileBrowser
  actionRenderer={ActionRenderer} 
  onCreateFiles={...}
  ...(other props) 
/>

Hope that helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not seeing action bar for every activity that isn't MainActivity
I am building an app that starts activities through intents. The design of my activities in XML shows an action bar but whenever...
Read more >
Add and handle actions - Android Developers
The app bar allows you to add buttons for user actions. This feature lets you put the most important actions for the current...
Read more >
Salesforce Mobile App Action Bar
Salesforce mobile app users have a one-stop place to find actions, so there's no confusion about where to go to do something. The...
Read more >
Action Bar - Android Developers
An action view is a widget that appears in the action bar as a substitute for an action button. An action view provides...
Read more >
Replacing the Action Bar - Xamarin | Microsoft Learn
Notice that the Toolbar is styled independently of the Theme.Material.Light.DarkActionBar theme that is applied to the remainder of the app. If ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found