Page 1 of 1

How to add a button "back to the top"

Posted: 2018-02-03, 11:32 UTC
by 33kk99
Files list so long, home button don't fixed.
Some button like page up and page down.
How to add a button "back to the top"?
Do not want to have two home button on one page.

Posted: 2018-02-05, 14:59 UTC
by ghisler(Author)
If you just want to reach the home button, there is no need - just tap on the Total Commander icon in the title bar to go to the home folder.

Posted: 2018-02-06, 23:01 UTC
by 33kk99
ghisler(Author) wrote:If you just want to reach the home button, there is no need - just tap on the Total Commander icon in the title bar to go to the home folder.
This is a magical design, thank you.

Second question: What about "parent folder" and "reload"?They are not fixed.

Posted: 2018-02-08, 10:21 UTC
by ghisler(Author)
The parent can be reached via Android "back" button. For reload, there is a button which can be added to the lower bar.

Re: How to add a button "back to the top"

Posted: 2020-09-21, 15:31 UTC
by DrShark
ghisler(Author) wrote: 2018-02-05, 14:59 UTCtap on the Total Commander icon in the title bar to go to the home folder.
I noticed that on Android 5.1 and Android 10 devices I have to actually tap on Total Commander icon in its title to go to home folder, while on Android 4.3.1 device with smaller screen, and in emulators with Android 4.4.2, it's also possible to tap on "Total Commander" text near title icon to go to home folder. Is there a reason for this difference?

Re: How to add a button "back to the top"

Posted: 2020-09-22, 08:46 UTC
by ghisler(Author)
Yes, the behaviour of the default Android ActionBar control has changed. On Android Lollipop (API 21) I have to call
actionBar.setDisplayOptions(ActionBar.DISPLAY_HOME_AS_UP,ActionBar.DISPLAY_HOME_AS_UP);
actionBar.setHomeAsUpIndicator(R.drawable.icon21_menu);
to get a reaction from clicking on the icon, and clicking on the text no longer works.