Assigned
Status Update
Comments
ju...@google.com <ju...@google.com> #2
This actually has nothing to do with NavHostFragment, but is the behavior of NavController's setGraph().
When you call navController.setGraph(R.navigation.navigation_graph), it stores that ID and will restore that ID automatically.
If you were to instead use:
NavInflater navInflater = new NavInflater(this, navController.getNavigatorProvider());
navController.setGraph(navInflater.inflate(R.navigation.navigation_graph));
Then NavController would not restore the graph itself and the call to restoreState() you point out would only restore the back stack state, etc. but would wait for you to call setGraph again.
You're right that the inconsistency between the two setGraph methods is concerning. We'll take a look.
When you call navController.setGraph(R.navigation.navigation_graph), it stores that ID and will restore that ID automatically.
If you were to instead use:
NavInflater navInflater = new NavInflater(this, navController.getNavigatorProvider());
navController.setGraph(navInflater.inflate(R.navigation.navigation_graph));
Then NavController would not restore the graph itself and the call to restoreState() you point out would only restore the back stack state, etc. but would wait for you to call setGraph again.
You're right that the inconsistency between the two setGraph methods is concerning. We'll take a look.
Description
Version used: 1.5.0
Devices/Android versions reproduced on: All
I would like to raise a feature request to let the user define the maximum width each emoji should acquire when laid out inside the emoji-picker. At present it divides the available parent width by the span count to define its dimensions.
This leaves the user with only 2 options of
- either keeping the individual emoji size large
- or increase the span count (& thus making it look over-crowded from UX POV)
By providing an option to define a max emoji width we could use the additional space to define the padding between the icons, thus providing more control over how they are laid out in the picker view.
Possibly allowing to create a view like the one in attached screen shot.