Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Enhanced layout of "About" Activity #1139

Closed

Conversation

sebesti0n
Copy link
Contributor

@sebesti0n sebesti0n commented Mar 4, 2024

fix #1138

Follow Material UI design pattern.

After:

After.mp4

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the unit tests with gradlew connectedObaGoogleDebugAndroidTest to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them for the initial submission of the pull request. When addressing comments on a pull request, please push a new commit per comment when possible (reviewers will squash and merge using GitHub merge tool)

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea, but I don't think hosting five different MaterialTextViews is the way to do it. Please instead take the existing about_text and turn it into an HTML page. Also, please make sure that the localized variants are also updated. thanks!

@sebesti0n
Copy link
Contributor Author

I like the idea, but I don't think hosting five different MaterialTextViews is the way to do it. Please instead take the existing about_text and turn it into an HTML page. Also, please make sure that the localized variants are also updated. thanks!

Okay, I will get it done.

@sebesti0n sebesti0n requested a review from aaronbrethorst March 8, 2024 11:47
@sebesti0n
Copy link
Contributor Author

Implemented @aaronbrethorst in a new pull request #1148.
Link-#1148

Copy link

@shankarpriyank shankarpriyank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I am not a maintainer or stuff.
But I had a look at pr and though maybe my comments could be help.
Nothing too serious, just some thoughts to take with a grain of salt (or a pinch if you're feeling adventurous).

@@ -52,7 +56,14 @@ protected void onCreate(Bundle savedInstanceState) {

getSupportActionBar().setDisplayHomeAsUpEnabled(true);

TextView tv = (TextView) findViewById(R.id.about_text);
// TextView tv = (TextView) findViewById(R.id.about_text);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it would be better if we could just remove unused code

builder.append("\n\n");

tv.setText(builder.toString());
// builder.append(getString(R.string.about_text));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, I personally feel we could just remove this

<string name="translations_sub_heading">Translations:</string>
<string name="contribute_to_our_app_sub_heading">Join the Journey: Contribute to Our App!</string>
<string name="app_description">At OneBusAway, we\'re passionate about creating innovative solutions to simplify your transit experience. Our Android app is a labor of love, made possible by the dedication and talent of a diverse group of individuals and organizations. Here\'s a glimpse into the fantastic contributors who have made OneBusAway what it is today:</string>
<string name="code_contributors_content"><![CDATA[

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Umm not sure, but I I feel its not good to store html in this file, as it would be hard to translate the html anyways

@sebesti0n
Copy link
Contributor Author

Hey, I am not a maintainer or stuff. But I had a look at pr and though maybe my comments could be help. Nothing too serious, just some thoughts to take with a grain of salt (or a pinch if you're feeling adventurous).

@shankarpriyank I've created a new pull request incorporating the suggested changes made by @aaronbrethorst.

@shankarpriyank
Copy link

Ahh sorry, never mind, when I had a look there were no other comments.
I guess there was a glitch somewhere!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: "About"Activity layout needs to be enhanced
3 participants