How to add a button "back to the top"

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
33kk99
Junior Member
Junior Member
Posts: 18
Joined: 2016-11-14, 05:00 UTC

How to add a button "back to the top"

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
33kk99
Junior Member
Junior Member
Posts: 18
Joined: 2016-11-14, 05:00 UTC

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

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

Post 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?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post 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.
Author of Total Commander
https://www.ghisler.com
Post Reply