We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
public void AddSegments(int bookID, int chapterNum) { SegmentedButton yesButton = new SegmentedButton(this); yesButton.setText(bookListShortAbb[bookID - 1] + " " + chapterNum); yesButton.setPadding((int) dpToPx(5), (int) dpToPx(5), (int) dpToPx(5), (int) dpToPx(5)); yesButton.setLayoutParams(new LinearLayout.LayoutParams(0, 60, 1)); yesButton.setTextColor(Color.BLACK); yesButton.setTextSize(spToPx(20)); segmentedButtonGroup.addView(yesButton); } private float dpToPx(float dp) { return dp * getResources().getDisplayMetrics().density; } private float pxToDp(float px) { return px / getResources().getDisplayMetrics().density; } private float spToPx(float sp) { return sp * getResources().getDisplayMetrics().scaledDensity; } private float pxToSp(float px) { return px / getResources().getDisplayMetrics().scaledDensity; }
Sorry, something went wrong.
Is this resolved for you?
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: