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

Button Revamp-Pm ccct 536 #2896

Open
wants to merge 4 commits into
base: pm_CCCT_533
Choose a base branch
from
Open

Button Revamp-Pm ccct 536 #2896

wants to merge 4 commits into from

Conversation

pm-dimagi
Copy link

@pm-dimagi pm-dimagi commented Nov 14, 2024

This PR is related to the design changes and it contains the update of the button all over the app now the square button is converted to the rounded button

Feature Flag

Commcare UI

## Product Description

PR Checklist

  • If I think the PR is high risk, "High Risk" label is set
  • I have confidence that this PR will not introduce a regression for the reasons below
  • Do we need to enhance manual QA test coverage ? If yes, "QA Note" label is set correctly
  • Does the PR introduce any major changes worth communicating ? If yes, "Release Note" label is set and a "Release Note" is specified in PR description.

Automated test coverage

Safety story

@pm-dimagi pm-dimagi added Release Note High Risk If the PR introduce high risk changes that has high probability of introducing breaking changes and removed High Risk If the PR introduce high risk changes that has high probability of introducing breaking changes labels Nov 14, 2024
@shubham1g5 shubham1g5 changed the base branch from master to pm_CCCT_533 November 15, 2024 04:52
Comment on lines +67 to +68
app:roundButtonBackgroundColor="@color/button_primary"
app:roundButtonTextColor="@color/white"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

can we set a common theme to all buttons instead of specifying the same attributes for all individual rounded buttons ? It will make any changes in future much easier.


import org.commcare.dalvik.R;

public class RoundedButton extends androidx.appcompat.widget.AppCompatButton {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason to have own implementation here, seems like Android have inbuild support for rounded buttons

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

Successfully merging this pull request may close these issues.

2 participants