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

How do I get Android Studio/IDEA to align adjacent variable assignments on the “=” sign like yours #32

Open
DarkFlameMaster7 opened this issue Jan 6, 2017 · 0 comments

Comments

@DarkFlameMaster7
Copy link

Your code style looks so good, how can I format code like yours? I have tried to set Group declarations but it still looks not so good.
just like:


private static final float PERCENTAGE_TO_SHOW_TITLE_AT_TOOLBAR = 0.9f;
private static final float PERCENTAGE_TO_HIDE_TITLE_DETAILS    = 0.3f;
private static final int   ALPHA_ANIMATIONS_DURATION           = 200;
private boolean mIsTheTitleVisible          = false;
private boolean mIsTheTitleContainerVisible = true;
...
mToolbar = (Toolbar) findViewById(R.id.main_toolbar);
mTitle = (TextView) findViewById(R.id.main_textview_title);
mTitleContainer = (LinearLayout) findViewById(R.id.main_linearlayout_title);
mAppBarLayout = (AppBarLayout) findViewById(R.id.main_appbar);

what I want:


private static final float PERCENTAGE_TO_SHOW_TITLE_AT_TOOLBAR  = 0.9f;
private static final float PERCENTAGE_TO_HIDE_TITLE_DETAILS     = 0.3f;
private static final int ALPHA_ANIMATIONS_DURATION              = 200;
private boolean mIsTheTitleVisible          = false;
private boolean mIsTheTitleContainerVisible = true;
...
mToolbar        = (Toolbar) findViewById(R.id.main_toolbar);
mTitle          = (TextView) findViewById(R.id.main_textview_title);
mTitleContainer = (LinearLayout) findViewById(R.id.main_linearlayout_title);
mAppBarLayout   = (AppBarLayout) findViewById(R.id.main_appbar);

thanks:D

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

No branches or pull requests

1 participant