runnerup icon indicating copy to clipboard operation
runnerup copied to clipboard

Replace TabActivity with AppCompatActivity

Open 12people opened this issue 7 years ago • 9 comments

TabActivity has long been deprecated, and its use prevents niceties from the support library—vector drawables, for example.

Please use AppCompatActivity for MainLayout and fragments for its individual components (StartActivity, FeedActivity, HistoryActivity, SettingsActivity).

All of this is supported on Froyo, so there should be no compatibility issues.

12people avatar Mar 23 '18 10:03 12people

A partial conversion to AppCompat is available in branch: https://github.com/gerhardol/runnerup/tree/feature/appcompat-changes

gerhardol avatar Apr 03 '18 19:04 gerhardol

Migration to androidx and AppCompatActivity done where possible. Only TabActivity and SettingsActivity remains, which is quite some changes.

gerhardol avatar Aug 23 '20 19:08 gerhardol

Only TabActivity and SettingsActivity remains, which is quite some changes.

I have been working on migrating all settings to AndroidX Preferences. Before I make a PR I wonder if there is some special reason why the SettingsActivity has no Toolbar (app bar)? Both StartActivity and HistoryActivity have one.

image

Should we add a Toolbar to SettingsActivity as well?

roberi avatar Mar 08 '24 10:03 roberi

Only TabActivity and SettingsActivity remains, which is quite some changes.

I have been working on migrating all settings to AndroidX Preferences. Before I make a PR I wonder if there is some special reason why the SettingsActivity has no Toolbar (app bar)? Both StartActivity and HistoryActivity have one.

Should we add a Toolbar to SettingsActivity as well?

No specific reason, it just happen to be this way....

The recommended handling for settings is not to have it in the toolbar. But with only two other tabs, it is not a space issue.

Looking forward for this - I have gotten stuck every time I started.

gerhardol avatar Mar 08 '24 12:03 gerhardol

The recommended handling for settings is not to have it in the toolbar.

I'm not sure I understand. Or perhaps we misunderstand each other? Why not like in the right picture?

image

Looking forward for this - I have gotten stuck every time I started.

Looking forward for your feedback. =)

roberi avatar Mar 08 '24 13:03 roberi

The recommended handling for settings is not to have it in the toolbar.

I'm not sure I understand. Or perhaps we misunderstand each other? Why not like in the right picture?

My comment was related to Settings as a tab is not recommended.

Add the app bar...

gerhardol avatar Mar 08 '24 14:03 gerhardol

@gerhardol, have you or anyone else started any work to replace TabActivity? If not, I can give it a try.

roberi avatar Mar 18 '24 17:03 roberi

@gerhardol, have you or anyone else started any work to replace TabActivity? If not, I can give it a try.

No, I have not tried that. I am not aware that anyone else is working on that. It would be welcome!

gerhardol avatar Mar 18 '24 18:03 gerhardol

@roberi If you see any inconsistencies and improvements, just fix them. The GUI could be improved...

gerhardol avatar Mar 19 '24 07:03 gerhardol