id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
103,200 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/EditTextDialogDecorator.java | EditTextDialogDecorator.createFocusChangeListener | @NonNull
private View.OnFocusChangeListener createFocusChangeListener() {
return new View.OnFocusChangeListener() {
@Override
public void onFocusChange(final View v, final boolean hasFocus) {
if (!hasFocus && validateOnFocusLost) {
validate();
... | java | @NonNull
private View.OnFocusChangeListener createFocusChangeListener() {
return new View.OnFocusChangeListener() {
@Override
public void onFocusChange(final View v, final boolean hasFocus) {
if (!hasFocus && validateOnFocusLost) {
validate();
... | [
"@",
"NonNull",
"private",
"View",
".",
"OnFocusChangeListener",
"createFocusChangeListener",
"(",
")",
"{",
"return",
"new",
"View",
".",
"OnFocusChangeListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onFocusChange",
"(",
"final",
"View",
"v",
",",... | Creates and returns a listener, which allows to validate the dialog's edit text widget when
its focus got lost.
@return The listener, which has been created, as an instance of the type {@link
View.OnFocusChangeListener}. The listener may not be null | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"validate",
"the",
"dialog",
"s",
"edit",
"text",
"widget",
"when",
"its",
"focus",
"got",
"lost",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/EditTextDialogDecorator.java#L352-L364 |
103,201 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/EditTextDialogDecorator.java | EditTextDialogDecorator.notifyOnValidationFailure | private void notifyOnValidationFailure(@NonNull final Validator<CharSequence> validator) {
for (ValidationListener<CharSequence> validationListener : validationListeners) {
validationListener.onValidationFailure(this, validator);
}
} | java | private void notifyOnValidationFailure(@NonNull final Validator<CharSequence> validator) {
for (ValidationListener<CharSequence> validationListener : validationListeners) {
validationListener.onValidationFailure(this, validator);
}
} | [
"private",
"void",
"notifyOnValidationFailure",
"(",
"@",
"NonNull",
"final",
"Validator",
"<",
"CharSequence",
">",
"validator",
")",
"{",
"for",
"(",
"ValidationListener",
"<",
"CharSequence",
">",
"validationListener",
":",
"validationListeners",
")",
"{",
"valid... | Notifies the listeners that the validation of the dialog's edit text widget has failed.
@param validator
The validator, which caused the validation to fail, as an instance of the type {@link
Validator}. The validator may not be null | [
"Notifies",
"the",
"listeners",
"that",
"the",
"validation",
"of",
"the",
"dialog",
"s",
"edit",
"text",
"widget",
"has",
"failed",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/EditTextDialogDecorator.java#L373-L377 |
103,202 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java | ListDialogDecorator.inflateListView | private void inflateListView(@NonNull final ViewGroup contentContainer) {
View listView = contentContainer.findViewById(android.R.id.list);
this.listView = listView instanceof RecyclerView ? (RecyclerView) listView : null;
if (this.listView == null && !getDialog().isCustomViewUsed()) {
... | java | private void inflateListView(@NonNull final ViewGroup contentContainer) {
View listView = contentContainer.findViewById(android.R.id.list);
this.listView = listView instanceof RecyclerView ? (RecyclerView) listView : null;
if (this.listView == null && !getDialog().isCustomViewUsed()) {
... | [
"private",
"void",
"inflateListView",
"(",
"@",
"NonNull",
"final",
"ViewGroup",
"contentContainer",
")",
"{",
"View",
"listView",
"=",
"contentContainer",
".",
"findViewById",
"(",
"android",
".",
"R",
".",
"id",
".",
"list",
")",
";",
"this",
".",
"listVie... | Inflates the list view, which is used to show the dialog's list items.
@param contentContainer
The view group, which contains the dialog's content, as an instance of the class
{@link ViewGroup}. The view group may not be null | [
"Inflates",
"the",
"list",
"view",
"which",
"is",
"used",
"to",
"show",
"the",
"dialog",
"s",
"list",
"items",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java#L179-L196 |
103,203 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java | ListDialogDecorator.attachAdapter | private void attachAdapter() {
if (listView != null) {
if (adapter != null) {
listView.setHasFixedSize(false);
listView.setLayoutManager(layoutManager);
listView.setAdapter(adapter);
listView.setVisibility(adapter != null ? View.VISIBLE... | java | private void attachAdapter() {
if (listView != null) {
if (adapter != null) {
listView.setHasFixedSize(false);
listView.setLayoutManager(layoutManager);
listView.setAdapter(adapter);
listView.setVisibility(adapter != null ? View.VISIBLE... | [
"private",
"void",
"attachAdapter",
"(",
")",
"{",
"if",
"(",
"listView",
"!=",
"null",
")",
"{",
"if",
"(",
"adapter",
"!=",
"null",
")",
"{",
"listView",
".",
"setHasFixedSize",
"(",
"false",
")",
";",
"listView",
".",
"setLayoutManager",
"(",
"layoutM... | Attaches the adapter to the dialog's list view. | [
"Attaches",
"the",
"adapter",
"to",
"the",
"dialog",
"s",
"list",
"view",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java#L201-L221 |
103,204 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java | ListDialogDecorator.initializeCheckedItems | private void initializeCheckedItems() {
if (checkedItems != null) {
for (int i = 0; i < checkedItems.length; i++) {
adapter.setItemChecked(i, checkedItems[i]);
}
}
} | java | private void initializeCheckedItems() {
if (checkedItems != null) {
for (int i = 0; i < checkedItems.length; i++) {
adapter.setItemChecked(i, checkedItems[i]);
}
}
} | [
"private",
"void",
"initializeCheckedItems",
"(",
")",
"{",
"if",
"(",
"checkedItems",
"!=",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"checkedItems",
".",
"length",
";",
"i",
"++",
")",
"{",
"adapter",
".",
"setItemChecked",
... | Initializes the list items, which are checked by default. | [
"Initializes",
"the",
"list",
"items",
"which",
"are",
"checked",
"by",
"default",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java#L226-L232 |
103,205 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java | ListDialogDecorator.getCheckedItems | @Nullable
private boolean[] getCheckedItems() {
if (listView != null && adapter != null) {
boolean[] result = new boolean[adapter.getItemCount()];
for (int i = 0; i < result.length; i++) {
result[i] = adapter.isItemChecked(i);
}
return result... | java | @Nullable
private boolean[] getCheckedItems() {
if (listView != null && adapter != null) {
boolean[] result = new boolean[adapter.getItemCount()];
for (int i = 0; i < result.length; i++) {
result[i] = adapter.isItemChecked(i);
}
return result... | [
"@",
"Nullable",
"private",
"boolean",
"[",
"]",
"getCheckedItems",
"(",
")",
"{",
"if",
"(",
"listView",
"!=",
"null",
"&&",
"adapter",
"!=",
"null",
")",
"{",
"boolean",
"[",
"]",
"result",
"=",
"new",
"boolean",
"[",
"adapter",
".",
"getItemCount",
... | Returns an array, which identifies the currently checked list items.
@return An array, which identifies the currently checked list items, as {@link Boolean} array | [
"Returns",
"an",
"array",
"which",
"identifies",
"the",
"currently",
"checked",
"list",
"items",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java#L239-L252 |
103,206 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java | ListDialogDecorator.initializeSelectionListener | private void initializeSelectionListener() {
ChoiceMode choiceMode = adapter.getChoiceMode();
if (choiceMode instanceof MultipleChoiceMode) {
adapter.setOnItemClickListener(
new OnMultiChoiceClickListenerWrapper(multiChoiceListener, getDialog(), 0));
} else if (c... | java | private void initializeSelectionListener() {
ChoiceMode choiceMode = adapter.getChoiceMode();
if (choiceMode instanceof MultipleChoiceMode) {
adapter.setOnItemClickListener(
new OnMultiChoiceClickListenerWrapper(multiChoiceListener, getDialog(), 0));
} else if (c... | [
"private",
"void",
"initializeSelectionListener",
"(",
")",
"{",
"ChoiceMode",
"choiceMode",
"=",
"adapter",
".",
"getChoiceMode",
"(",
")",
";",
"if",
"(",
"choiceMode",
"instanceof",
"MultipleChoiceMode",
")",
"{",
"adapter",
".",
"setOnItemClickListener",
"(",
... | Initializes the listener, which should be notified, when the selection of a list item of the
dialog has been changed. | [
"Initializes",
"the",
"listener",
"which",
"should",
"be",
"notified",
"when",
"the",
"selection",
"of",
"a",
"list",
"item",
"of",
"the",
"dialog",
"has",
"been",
"changed",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java#L258-L272 |
103,207 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java | ListDialogDecorator.adaptItemColor | private void adaptItemColor() {
if (adapter != null) {
RecyclerView.Adapter<?> wrappedAdapter = adapter.getWrappedAdapter();
if (wrappedAdapter instanceof ArrayRecyclerViewAdapter) {
((ArrayRecyclerViewAdapter) wrappedAdapter).setItemColor(itemColor);
}
... | java | private void adaptItemColor() {
if (adapter != null) {
RecyclerView.Adapter<?> wrappedAdapter = adapter.getWrappedAdapter();
if (wrappedAdapter instanceof ArrayRecyclerViewAdapter) {
((ArrayRecyclerViewAdapter) wrappedAdapter).setItemColor(itemColor);
}
... | [
"private",
"void",
"adaptItemColor",
"(",
")",
"{",
"if",
"(",
"adapter",
"!=",
"null",
")",
"{",
"RecyclerView",
".",
"Adapter",
"<",
"?",
">",
"wrappedAdapter",
"=",
"adapter",
".",
"getWrappedAdapter",
"(",
")",
";",
"if",
"(",
"wrappedAdapter",
"instan... | Adapts the color of the dialog's list items. | [
"Adapts",
"the",
"color",
"of",
"the",
"dialog",
"s",
"list",
"items",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java#L277-L285 |
103,208 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java | ListDialogDecorator.adaptItemTypeface | private void adaptItemTypeface() {
if (adapter != null && itemTypeface != null) {
RecyclerView.Adapter<?> wrappedAdapter = adapter.getWrappedAdapter();
if (wrappedAdapter instanceof ArrayRecyclerViewAdapter) {
((ArrayRecyclerViewAdapter) wrappedAdapter).setItemTypeface(i... | java | private void adaptItemTypeface() {
if (adapter != null && itemTypeface != null) {
RecyclerView.Adapter<?> wrappedAdapter = adapter.getWrappedAdapter();
if (wrappedAdapter instanceof ArrayRecyclerViewAdapter) {
((ArrayRecyclerViewAdapter) wrappedAdapter).setItemTypeface(i... | [
"private",
"void",
"adaptItemTypeface",
"(",
")",
"{",
"if",
"(",
"adapter",
"!=",
"null",
"&&",
"itemTypeface",
"!=",
"null",
")",
"{",
"RecyclerView",
".",
"Adapter",
"<",
"?",
">",
"wrappedAdapter",
"=",
"adapter",
".",
"getWrappedAdapter",
"(",
")",
";... | Adapts the typeface of the dialog's list items. | [
"Adapts",
"the",
"typeface",
"of",
"the",
"dialog",
"s",
"list",
"items",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ListDialogDecorator.java#L290-L298 |
103,209 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java | ButtonBarDialogDecorator.adaptButtonBar | private void adaptButtonBar() {
if (buttonBarContainer != null) {
inflateButtonBar();
adaptPositiveButton();
adaptNegativeButton();
adaptNeutralButton();
adaptButtonTextColor();
adaptButtonTypeface();
adaptButtonBarContainerVisi... | java | private void adaptButtonBar() {
if (buttonBarContainer != null) {
inflateButtonBar();
adaptPositiveButton();
adaptNegativeButton();
adaptNeutralButton();
adaptButtonTextColor();
adaptButtonTypeface();
adaptButtonBarContainerVisi... | [
"private",
"void",
"adaptButtonBar",
"(",
")",
"{",
"if",
"(",
"buttonBarContainer",
"!=",
"null",
")",
"{",
"inflateButtonBar",
"(",
")",
";",
"adaptPositiveButton",
"(",
")",
";",
"adaptNegativeButton",
"(",
")",
";",
"adaptNeutralButton",
"(",
")",
";",
"... | Adapts the button bar. | [
"Adapts",
"the",
"button",
"bar",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java#L238-L249 |
103,210 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java | ButtonBarDialogDecorator.adaptButtonTypeface | private void adaptButtonTypeface() {
if (buttonTypeface != null) {
if (positiveButton != null) {
positiveButton.setTypeface(buttonTypeface);
}
if (neutralButton != null) {
neutralButton.setTypeface(buttonTypeface);
}
i... | java | private void adaptButtonTypeface() {
if (buttonTypeface != null) {
if (positiveButton != null) {
positiveButton.setTypeface(buttonTypeface);
}
if (neutralButton != null) {
neutralButton.setTypeface(buttonTypeface);
}
i... | [
"private",
"void",
"adaptButtonTypeface",
"(",
")",
"{",
"if",
"(",
"buttonTypeface",
"!=",
"null",
")",
"{",
"if",
"(",
"positiveButton",
"!=",
"null",
")",
"{",
"positiveButton",
".",
"setTypeface",
"(",
"buttonTypeface",
")",
";",
"}",
"if",
"(",
"neutr... | Adapts the typeface of the dialog's buttons. | [
"Adapts",
"the",
"typeface",
"of",
"the",
"dialog",
"s",
"buttons",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java#L273-L287 |
103,211 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java | ButtonBarDialogDecorator.adaptPositiveButton | private void adaptPositiveButton() {
if (positiveButton != null) {
positiveButton.setText(positiveButtonText != null ?
positiveButtonText.toString().toUpperCase(Locale.getDefault()) : null);
OnClickListenerWrapper onClickListener =
new OnClickListe... | java | private void adaptPositiveButton() {
if (positiveButton != null) {
positiveButton.setText(positiveButtonText != null ?
positiveButtonText.toString().toUpperCase(Locale.getDefault()) : null);
OnClickListenerWrapper onClickListener =
new OnClickListe... | [
"private",
"void",
"adaptPositiveButton",
"(",
")",
"{",
"if",
"(",
"positiveButton",
"!=",
"null",
")",
"{",
"positiveButton",
".",
"setText",
"(",
"positiveButtonText",
"!=",
"null",
"?",
"positiveButtonText",
".",
"toString",
"(",
")",
".",
"toUpperCase",
"... | Adapts the dialog's positive button. | [
"Adapts",
"the",
"dialog",
"s",
"positive",
"button",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java#L292-L304 |
103,212 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java | ButtonBarDialogDecorator.adaptNeutralButton | private void adaptNeutralButton() {
if (neutralButton != null) {
neutralButton.setText(neutralButtonText != null ?
neutralButtonText.toString().toUpperCase(Locale.getDefault()) : null);
OnClickListenerWrapper onClickListener =
new OnClickListenerWr... | java | private void adaptNeutralButton() {
if (neutralButton != null) {
neutralButton.setText(neutralButtonText != null ?
neutralButtonText.toString().toUpperCase(Locale.getDefault()) : null);
OnClickListenerWrapper onClickListener =
new OnClickListenerWr... | [
"private",
"void",
"adaptNeutralButton",
"(",
")",
"{",
"if",
"(",
"neutralButton",
"!=",
"null",
")",
"{",
"neutralButton",
".",
"setText",
"(",
"neutralButtonText",
"!=",
"null",
"?",
"neutralButtonText",
".",
"toString",
"(",
")",
".",
"toUpperCase",
"(",
... | Adapts the dialog's neutral button. | [
"Adapts",
"the",
"dialog",
"s",
"neutral",
"button",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java#L309-L321 |
103,213 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java | ButtonBarDialogDecorator.adaptNegativeButton | private void adaptNegativeButton() {
if (negativeButton != null) {
negativeButton.setText(negativeButtonText != null ?
negativeButtonText.toString().toUpperCase(Locale.getDefault()) : null);
OnClickListenerWrapper onClickListener =
new OnClickListe... | java | private void adaptNegativeButton() {
if (negativeButton != null) {
negativeButton.setText(negativeButtonText != null ?
negativeButtonText.toString().toUpperCase(Locale.getDefault()) : null);
OnClickListenerWrapper onClickListener =
new OnClickListe... | [
"private",
"void",
"adaptNegativeButton",
"(",
")",
"{",
"if",
"(",
"negativeButton",
"!=",
"null",
")",
"{",
"negativeButton",
".",
"setText",
"(",
"negativeButtonText",
"!=",
"null",
"?",
"negativeButtonText",
".",
"toString",
"(",
")",
".",
"toUpperCase",
"... | Adapts the dialog's negative button. | [
"Adapts",
"the",
"dialog",
"s",
"negative",
"button",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java#L326-L338 |
103,214 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java | ButtonBarDialogDecorator.adaptButtonBarContainerVisibility | private void adaptButtonBarContainerVisibility() {
if (buttonBarContainer != null) {
if (TextUtils.isEmpty(positiveButtonText) && TextUtils.isEmpty(neutralButtonText) &&
TextUtils.isEmpty(negativeButtonText)) {
buttonBarContainer.setVisibility(View.GONE);
... | java | private void adaptButtonBarContainerVisibility() {
if (buttonBarContainer != null) {
if (TextUtils.isEmpty(positiveButtonText) && TextUtils.isEmpty(neutralButtonText) &&
TextUtils.isEmpty(negativeButtonText)) {
buttonBarContainer.setVisibility(View.GONE);
... | [
"private",
"void",
"adaptButtonBarContainerVisibility",
"(",
")",
"{",
"if",
"(",
"buttonBarContainer",
"!=",
"null",
")",
"{",
"if",
"(",
"TextUtils",
".",
"isEmpty",
"(",
"positiveButtonText",
")",
"&&",
"TextUtils",
".",
"isEmpty",
"(",
"neutralButtonText",
"... | Adapts the visibility of the parent view, which contains the dialog's buttons. | [
"Adapts",
"the",
"visibility",
"of",
"the",
"parent",
"view",
"which",
"contains",
"the",
"dialog",
"s",
"buttons",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java#L343-L352 |
103,215 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java | ButtonBarDialogDecorator.adaptButtonBarDividerVisibility | private void adaptButtonBarDividerVisibility() {
if (buttonBarDivider != null) {
buttonBarDivider.setVisibility(showButtonBarDivider ? View.VISIBLE : View.GONE);
buttonBarDivider.setVisibleByDefault(showButtonBarDivider);
}
} | java | private void adaptButtonBarDividerVisibility() {
if (buttonBarDivider != null) {
buttonBarDivider.setVisibility(showButtonBarDivider ? View.VISIBLE : View.GONE);
buttonBarDivider.setVisibleByDefault(showButtonBarDivider);
}
} | [
"private",
"void",
"adaptButtonBarDividerVisibility",
"(",
")",
"{",
"if",
"(",
"buttonBarDivider",
"!=",
"null",
")",
"{",
"buttonBarDivider",
".",
"setVisibility",
"(",
"showButtonBarDivider",
"?",
"View",
".",
"VISIBLE",
":",
"View",
".",
"GONE",
")",
";",
... | Adapts the visibility of the divider, which is shown above the dialog's buttons. | [
"Adapts",
"the",
"visibility",
"of",
"the",
"divider",
"which",
"is",
"shown",
"above",
"the",
"dialog",
"s",
"buttons",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ButtonBarDialogDecorator.java#L357-L362 |
103,216 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/adapter/ArrayRecyclerViewAdapter.java | ArrayRecyclerViewAdapter.setItemTypeface | public void setItemTypeface(@NonNull final Typeface typeface) {
Condition.INSTANCE.ensureNotNull(typeface, "The typeface may not be null");
this.itemTypeface = typeface;
notifyDataSetChanged();
} | java | public void setItemTypeface(@NonNull final Typeface typeface) {
Condition.INSTANCE.ensureNotNull(typeface, "The typeface may not be null");
this.itemTypeface = typeface;
notifyDataSetChanged();
} | [
"public",
"void",
"setItemTypeface",
"(",
"@",
"NonNull",
"final",
"Typeface",
"typeface",
")",
"{",
"Condition",
".",
"INSTANCE",
".",
"ensureNotNull",
"(",
"typeface",
",",
"\"The typeface may not be null\"",
")",
";",
"this",
".",
"itemTypeface",
"=",
"typeface... | Sets the typeface of the adapter's items.
@param typeface
The typeface, which should be set, as an instance of the class {@link Typeface}. The
typeface may not be null | [
"Sets",
"the",
"typeface",
"of",
"the",
"adapter",
"s",
"items",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/adapter/ArrayRecyclerViewAdapter.java#L148-L152 |
103,217 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.initialize | private void initialize(@StyleRes final int themeResourceId) {
int themeId = themeResourceId;
if (themeId == 0) {
TypedValue typedValue = new TypedValue();
getContext().getTheme().resolveAttribute(R.attr.materialDialogTheme, typedValue, true);
themeId = typedValue.re... | java | private void initialize(@StyleRes final int themeResourceId) {
int themeId = themeResourceId;
if (themeId == 0) {
TypedValue typedValue = new TypedValue();
getContext().getTheme().resolveAttribute(R.attr.materialDialogTheme, typedValue, true);
themeId = typedValue.re... | [
"private",
"void",
"initialize",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"int",
"themeId",
"=",
"themeResourceId",
";",
"if",
"(",
"themeId",
"==",
"0",
")",
"{",
"TypedValue",
"typedValue",
"=",
"new",
"TypedValue",
"(",
")",
";... | Initializes the builder.
@param themeResourceId
The resource id of the theme, which should be used by the dialog, as an {@link
Integer} value or 0, if the default theme should be used | [
"Initializes",
"the",
"builder",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L70-L83 |
103,218 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainFullscreen | private void obtainFullscreen(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogFullscreen});
setFullscreen(typedArray.getBoolean(0, false));
} | java | private void obtainFullscreen(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogFullscreen});
setFullscreen(typedArray.getBoolean(0, false));
} | [
"private",
"void",
"obtainFullscreen",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int"... | Obtains the boolean value, which specified whether the dialog should be shown fullscreen, or
not, from a specific theme.
@param themeResourceId
The resource id of the theme, the boolean value should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"boolean",
"value",
"which",
"specified",
"whether",
"the",
"dialog",
"should",
"be",
"shown",
"fullscreen",
"or",
"not",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L93-L97 |
103,219 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainGravity | private void obtainGravity(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogGravity});
setGravity(typedArray.getInteger(0, Dialog.Gravity.CENTER));
} | java | private void obtainGravity(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogGravity});
setGravity(typedArray.getInteger(0, Dialog.Gravity.CENTER));
} | [
"private",
"void",
"obtainGravity",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int",
... | Obtains the gravity from a specific theme.
@param themeResourceId
The resource id of the theme, the gravity should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"gravity",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L106-L110 |
103,220 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainWidth | private void obtainWidth(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogWidth});
int defaultValue = getContext().getResources().getDimensionPixelSize(R.dimen.dialog_width);
... | java | private void obtainWidth(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogWidth});
int defaultValue = getContext().getResources().getDimensionPixelSize(R.dimen.dialog_width);
... | [
"private",
"void",
"obtainWidth",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int",
"... | Obtains the width from a specific theme.
@param themeResourceId
The resource id of the theme, the width should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"width",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L119-L129 |
103,221 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainHeight | private void obtainHeight(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeight});
int defaultValue = Dialog.WRAP_CONTENT;
try {
setHeight(typedArray.getDi... | java | private void obtainHeight(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeight});
int defaultValue = Dialog.WRAP_CONTENT;
try {
setHeight(typedArray.getDi... | [
"private",
"void",
"obtainHeight",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int",
... | Obtains the height from a specific theme.
@param themeResourceId
The resource id of the theme, the height should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"height",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L138-L148 |
103,222 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainMaxWidth | private void obtainMaxWidth(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogMaxWidth});
int defaultValue;
try {
defaultValue =
getContex... | java | private void obtainMaxWidth(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogMaxWidth});
int defaultValue;
try {
defaultValue =
getContex... | [
"private",
"void",
"obtainMaxWidth",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int",
... | Obtains the maximum width from a specific theme.
@param themeResourceId
The resource id of the theme, the maximum width should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"maximum",
"width",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L157-L174 |
103,223 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainMaxHeight | private void obtainMaxHeight(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogMaxHeight});
int defaultValue;
try {
defaultValue =
getCont... | java | private void obtainMaxHeight(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogMaxHeight});
int defaultValue;
try {
defaultValue =
getCont... | [
"private",
"void",
"obtainMaxHeight",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int",... | Obtains the maximum height from a specific theme.
@param themeResourceId
The resource id of the theme, the maximum height should be obtained from, as an
{@link Integer} value | [
"Obtains",
"the",
"maximum",
"height",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L183-L200 |
103,224 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainMargin | private void obtainMargin(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogMarginLeft, R.attr.materialDialogMarginTop,
R.attr.materialDialogMarginRight, R.attr.mat... | java | private void obtainMargin(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogMarginLeft, R.attr.materialDialogMarginTop,
R.attr.materialDialogMarginRight, R.attr.mat... | [
"private",
"void",
"obtainMargin",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int",
... | Obtains the margin from a specific theme.
@param themeResourceId
The resource id of the theme, the margin should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"margin",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L209-L222 |
103,225 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainFitsSystemWindows | private void obtainFitsSystemWindows(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogFitsSystemWindowsLeft,
R.attr.materialDialogFitsSystemWindowsTop,
... | java | private void obtainFitsSystemWindows(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogFitsSystemWindowsLeft,
R.attr.materialDialogFitsSystemWindowsTop,
... | [
"private",
"void",
"obtainFitsSystemWindows",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
... | Obtains, whether the dialog's content should be inset, from a specific theme.
@param themeResourceId
The resource id of the theme, the boolean value, which specifies whether the dialog's
content should be inset, should be obtained from, as a {@link Integer} value | [
"Obtains",
"whether",
"the",
"dialog",
"s",
"content",
"should",
"be",
"inset",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L257-L268 |
103,226 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainWindowBackground | private void obtainWindowBackground(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogWindowBackground});
int resourceId = typedArray.getResourceId(0, 0);
if (resourceId !... | java | private void obtainWindowBackground(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogWindowBackground});
int resourceId = typedArray.getResourceId(0, 0);
if (resourceId !... | [
"private",
"void",
"obtainWindowBackground",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
... | Obtains the window background from a specific theme.
@param themeResourceId
The resource id of the theme, the window background should be obtained from, as an
{@link Integer} value | [
"Obtains",
"the",
"window",
"background",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L277-L287 |
103,227 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainBackground | private void obtainBackground(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogBackground});
int resourceId = typedArray.getResourceId(0, 0);
if (resourceId != 0) {
... | java | private void obtainBackground(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogBackground});
int resourceId = typedArray.getResourceId(0, 0);
if (resourceId != 0) {
... | [
"private",
"void",
"obtainBackground",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int"... | Obtains the background from a specific theme.
@param themeResourceId
The resource id of the theme, the background should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"background",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L296-L307 |
103,228 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainMessageColor | private void obtainMessageColor(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogMessageColor});
int defaultColor = ThemeUtil
.getColor(getContext(), themeResource... | java | private void obtainMessageColor(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogMessageColor});
int defaultColor = ThemeUtil
.getColor(getContext(), themeResource... | [
"private",
"void",
"obtainMessageColor",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"in... | Obtains the message color from a specific theme.
@param themeResourceId
The resource id of the theme, the message color should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"message",
"color",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L316-L322 |
103,229 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainTitleColor | private void obtainTitleColor(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogTitleColor});
int defaultColor =
ThemeUtil.getColor(getContext(), themeResourceId, a... | java | private void obtainTitleColor(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogTitleColor});
int defaultColor =
ThemeUtil.getColor(getContext(), themeResourceId, a... | [
"private",
"void",
"obtainTitleColor",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"int"... | Obtains the title color from a specific theme.
@param themeResourceId
The resource id of the theme, the title color should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"title",
"color",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L331-L337 |
103,230 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainIconTintList | private void obtainIconTintList(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogIconTint});
setIconTintList(typedArray.getColorStateList(0));
} | java | private void obtainIconTintList(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogIconTint});
setIconTintList(typedArray.getColorStateList(0));
} | [
"private",
"void",
"obtainIconTintList",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"in... | Obtains the color state list, which is used to tint the icon of the dialog, from a specific
theme.
@param themeResourceId
The resource id of the theme, the color state list should be obtained from, as an
{@link Integer} value | [
"Obtains",
"the",
"color",
"state",
"list",
"which",
"is",
"used",
"to",
"tint",
"the",
"icon",
"of",
"the",
"dialog",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L347-L351 |
103,231 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainScrollableArea | private void obtainScrollableArea(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogScrollableAreaTop,
R.attr.materialDialogScrollableAreaBottom});
int topI... | java | private void obtainScrollableArea(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogScrollableAreaTop,
R.attr.materialDialogScrollableAreaBottom});
int topI... | [
"private",
"void",
"obtainScrollableArea",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"... | Obtains the scrollable area from a specific theme.
@param themeResourceId
The resource id of the theme, the scrollable area should be obtained from, as an
{@link Integer} value | [
"Obtains",
"the",
"scrollable",
"area",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L360-L379 |
103,232 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainShowDividersOnScroll | private void obtainShowDividersOnScroll(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogShowDividersOnScroll});
showDividersOnScroll(typedArray.getBoolean(0, true));
} | java | private void obtainShowDividersOnScroll(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogShowDividersOnScroll});
showDividersOnScroll(typedArray.getBoolean(0, true));
} | [
"private",
"void",
"obtainShowDividersOnScroll",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new... | Obtains, whether the dividers, which are located above and below the dialog's scrollable
areas, should be shown when scrolling, or not, from a specific theme.
@param themeResourceId
The resource id of the theme, the boolean value should be obtained from, as an {@link
Integer} value | [
"Obtains",
"whether",
"the",
"dividers",
"which",
"are",
"located",
"above",
"and",
"below",
"the",
"dialog",
"s",
"scrollable",
"areas",
"should",
"be",
"shown",
"when",
"scrolling",
"or",
"not",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L389-L393 |
103,233 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainDividerColor | private void obtainDividerColor(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogDividerColor});
int defaultColor = ContextCompat.getColor(getContext(), R.color.divider_color_ligh... | java | private void obtainDividerColor(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogDividerColor});
int defaultColor = ContextCompat.getColor(getContext(), R.color.divider_color_ligh... | [
"private",
"void",
"obtainDividerColor",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"in... | Obtains the color of dividers from a specific theme.
@param themeResourceId
The resource id of the theme, the color should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"color",
"of",
"dividers",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L402-L407 |
103,234 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainDividerMargin | private void obtainDividerMargin(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogDividerMargin});
setDividerMargin(typedArray.getDimensionPixelSize(0, 0));
} | java | private void obtainDividerMargin(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogDividerMargin});
setDividerMargin(typedArray.getDimensionPixelSize(0, 0));
} | [
"private",
"void",
"obtainDividerMargin",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"TypedArray",
"typedArray",
"=",
"getContext",
"(",
")",
".",
"getTheme",
"(",
")",
".",
"obtainStyledAttributes",
"(",
"themeResourceId",
",",
"new",
"i... | Obtains the left and right margin of dividers from a specific theme.
@param themeResourceId
The resource id of the theme, the margin should be obtained from, as an {@link
Integer} value | [
"Obtains",
"the",
"left",
"and",
"right",
"margin",
"of",
"dividers",
"from",
"a",
"specific",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L416-L420 |
103,235 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.obtainStyledAttributes | @CallSuper
protected void obtainStyledAttributes(@StyleRes final int themeResourceId) {
obtainFullscreen(themeResourceId);
obtainGravity(themeResourceId);
obtainWidth(themeResourceId);
obtainHeight(themeResourceId);
obtainMaxWidth(themeResourceId);
obtainMaxHeight(the... | java | @CallSuper
protected void obtainStyledAttributes(@StyleRes final int themeResourceId) {
obtainFullscreen(themeResourceId);
obtainGravity(themeResourceId);
obtainWidth(themeResourceId);
obtainHeight(themeResourceId);
obtainMaxWidth(themeResourceId);
obtainMaxHeight(the... | [
"@",
"CallSuper",
"protected",
"void",
"obtainStyledAttributes",
"(",
"@",
"StyleRes",
"final",
"int",
"themeResourceId",
")",
"{",
"obtainFullscreen",
"(",
"themeResourceId",
")",
";",
"obtainGravity",
"(",
"themeResourceId",
")",
";",
"obtainWidth",
"(",
"themeRes... | Obtains all relevant attributes from the current theme.
@param themeResourceId
The resource id of the theme, which should be used by the dialog, as an {@link
Integer} value. The resource id must correspond to a valid style resource | [
"Obtains",
"all",
"relevant",
"attributes",
"from",
"the",
"current",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L429-L449 |
103,236 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.setOnShowListener | public BuilderType setOnShowListener(@Nullable final DialogInterface.OnShowListener listener) {
getProduct().setOnShowListener(listener);
return self();
} | java | public BuilderType setOnShowListener(@Nullable final DialogInterface.OnShowListener listener) {
getProduct().setOnShowListener(listener);
return self();
} | [
"public",
"BuilderType",
"setOnShowListener",
"(",
"@",
"Nullable",
"final",
"DialogInterface",
".",
"OnShowListener",
"listener",
")",
"{",
"getProduct",
"(",
")",
".",
"setOnShowListener",
"(",
"listener",
")",
";",
"return",
"self",
"(",
")",
";",
"}"
] | Sets the listener, which should be notified, when the dialog has been shown.
@param listener
The listener, which should be set, as an instance of the type {@link
DialogInterface.OnShowListener}, or null, if no listener should be set | [
"Sets",
"the",
"listener",
"which",
"should",
"be",
"notified",
"when",
"the",
"dialog",
"has",
"been",
"shown",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L567-L570 |
103,237 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.setOnDismissListener | public final BuilderType setOnDismissListener(
@Nullable final DialogInterface.OnDismissListener listener) {
getProduct().setOnDismissListener(listener);
return self();
} | java | public final BuilderType setOnDismissListener(
@Nullable final DialogInterface.OnDismissListener listener) {
getProduct().setOnDismissListener(listener);
return self();
} | [
"public",
"final",
"BuilderType",
"setOnDismissListener",
"(",
"@",
"Nullable",
"final",
"DialogInterface",
".",
"OnDismissListener",
"listener",
")",
"{",
"getProduct",
"(",
")",
".",
"setOnDismissListener",
"(",
"listener",
")",
";",
"return",
"self",
"(",
")",
... | Sets the listener, which should be notified, when the dialog, which is created by the
builder, is dismissed for any reason.
@param listener
The listener, which should be set, as an instance of the type {@link
DialogInterface.OnDismissListener}, or null, if no listener should be set
@return The builder, the method has ... | [
"Sets",
"the",
"listener",
"which",
"should",
"be",
"notified",
"when",
"the",
"dialog",
"which",
"is",
"created",
"by",
"the",
"builder",
"is",
"dismissed",
"for",
"any",
"reason",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L605-L609 |
103,238 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.setMargin | public final BuilderType setMargin(final int left, final int top, final int right,
final int bottom) {
getProduct().setMargin(left, top, right, bottom);
return self();
} | java | public final BuilderType setMargin(final int left, final int top, final int right,
final int bottom) {
getProduct().setMargin(left, top, right, bottom);
return self();
} | [
"public",
"final",
"BuilderType",
"setMargin",
"(",
"final",
"int",
"left",
",",
"final",
"int",
"top",
",",
"final",
"int",
"right",
",",
"final",
"int",
"bottom",
")",
"{",
"getProduct",
"(",
")",
".",
"setMargin",
"(",
"left",
",",
"top",
",",
"righ... | Sets the margin of the dialog, which is created by the builder.
@param left
The left margin, which should be set, in pixels as an {@link Integer} value. The left
margin must be at least 0
@param top
The top margin, which should be set, in pixels as an {@link Integer} value. The top
margin must be at least 0
@param rig... | [
"Sets",
"the",
"margin",
"of",
"the",
"dialog",
"which",
"is",
"created",
"by",
"the",
"builder",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L715-L719 |
103,239 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.setPadding | public final BuilderType setPadding(final int left, final int top, final int right,
final int bottom) {
getProduct().setPadding(left, top, right, bottom);
return self();
} | java | public final BuilderType setPadding(final int left, final int top, final int right,
final int bottom) {
getProduct().setPadding(left, top, right, bottom);
return self();
} | [
"public",
"final",
"BuilderType",
"setPadding",
"(",
"final",
"int",
"left",
",",
"final",
"int",
"top",
",",
"final",
"int",
"right",
",",
"final",
"int",
"bottom",
")",
"{",
"getProduct",
"(",
")",
".",
"setPadding",
"(",
"left",
",",
"top",
",",
"ri... | Sets the padding of the dialog, which is created by the builder.
@param left
The left padding, which should be set, in pixels as an {@link Integer} value. The
left padding must be at least 0
@param top
The top padding, which should be set, in pixels as an {@link Integer} value. The top
padding must be at least 0
@para... | [
"Sets",
"the",
"padding",
"of",
"the",
"dialog",
"which",
"is",
"created",
"by",
"the",
"builder",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L739-L743 |
103,240 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.setFitsSystemWindows | public final BuilderType setFitsSystemWindows(final boolean left, final boolean top,
final boolean right, final boolean bottom) {
getProduct().setFitsSystemWindows(left, top, right, bottom);
return self();
} | java | public final BuilderType setFitsSystemWindows(final boolean left, final boolean top,
final boolean right, final boolean bottom) {
getProduct().setFitsSystemWindows(left, top, right, bottom);
return self();
} | [
"public",
"final",
"BuilderType",
"setFitsSystemWindows",
"(",
"final",
"boolean",
"left",
",",
"final",
"boolean",
"top",
",",
"final",
"boolean",
"right",
",",
"final",
"boolean",
"bottom",
")",
"{",
"getProduct",
"(",
")",
".",
"setFitsSystemWindows",
"(",
... | Sets, whether the dialog, which is created by the builder, should account for system screen
decorations such as the status bar and inset its content, or not.
@param left
True, if the dialog should inset its content at the left edge, false otherwise
@param top
True, if the dialog should inset its content at the top edg... | [
"Sets",
"whether",
"the",
"dialog",
"which",
"is",
"created",
"by",
"the",
"builder",
"should",
"account",
"for",
"system",
"screen",
"decorations",
"such",
"as",
"the",
"status",
"bar",
"and",
"inset",
"its",
"content",
"or",
"not",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L774-L778 |
103,241 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java | AbstractMaterialDialogBuilder.setScrollableArea | public final BuilderType setScrollableArea(@Nullable final Area top,
@Nullable final Area bottom) {
getProduct().setScrollableArea(top, bottom);
return self();
} | java | public final BuilderType setScrollableArea(@Nullable final Area top,
@Nullable final Area bottom) {
getProduct().setScrollableArea(top, bottom);
return self();
} | [
"public",
"final",
"BuilderType",
"setScrollableArea",
"(",
"@",
"Nullable",
"final",
"Area",
"top",
",",
"@",
"Nullable",
"final",
"Area",
"bottom",
")",
"{",
"getProduct",
"(",
")",
".",
"setScrollableArea",
"(",
"top",
",",
"bottom",
")",
";",
"return",
... | Sets the areas of the dialog, which is created by the builder, which should be scrollable.
@param top
The top-most area, which should be scrollable, as a value of the enum {@link Area} or
null, if no area should be scrollable
@param bottom
The bottom-most area, which should be scrollable, as a value of the enum {@link... | [
"Sets",
"the",
"areas",
"of",
"the",
"dialog",
"which",
"is",
"created",
"by",
"the",
"builder",
"which",
"should",
"be",
"scrollable",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractMaterialDialogBuilder.java#L1135-L1139 |
103,242 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/animation/DialogAnimation.java | DialogAnimation.setInterpolator | protected final void setInterpolator(@NonNull final Interpolator interpolator) {
Condition.INSTANCE.ensureNotNull(interpolator, "The interpolator may not be null");
this.interpolator = interpolator;
} | java | protected final void setInterpolator(@NonNull final Interpolator interpolator) {
Condition.INSTANCE.ensureNotNull(interpolator, "The interpolator may not be null");
this.interpolator = interpolator;
} | [
"protected",
"final",
"void",
"setInterpolator",
"(",
"@",
"NonNull",
"final",
"Interpolator",
"interpolator",
")",
"{",
"Condition",
".",
"INSTANCE",
".",
"ensureNotNull",
"(",
"interpolator",
",",
"\"The interpolator may not be null\"",
")",
";",
"this",
".",
"int... | Sets the interpolator, which should be used by the animation.
@param interpolator
The interpolator, which should be set, as an instance of the type {@link
Interpolator}. The interpolator may not be null | [
"Sets",
"the",
"interpolator",
"which",
"should",
"be",
"used",
"by",
"the",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/animation/DialogAnimation.java#L142-L145 |
103,243 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/animation/DialogAnimation.java | DialogAnimation.setAlpha | protected final void setAlpha(final float alpha) {
Condition.INSTANCE.ensureAtLeast(alpha, 0, "The alpha must be at least 0");
Condition.INSTANCE.ensureAtMaximum(alpha, 1, "The alpha must be at maximum 1");
this.alpha = alpha;
} | java | protected final void setAlpha(final float alpha) {
Condition.INSTANCE.ensureAtLeast(alpha, 0, "The alpha must be at least 0");
Condition.INSTANCE.ensureAtMaximum(alpha, 1, "The alpha must be at maximum 1");
this.alpha = alpha;
} | [
"protected",
"final",
"void",
"setAlpha",
"(",
"final",
"float",
"alpha",
")",
"{",
"Condition",
".",
"INSTANCE",
".",
"ensureAtLeast",
"(",
"alpha",
",",
"0",
",",
"\"The alpha must be at least 0\"",
")",
";",
"Condition",
".",
"INSTANCE",
".",
"ensureAtMaximum... | Sets the alpha, which should be used by the animation.
@param alpha
The alpha, which should be set, as a {@link Float} value. The alpha must be at least
0 and at maximum 1 | [
"Sets",
"the",
"alpha",
"which",
"should",
"be",
"used",
"by",
"the",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/animation/DialogAnimation.java#L178-L182 |
103,244 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialog.java | AbstractMaterialDialog.createCanceledOnTouchListener | private View.OnTouchListener createCanceledOnTouchListener() {
return new View.OnTouchListener() {
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouch(final View v, final MotionEvent event) {
return isCanceledOnTouchOutside() && !isFu... | java | private View.OnTouchListener createCanceledOnTouchListener() {
return new View.OnTouchListener() {
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouch(final View v, final MotionEvent event) {
return isCanceledOnTouchOutside() && !isFu... | [
"private",
"View",
".",
"OnTouchListener",
"createCanceledOnTouchListener",
"(",
")",
"{",
"return",
"new",
"View",
".",
"OnTouchListener",
"(",
")",
"{",
"@",
"SuppressLint",
"(",
"\"ClickableViewAccessibility\"",
")",
"@",
"Override",
"public",
"boolean",
"onTouch... | Creates and returns a listener, which allows to cancel the dialog, when touched outside the
window.
@return The listener, which has been created, as an instance of the type {@link
View.OnTouchListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"cancel",
"the",
"dialog",
"when",
"touched",
"outside",
"the",
"window",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialog.java#L94-L104 |
103,245 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialog.java | AbstractMaterialDialog.attachDecorators | private Map<ViewType, View> attachDecorators(@NonNull final Window window,
@NonNull final DialogRootView rootView,
@NonNull final View view) {
Map<ViewType, View> result = new HashMap<>();
for (AbstractDec... | java | private Map<ViewType, View> attachDecorators(@NonNull final Window window,
@NonNull final DialogRootView rootView,
@NonNull final View view) {
Map<ViewType, View> result = new HashMap<>();
for (AbstractDec... | [
"private",
"Map",
"<",
"ViewType",
",",
"View",
">",
"attachDecorators",
"(",
"@",
"NonNull",
"final",
"Window",
"window",
",",
"@",
"NonNull",
"final",
"DialogRootView",
"rootView",
",",
"@",
"NonNull",
"final",
"View",
"view",
")",
"{",
"Map",
"<",
"View... | Attaches all registered decorators to the dialog.
@param window
The window, the dialog belongs to, as an instance of the class {@link Window}. The
window may not be null
@param rootView
The root view of the dialog as an instance of the class {@link DialogRootView}. The
root view may not be null
@param view
The view of... | [
"Attaches",
"all",
"registered",
"decorators",
"to",
"the",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialog.java#L122-L133 |
103,246 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/MainActivity.java | MainActivity.initializeFloatingActionButton | private void initializeFloatingActionButton() {
floatingActionButton = findViewById(R.id.floating_action_button);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
floatingActionButton.show();
floatingActionButton.setOnClickListener(createFloatingActionButtonListener(... | java | private void initializeFloatingActionButton() {
floatingActionButton = findViewById(R.id.floating_action_button);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
floatingActionButton.show();
floatingActionButton.setOnClickListener(createFloatingActionButtonListener(... | [
"private",
"void",
"initializeFloatingActionButton",
"(",
")",
"{",
"floatingActionButton",
"=",
"findViewById",
"(",
"R",
".",
"id",
".",
"floating_action_button",
")",
";",
"if",
"(",
"Build",
".",
"VERSION",
".",
"SDK_INT",
">=",
"Build",
".",
"VERSION_CODES"... | Initializes the floating action button, which allows to show an alert dialog using a circle
reveal animation. | [
"Initializes",
"the",
"floating",
"action",
"button",
"which",
"allows",
"to",
"show",
"an",
"alert",
"dialog",
"using",
"a",
"circle",
"reveal",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/MainActivity.java#L57-L66 |
103,247 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/MainActivity.java | MainActivity.createFloatingActionButtonListener | private OnClickListener createFloatingActionButtonListener() {
return new OnClickListener() {
@Override
public void onClick(final View v) {
fragment.showAlertDialog(v);
}
};
} | java | private OnClickListener createFloatingActionButtonListener() {
return new OnClickListener() {
@Override
public void onClick(final View v) {
fragment.showAlertDialog(v);
}
};
} | [
"private",
"OnClickListener",
"createFloatingActionButtonListener",
"(",
")",
"{",
"return",
"new",
"OnClickListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onClick",
"(",
"final",
"View",
"v",
")",
"{",
"fragment",
".",
"showAlertDialog",
"(",
"v",... | Creates and returns a listener, which allows to show an alert dialog using a circle reveal
animation, when the corresponding floating action button is clicked.
@return The listener, which has been created, as an instance of the type {@link
OnClickListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"show",
"an",
"alert",
"dialog",
"using",
"a",
"circle",
"reveal",
"animation",
"when",
"the",
"corresponding",
"floating",
"action",
"button",
"is",
"clicked",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/MainActivity.java#L75-L84 |
103,248 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/MainActivity.java | MainActivity.createScrollListener | private RecyclerView.OnScrollListener createScrollListener() {
return new RecyclerView.OnScrollListener() {
/**
* True, if the view is currently scrolling up, false otherwise.
*/
private boolean scrollingUp;
@Override
public void onScro... | java | private RecyclerView.OnScrollListener createScrollListener() {
return new RecyclerView.OnScrollListener() {
/**
* True, if the view is currently scrolling up, false otherwise.
*/
private boolean scrollingUp;
@Override
public void onScro... | [
"private",
"RecyclerView",
".",
"OnScrollListener",
"createScrollListener",
"(",
")",
"{",
"return",
"new",
"RecyclerView",
".",
"OnScrollListener",
"(",
")",
"{",
"/**\n * True, if the view is currently scrolling up, false otherwise.\n */",
"private",
"bo... | Creates and returns a listener, which allows to hide or show the activity's floating action
button, when the preferences, which are shown by the activity's fragment, are scrolled.
@return The listener, which has been created, as an instance of the type {@link
RecyclerView.OnScrollListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"hide",
"or",
"show",
"the",
"activity",
"s",
"floating",
"action",
"button",
"when",
"the",
"preferences",
"which",
"are",
"shown",
"by",
"the",
"activity",
"s",
"fragment",
"are",
"scro... | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/MainActivity.java#L93-L122 |
103,249 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java | AnimateableDialogDecorator.createAnimator | private ViewPropertyAnimator createAnimator(@NonNull final View animatedView,
@NonNull final FadeAnimation animation,
@Nullable final AnimatorListener listener,
final boolean s... | java | private ViewPropertyAnimator createAnimator(@NonNull final View animatedView,
@NonNull final FadeAnimation animation,
@Nullable final AnimatorListener listener,
final boolean s... | [
"private",
"ViewPropertyAnimator",
"createAnimator",
"(",
"@",
"NonNull",
"final",
"View",
"animatedView",
",",
"@",
"NonNull",
"final",
"FadeAnimation",
"animation",
",",
"@",
"Nullable",
"final",
"AnimatorListener",
"listener",
",",
"final",
"boolean",
"show",
")"... | Creates an animator, which should be used for a fade animation.
@param animatedView
The animated view as an instance of the class {@link View}. The view may not be null
@param animation
The animation as an instance of the class {@link FadeAnimation}. The animation may
not be null
@param listener
The listener, which sh... | [
"Creates",
"an",
"animator",
"which",
"should",
"be",
"used",
"for",
"a",
"fade",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java#L86-L108 |
103,250 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java | AnimateableDialogDecorator.createAnimator | @Nullable
private ViewPropertyAnimator createAnimator(@NonNull final View animatedView,
@NonNull final RectangleRevealAnimation animation,
@Nullable final AnimatorListener listener) {
if (animation.getX() != null... | java | @Nullable
private ViewPropertyAnimator createAnimator(@NonNull final View animatedView,
@NonNull final RectangleRevealAnimation animation,
@Nullable final AnimatorListener listener) {
if (animation.getX() != null... | [
"@",
"Nullable",
"private",
"ViewPropertyAnimator",
"createAnimator",
"(",
"@",
"NonNull",
"final",
"View",
"animatedView",
",",
"@",
"NonNull",
"final",
"RectangleRevealAnimation",
"animation",
",",
"@",
"Nullable",
"final",
"AnimatorListener",
"listener",
")",
"{",
... | Creates an animator, which should be used for a rectangular reveal animation.
@param animatedView
The animated view as an instance of the class {@link View}. The view may not be null
@param animation
The animation as an instance of the class {@link RectangleRevealAnimation}. The
animation may not be null
@param listen... | [
"Creates",
"an",
"animator",
"which",
"should",
"be",
"used",
"for",
"a",
"rectangular",
"reveal",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java#L124-L136 |
103,251 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java | AnimateableDialogDecorator.configureShowAnimator | private void configureShowAnimator(@NonNull final View animatedView,
@NonNull final RectangleRevealAnimation animation,
@NonNull final ViewPropertyAnimator animator) {
int horizontalWindowInset =
getDialog().getWindowI... | java | private void configureShowAnimator(@NonNull final View animatedView,
@NonNull final RectangleRevealAnimation animation,
@NonNull final ViewPropertyAnimator animator) {
int horizontalWindowInset =
getDialog().getWindowI... | [
"private",
"void",
"configureShowAnimator",
"(",
"@",
"NonNull",
"final",
"View",
"animatedView",
",",
"@",
"NonNull",
"final",
"RectangleRevealAnimation",
"animation",
",",
"@",
"NonNull",
"final",
"ViewPropertyAnimator",
"animator",
")",
"{",
"int",
"horizontalWindo... | Configures an animator, which should be used to show the dialog using a rectangular reveal
animation.
@param animatedView
The animated view as an instance of the class {@link View}. The view may not be null
@param animation
The animation as an instance of the class {@link RectangleRevealAnimation}. The
animation may n... | [
"Configures",
"an",
"animator",
"which",
"should",
"be",
"used",
"to",
"show",
"the",
"dialog",
"using",
"a",
"rectangular",
"reveal",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java#L151-L197 |
103,252 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java | AnimateableDialogDecorator.createAnimator | @Nullable
private Animator createAnimator(@NonNull final View animatedView, @NonNull final View rootView,
@NonNull final CircleRevealAnimation animation,
@Nullable final AnimatorListener listener, final boolean show) {
if (Build.VERSION... | java | @Nullable
private Animator createAnimator(@NonNull final View animatedView, @NonNull final View rootView,
@NonNull final CircleRevealAnimation animation,
@Nullable final AnimatorListener listener, final boolean show) {
if (Build.VERSION... | [
"@",
"Nullable",
"private",
"Animator",
"createAnimator",
"(",
"@",
"NonNull",
"final",
"View",
"animatedView",
",",
"@",
"NonNull",
"final",
"View",
"rootView",
",",
"@",
"NonNull",
"final",
"CircleRevealAnimation",
"animation",
",",
"@",
"Nullable",
"final",
"... | Creates an animator, which should be used for a circle reveal animation.
@param animatedView
The animated view as an instance of the class {@link View}. The view may not be null
@param rootView
The root view of the dialog as an instance of the class {@link View}. The view may
not be null
@param animation
The animation... | [
"Creates",
"an",
"animator",
"which",
"should",
"be",
"used",
"for",
"a",
"circle",
"reveal",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java#L274-L314 |
103,253 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java | AnimateableDialogDecorator.getDuration | private long getDuration(@NonNull final View animatedView,
@NonNull final DialogAnimation animation) {
double scale = 1;
if (animatedView.getAnimation() != null) {
scale = (double) (System.currentTimeMillis() -
animatedView.getAnimation().get... | java | private long getDuration(@NonNull final View animatedView,
@NonNull final DialogAnimation animation) {
double scale = 1;
if (animatedView.getAnimation() != null) {
scale = (double) (System.currentTimeMillis() -
animatedView.getAnimation().get... | [
"private",
"long",
"getDuration",
"(",
"@",
"NonNull",
"final",
"View",
"animatedView",
",",
"@",
"NonNull",
"final",
"DialogAnimation",
"animation",
")",
"{",
"double",
"scale",
"=",
"1",
";",
"if",
"(",
"animatedView",
".",
"getAnimation",
"(",
")",
"!=",
... | Returns the duration, which should be used for an animation, depending on whether a previous
animation is still running, or not.
@param animatedView
The animated view as an instance of the class {@link View}. The view may not be null
@param animation
The animation as an instance of the class {@link DialogAnimation}. T... | [
"Returns",
"the",
"duration",
"which",
"should",
"be",
"used",
"for",
"an",
"animation",
"depending",
"on",
"whether",
"a",
"previous",
"animation",
"is",
"still",
"running",
"or",
"not",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java#L328-L340 |
103,254 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java | AnimateableDialogDecorator.createHideAnimationListener | private AnimatorListener createHideAnimationListener(@NonNull final View animatedView,
@Nullable final AnimatorListener listener) {
return new AnimatorListener() {
@Override
public void onAnimationStart(final Animator animation) {... | java | private AnimatorListener createHideAnimationListener(@NonNull final View animatedView,
@Nullable final AnimatorListener listener) {
return new AnimatorListener() {
@Override
public void onAnimationStart(final Animator animation) {... | [
"private",
"AnimatorListener",
"createHideAnimationListener",
"(",
"@",
"NonNull",
"final",
"View",
"animatedView",
",",
"@",
"Nullable",
"final",
"AnimatorListener",
"listener",
")",
"{",
"return",
"new",
"AnimatorListener",
"(",
")",
"{",
"@",
"Override",
"public"... | Creates and returns an animation listener, which allows to hide the animated view once the
animation is finished.
@param animatedView
The animated view as an instance of the class {@link View}. The view may not be null
@param listener
The listener, which should be notified, as an instance of the type {@link
AnimatorLi... | [
"Creates",
"and",
"returns",
"an",
"animation",
"listener",
"which",
"allows",
"to",
"hide",
"the",
"animated",
"view",
"once",
"the",
"animation",
"is",
"finished",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java#L354-L389 |
103,255 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java | AnimateableDialogDecorator.showAnimated | public final boolean showAnimated(@Nullable final DialogAnimation animation,
@Nullable final AnimatorListener listener) {
hidden = false;
if (animation != null) {
Window window = getWindow();
View view = getRootView();
if (view ... | java | public final boolean showAnimated(@Nullable final DialogAnimation animation,
@Nullable final AnimatorListener listener) {
hidden = false;
if (animation != null) {
Window window = getWindow();
View view = getRootView();
if (view ... | [
"public",
"final",
"boolean",
"showAnimated",
"(",
"@",
"Nullable",
"final",
"DialogAnimation",
"animation",
",",
"@",
"Nullable",
"final",
"AnimatorListener",
"listener",
")",
"{",
"hidden",
"=",
"false",
";",
"if",
"(",
"animation",
"!=",
"null",
")",
"{",
... | Shows the dialog in an animated manner, according to a specific animation.
@param animation
The animation, which should be used, as an instance of the class {@link
DialogAnimation} or null, if no animation should be used
@param listener
The listener, which should be notified about the animation's events, as an instanc... | [
"Shows",
"the",
"dialog",
"in",
"an",
"animated",
"manner",
"according",
"to",
"a",
"specific",
"animation",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/AnimateableDialogDecorator.java#L415-L463 |
103,256 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/listener/AbstractListenerWrapper.java | AbstractListenerWrapper.attemptCloseDialog | protected final void attemptCloseDialog() {
switch (buttonType) {
case AlertDialog.BUTTON_NEGATIVE:
dialog.cancel();
break;
case AlertDialog.BUTTON_NEUTRAL:
dialog.cancel();
break;
case AlertDialog.BUTTON_POSITIV... | java | protected final void attemptCloseDialog() {
switch (buttonType) {
case AlertDialog.BUTTON_NEGATIVE:
dialog.cancel();
break;
case AlertDialog.BUTTON_NEUTRAL:
dialog.cancel();
break;
case AlertDialog.BUTTON_POSITIV... | [
"protected",
"final",
"void",
"attemptCloseDialog",
"(",
")",
"{",
"switch",
"(",
"buttonType",
")",
"{",
"case",
"AlertDialog",
".",
"BUTTON_NEGATIVE",
":",
"dialog",
".",
"cancel",
"(",
")",
";",
"break",
";",
"case",
"AlertDialog",
".",
"BUTTON_NEUTRAL",
... | Attempts to close the dialog depending on the type of the buttonType or list view, the
listener belongs to. | [
"Attempts",
"to",
"close",
"the",
"dialog",
"depending",
"on",
"the",
"type",
"of",
"the",
"buttonType",
"or",
"list",
"view",
"the",
"listener",
"belongs",
"to",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/listener/AbstractListenerWrapper.java#L47-L61 |
103,257 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/AbstractAnimateableDialog.java | AbstractAnimateableDialog.createOnShowListener | private OnShowListener createOnShowListener() {
return new OnShowListener() {
@Override
public void onShow(final DialogInterface dialog) {
decorator.showAnimated(getShowAnimation(), null);
if (onShowListener != null) {
onShowListener.... | java | private OnShowListener createOnShowListener() {
return new OnShowListener() {
@Override
public void onShow(final DialogInterface dialog) {
decorator.showAnimated(getShowAnimation(), null);
if (onShowListener != null) {
onShowListener.... | [
"private",
"OnShowListener",
"createOnShowListener",
"(",
")",
"{",
"return",
"new",
"OnShowListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onShow",
"(",
"final",
"DialogInterface",
"dialog",
")",
"{",
"decorator",
".",
"showAnimated",
"(",
"getSho... | Creates and returns a listener, which allows to observe, when the dialog has been shown.
@return The listener, which has been created, as an instance of the type {@link
OnShowListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"observe",
"when",
"the",
"dialog",
"has",
"been",
"shown",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/AbstractAnimateableDialog.java#L57-L70 |
103,258 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/AbstractAnimateableDialog.java | AbstractAnimateableDialog.createDismissAnimationListener | private AnimatorListener createDismissAnimationListener() {
return new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
AbstractAnimateableDialog.super.dismiss();
}
... | java | private AnimatorListener createDismissAnimationListener() {
return new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
AbstractAnimateableDialog.super.dismiss();
}
... | [
"private",
"AnimatorListener",
"createDismissAnimationListener",
"(",
")",
"{",
"return",
"new",
"AnimatorListenerAdapter",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onAnimationEnd",
"(",
"Animator",
"animation",
")",
"{",
"super",
".",
"onAnimationEnd",
"(... | Creates and returns an animation listener, which allows to dismiss the dialog, once the
animation, which is used to hide it, has finished.
@return The animation listener, which has been created, as an instance of the type {@link
AnimatorListener} | [
"Creates",
"and",
"returns",
"an",
"animation",
"listener",
"which",
"allows",
"to",
"dismiss",
"the",
"dialog",
"once",
"the",
"animation",
"which",
"is",
"used",
"to",
"hide",
"it",
"has",
"finished",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/AbstractAnimateableDialog.java#L79-L89 |
103,259 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/AbstractAnimateableDialog.java | AbstractAnimateableDialog.createCancelAnimationListener | private AnimatorListener createCancelAnimationListener() {
return new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(final Animator animation) {
super.onAnimationEnd(animation);
AbstractAnimateableDialog.super.cancel();
}
... | java | private AnimatorListener createCancelAnimationListener() {
return new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(final Animator animation) {
super.onAnimationEnd(animation);
AbstractAnimateableDialog.super.cancel();
}
... | [
"private",
"AnimatorListener",
"createCancelAnimationListener",
"(",
")",
"{",
"return",
"new",
"AnimatorListenerAdapter",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onAnimationEnd",
"(",
"final",
"Animator",
"animation",
")",
"{",
"super",
".",
"onAnimation... | Creates and returns an animation listener, which allows to cancel the dialog, once the
animation, which is used to hide it, has finished.
@return The animation listener, which has been created, as an instance of the type {@link
AnimatorListener} | [
"Creates",
"and",
"returns",
"an",
"animation",
"listener",
"which",
"allows",
"to",
"cancel",
"the",
"dialog",
"once",
"the",
"animation",
"which",
"is",
"used",
"to",
"hide",
"it",
"has",
"finished",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/AbstractAnimateableDialog.java#L98-L108 |
103,260 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/adapter/RecyclerViewAdapterWrapper.java | RecyclerViewAdapterWrapper.createItemClickListener | @NonNull
private View.OnClickListener createItemClickListener(final int position) {
return new View.OnClickListener() {
@Override
public void onClick(View v) {
setItemChecked(position, !isItemChecked(position));
if (itemClickListener != null) {
... | java | @NonNull
private View.OnClickListener createItemClickListener(final int position) {
return new View.OnClickListener() {
@Override
public void onClick(View v) {
setItemChecked(position, !isItemChecked(position));
if (itemClickListener != null) {
... | [
"@",
"NonNull",
"private",
"View",
".",
"OnClickListener",
"createItemClickListener",
"(",
"final",
"int",
"position",
")",
"{",
"return",
"new",
"View",
".",
"OnClickListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onClick",
"(",
"View",
"v",
"... | Creates a listener, which allows to select a list item when it has been clicked.
@param position
The position of the list item as an {@link Integer} value
@return The listener, which has been created, as an instance of the type {@link
View.OnClickListener}. The listener may not be null | [
"Creates",
"a",
"listener",
"which",
"allows",
"to",
"select",
"a",
"list",
"item",
"when",
"it",
"has",
"been",
"clicked",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/adapter/RecyclerViewAdapterWrapper.java#L242-L256 |
103,261 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/adapter/RecyclerViewAdapterWrapper.java | RecyclerViewAdapterWrapper.setItemChecked | public final void setItemChecked(final int position, final boolean checked) {
if (choiceMode.setItemChecked(position, checked)) {
notifyDataSetChanged();
if (checked && itemSelectedListener != null) {
itemSelectedListener.onItemSelected(position);
}
}... | java | public final void setItemChecked(final int position, final boolean checked) {
if (choiceMode.setItemChecked(position, checked)) {
notifyDataSetChanged();
if (checked && itemSelectedListener != null) {
itemSelectedListener.onItemSelected(position);
}
}... | [
"public",
"final",
"void",
"setItemChecked",
"(",
"final",
"int",
"position",
",",
"final",
"boolean",
"checked",
")",
"{",
"if",
"(",
"choiceMode",
".",
"setItemChecked",
"(",
"position",
",",
"checked",
")",
")",
"{",
"notifyDataSetChanged",
"(",
")",
";",... | Sets, whether the list item at a specific position should be selected, or not.
@param position
The position of the list item, whose selection state should be changed, as an {@link
Integer} value
@param checked
True, if the list item should be selected, false otherwise | [
"Sets",
"whether",
"the",
"list",
"item",
"at",
"a",
"specific",
"position",
"should",
"be",
"selected",
"or",
"not",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/adapter/RecyclerViewAdapterWrapper.java#L373-L381 |
103,262 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java | ScrollView.notifyOnScrolled | private void notifyOnScrolled(final boolean scrolledToTop, final boolean scrolledToBottom) {
for (ScrollListener listener : scrollListeners) {
listener.onScrolled(scrolledToTop, scrolledToBottom);
}
} | java | private void notifyOnScrolled(final boolean scrolledToTop, final boolean scrolledToBottom) {
for (ScrollListener listener : scrollListeners) {
listener.onScrolled(scrolledToTop, scrolledToBottom);
}
} | [
"private",
"void",
"notifyOnScrolled",
"(",
"final",
"boolean",
"scrolledToTop",
",",
"final",
"boolean",
"scrolledToBottom",
")",
"{",
"for",
"(",
"ScrollListener",
"listener",
":",
"scrollListeners",
")",
"{",
"listener",
".",
"onScrolled",
"(",
"scrolledToTop",
... | Notifies, when the scroll view has been scrolled.
@param scrolledToTop
True, if the scroll view is scrolled to the top, false otherwise
@param scrolledToBottom
True, if the scroll view is scrolled to the bottom, false otherwise | [
"Notifies",
"when",
"the",
"scroll",
"view",
"has",
"been",
"scrolled",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java#L76-L80 |
103,263 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java | ScrollView.addScrollListener | public void addScrollListener(@NonNull final ScrollListener listener) {
Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null");
this.scrollListeners.add(listener);
} | java | public void addScrollListener(@NonNull final ScrollListener listener) {
Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null");
this.scrollListeners.add(listener);
} | [
"public",
"void",
"addScrollListener",
"(",
"@",
"NonNull",
"final",
"ScrollListener",
"listener",
")",
"{",
"Condition",
".",
"INSTANCE",
".",
"ensureNotNull",
"(",
"listener",
",",
"\"The listener may not be null\"",
")",
";",
"this",
".",
"scrollListeners",
".",
... | Adds a listener, which should be notified, when the scroll view is scrolled.
@param listener
The listener, which should be added, as an instance of the type {@link
ScrollListener}. The listener may not be null | [
"Adds",
"a",
"listener",
"which",
"should",
"be",
"notified",
"when",
"the",
"scroll",
"view",
"is",
"scrolled",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java#L160-L163 |
103,264 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java | ScrollView.removeScrollListener | public void removeScrollListener(@NonNull final ScrollListener listener) {
Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null");
this.scrollListeners.remove(listener);
} | java | public void removeScrollListener(@NonNull final ScrollListener listener) {
Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null");
this.scrollListeners.remove(listener);
} | [
"public",
"void",
"removeScrollListener",
"(",
"@",
"NonNull",
"final",
"ScrollListener",
"listener",
")",
"{",
"Condition",
".",
"INSTANCE",
".",
"ensureNotNull",
"(",
"listener",
",",
"\"The listener may not be null\"",
")",
";",
"this",
".",
"scrollListeners",
".... | Removes a specific listener, which should not be notified, when the scroll view is scrolled,
anymore.
@param listener
The listener, which should be removed, as an instance of the type {@link
ScrollListener}. The listener may not be null | [
"Removes",
"a",
"specific",
"listener",
"which",
"should",
"not",
"be",
"notified",
"when",
"the",
"scroll",
"view",
"is",
"scrolled",
"anymore",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java#L173-L176 |
103,265 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java | ScrollView.isScrolledToBottom | public final boolean isScrolledToBottom() {
int y = getScrollY();
View view = getChildAt(0);
return (view.getBottom() - y) == getHeight();
} | java | public final boolean isScrolledToBottom() {
int y = getScrollY();
View view = getChildAt(0);
return (view.getBottom() - y) == getHeight();
} | [
"public",
"final",
"boolean",
"isScrolledToBottom",
"(",
")",
"{",
"int",
"y",
"=",
"getScrollY",
"(",
")",
";",
"View",
"view",
"=",
"getChildAt",
"(",
"0",
")",
";",
"return",
"(",
"view",
".",
"getBottom",
"(",
")",
"-",
"y",
")",
"==",
"getHeight... | Returns, whether the scroll view is scrolled to the bottom, or not.
@return True, if the scroll view is scrolled to the bottom, false otherwise | [
"Returns",
"whether",
"the",
"scroll",
"view",
"is",
"scrolled",
"to",
"the",
"bottom",
"or",
"not",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/view/ScrollView.java#L192-L196 |
103,266 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/builder/AbstractBuilder.java | AbstractBuilder.setContext | protected final void setContext(@NonNull final Context context) {
Condition.INSTANCE.ensureNotNull(context, "The context may not be null");
this.context = context;
} | java | protected final void setContext(@NonNull final Context context) {
Condition.INSTANCE.ensureNotNull(context, "The context may not be null");
this.context = context;
} | [
"protected",
"final",
"void",
"setContext",
"(",
"@",
"NonNull",
"final",
"Context",
"context",
")",
"{",
"Condition",
".",
"INSTANCE",
".",
"ensureNotNull",
"(",
"context",
",",
"\"The context may not be null\"",
")",
";",
"this",
".",
"context",
"=",
"context"... | Sets the context, which should be used by the builder.
@param context
The context, which should be set, as an instance of the class {@link Context}. The
context may not be null | [
"Sets",
"the",
"context",
"which",
"should",
"be",
"used",
"by",
"the",
"builder",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractBuilder.java#L74-L77 |
103,267 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java | ProgressDialogDecorator.getCustomMessageId | private int getCustomMessageId() {
switch (progressBarPosition) {
case LEFT:
return R.layout.progress_dialog_left;
case TOP:
return R.layout.progress_dialog_top;
case RIGHT:
return R.layout.progress_dialog_right;
cas... | java | private int getCustomMessageId() {
switch (progressBarPosition) {
case LEFT:
return R.layout.progress_dialog_left;
case TOP:
return R.layout.progress_dialog_top;
case RIGHT:
return R.layout.progress_dialog_right;
cas... | [
"private",
"int",
"getCustomMessageId",
"(",
")",
"{",
"switch",
"(",
"progressBarPosition",
")",
"{",
"case",
"LEFT",
":",
"return",
"R",
".",
"layout",
".",
"progress_dialog_left",
";",
"case",
"TOP",
":",
"return",
"R",
".",
"layout",
".",
"progress_dialo... | Returns the resource id of the layout, which should be used as the dialog's custom message,
depending on the position of the dialog's progress bar.
@return The resource id of the layout, which should be used as the diaog's custom message, as
an {@link Integer} value | [
"Returns",
"the",
"resource",
"id",
"of",
"the",
"layout",
"which",
"should",
"be",
"used",
"as",
"the",
"dialog",
"s",
"custom",
"message",
"depending",
"on",
"the",
"position",
"of",
"the",
"dialog",
"s",
"progress",
"bar",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java#L108-L121 |
103,268 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java | ProgressDialogDecorator.adaptProgressBar | private void adaptProgressBar() {
LayoutInflater inflater = LayoutInflater.from(getContext());
View view = inflater.inflate(getCustomMessageId(), getRootView(), false);
getDialog().setCustomMessage(view);
View progressView = view.findViewById(R.id.progress_bar);
progressBar =
... | java | private void adaptProgressBar() {
LayoutInflater inflater = LayoutInflater.from(getContext());
View view = inflater.inflate(getCustomMessageId(), getRootView(), false);
getDialog().setCustomMessage(view);
View progressView = view.findViewById(R.id.progress_bar);
progressBar =
... | [
"private",
"void",
"adaptProgressBar",
"(",
")",
"{",
"LayoutInflater",
"inflater",
"=",
"LayoutInflater",
".",
"from",
"(",
"getContext",
"(",
")",
")",
";",
"View",
"view",
"=",
"inflater",
".",
"inflate",
"(",
"getCustomMessageId",
"(",
")",
",",
"getRoot... | Adapts the dialog's progress bar. | [
"Adapts",
"the",
"dialog",
"s",
"progress",
"bar",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java#L126-L138 |
103,269 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java | ProgressDialogDecorator.adaptProgressBarSize | private void adaptProgressBarSize() {
if (progressBar != null) {
progressBar.setVisibility(progressBarSize > 0 ? View.VISIBLE : View.GONE);
ViewGroup.LayoutParams layoutParams = progressBar.getLayoutParams();
layoutParams.width = progressBarSize;
layoutParams.heig... | java | private void adaptProgressBarSize() {
if (progressBar != null) {
progressBar.setVisibility(progressBarSize > 0 ? View.VISIBLE : View.GONE);
ViewGroup.LayoutParams layoutParams = progressBar.getLayoutParams();
layoutParams.width = progressBarSize;
layoutParams.heig... | [
"private",
"void",
"adaptProgressBarSize",
"(",
")",
"{",
"if",
"(",
"progressBar",
"!=",
"null",
")",
"{",
"progressBar",
".",
"setVisibility",
"(",
"progressBarSize",
">",
"0",
"?",
"View",
".",
"VISIBLE",
":",
"View",
".",
"GONE",
")",
";",
"ViewGroup",... | Adapts the size of the dialog's circular progress bar. | [
"Adapts",
"the",
"size",
"of",
"the",
"dialog",
"s",
"circular",
"progress",
"bar",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java#L152-L159 |
103,270 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java | ProgressDialogDecorator.adaptMessageTextSize | private void adaptMessageTextSize() {
if (getRootView() != null) {
View messageView = getRootView().findViewById(android.R.id.message);
if (messageView instanceof TextView) {
TextView messageTextView = (TextView) messageView;
if (TextUtils.isEmpty(getDia... | java | private void adaptMessageTextSize() {
if (getRootView() != null) {
View messageView = getRootView().findViewById(android.R.id.message);
if (messageView instanceof TextView) {
TextView messageTextView = (TextView) messageView;
if (TextUtils.isEmpty(getDia... | [
"private",
"void",
"adaptMessageTextSize",
"(",
")",
"{",
"if",
"(",
"getRootView",
"(",
")",
"!=",
"null",
")",
"{",
"View",
"messageView",
"=",
"getRootView",
"(",
")",
".",
"findViewById",
"(",
"android",
".",
"R",
".",
"id",
".",
"message",
")",
";... | Adapts the text size of the dialog's message, depending on whether a title is shown. | [
"Adapts",
"the",
"text",
"size",
"of",
"the",
"dialog",
"s",
"message",
"depending",
"on",
"whether",
"a",
"title",
"is",
"shown",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/ProgressDialogDecorator.java#L173-L191 |
103,271 | michael-rapp/AndroidMaterialDialog | library/src/main/java/de/mrapp/android/dialog/adapter/ViewPagerAdapter.java | ViewPagerAdapter.addItem | public final void addItem(@Nullable final CharSequence title,
@NonNull final Class<? extends Fragment> fragmentClass,
@Nullable final Bundle arguments) {
Condition.INSTANCE.ensureNotNull(fragmentClass, "The fragment class may not be null");
ite... | java | public final void addItem(@Nullable final CharSequence title,
@NonNull final Class<? extends Fragment> fragmentClass,
@Nullable final Bundle arguments) {
Condition.INSTANCE.ensureNotNull(fragmentClass, "The fragment class may not be null");
ite... | [
"public",
"final",
"void",
"addItem",
"(",
"@",
"Nullable",
"final",
"CharSequence",
"title",
",",
"@",
"NonNull",
"final",
"Class",
"<",
"?",
"extends",
"Fragment",
">",
"fragmentClass",
",",
"@",
"Nullable",
"final",
"Bundle",
"arguments",
")",
"{",
"Condi... | Adds a new fragment to the adapter.
@param title
The title of the fragment, which should be added, as an instance of the type {@link
CharSequence} or null, if no title should be set
@param fragmentClass
The class of the fragment, which should be added, as an instance of the class {@link
Class}. The class may not be nu... | [
"Adds",
"a",
"new",
"fragment",
"to",
"the",
"adapter",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/adapter/ViewPagerAdapter.java#L84-L90 |
103,272 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeAlertDialog | private void initializeAlertDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
alertDialog = builder.create();
} | java | private void initializeAlertDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
alertDialog = builder.create();
} | [
"private",
"void",
"initializeAlertDialog",
"(",
")",
"{",
"MaterialDialog",
".",
"Builder",
"builder",
"=",
"new",
"MaterialDialog",
".",
"Builder",
"(",
"getActivity",
"(",
")",
")",
";",
"configureHeaderDialogBuilder",
"(",
"builder",
")",
";",
"configureButton... | Initializes the alert dialog. | [
"Initializes",
"the",
"alert",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L166-L171 |
103,273 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeListDialog | private void initializeListDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setItems(R.array.list_items, createSingleChoiceListener());
listDialog = buil... | java | private void initializeListDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setItems(R.array.list_items, createSingleChoiceListener());
listDialog = buil... | [
"private",
"void",
"initializeListDialog",
"(",
")",
"{",
"MaterialDialog",
".",
"Builder",
"builder",
"=",
"new",
"MaterialDialog",
".",
"Builder",
"(",
"getActivity",
"(",
")",
")",
";",
"configureHeaderDialogBuilder",
"(",
"builder",
")",
";",
"configureButtonB... | Initializes the list dialog. | [
"Initializes",
"the",
"list",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L176-L182 |
103,274 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeSingleChoiceListDialog | private void initializeSingleChoiceListDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setSingleChoiceItems(R.array.list_items, 0, createSingleChoiceListener())... | java | private void initializeSingleChoiceListDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setSingleChoiceItems(R.array.list_items, 0, createSingleChoiceListener())... | [
"private",
"void",
"initializeSingleChoiceListDialog",
"(",
")",
"{",
"MaterialDialog",
".",
"Builder",
"builder",
"=",
"new",
"MaterialDialog",
".",
"Builder",
"(",
"getActivity",
"(",
")",
")",
";",
"configureHeaderDialogBuilder",
"(",
"builder",
")",
";",
"conf... | Initializes the single choice list dialog. | [
"Initializes",
"the",
"single",
"choice",
"list",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L187-L193 |
103,275 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeMultipleChoiceListDialog | private void initializeMultipleChoiceListDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setMultiChoiceItems(R.array.list_items, new boolean[]{true, false, fals... | java | private void initializeMultipleChoiceListDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setMultiChoiceItems(R.array.list_items, new boolean[]{true, false, fals... | [
"private",
"void",
"initializeMultipleChoiceListDialog",
"(",
")",
"{",
"MaterialDialog",
".",
"Builder",
"builder",
"=",
"new",
"MaterialDialog",
".",
"Builder",
"(",
"getActivity",
"(",
")",
")",
";",
"configureHeaderDialogBuilder",
"(",
"builder",
")",
";",
"co... | Initializes the multiple choice list dialog. | [
"Initializes",
"the",
"multiple",
"choice",
"list",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L198-L205 |
103,276 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeCustomDialog | private void initializeCustomDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setView(R.layout.custom_dialog_content);
builder.setCustomTitle(R.layout.cu... | java | private void initializeCustomDialog() {
MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
builder.setView(R.layout.custom_dialog_content);
builder.setCustomTitle(R.layout.cu... | [
"private",
"void",
"initializeCustomDialog",
"(",
")",
"{",
"MaterialDialog",
".",
"Builder",
"builder",
"=",
"new",
"MaterialDialog",
".",
"Builder",
"(",
"getActivity",
"(",
")",
")",
";",
"configureHeaderDialogBuilder",
"(",
"builder",
")",
";",
"configureButto... | Initializes the custom dialog. | [
"Initializes",
"the",
"custom",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L210-L220 |
103,277 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeProgressDialog | private void initializeProgressDialog() {
ProgressDialog.Builder builder = new ProgressDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
progressDialog = builder.create();
} | java | private void initializeProgressDialog() {
ProgressDialog.Builder builder = new ProgressDialog.Builder(getActivity());
configureHeaderDialogBuilder(builder);
configureButtonBarDialogBuilder(builder);
progressDialog = builder.create();
} | [
"private",
"void",
"initializeProgressDialog",
"(",
")",
"{",
"ProgressDialog",
".",
"Builder",
"builder",
"=",
"new",
"ProgressDialog",
".",
"Builder",
"(",
"getActivity",
"(",
")",
")",
";",
"configureHeaderDialogBuilder",
"(",
"builder",
")",
";",
"configureBut... | Initializes the progress dialog. | [
"Initializes",
"the",
"progress",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L225-L230 |
103,278 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeEditTextDialog | private void initializeEditTextDialog() {
EditTextDialog.Builder builder =
new EditTextDialog.Builder(getActivity()).setHint(R.string.edit_text_dialog_hint)
.setText(getContext().getString(R.string.edit_text_dialog_text))
.addValidator(Validators.n... | java | private void initializeEditTextDialog() {
EditTextDialog.Builder builder =
new EditTextDialog.Builder(getActivity()).setHint(R.string.edit_text_dialog_hint)
.setText(getContext().getString(R.string.edit_text_dialog_text))
.addValidator(Validators.n... | [
"private",
"void",
"initializeEditTextDialog",
"(",
")",
"{",
"EditTextDialog",
".",
"Builder",
"builder",
"=",
"new",
"EditTextDialog",
".",
"Builder",
"(",
"getActivity",
"(",
")",
")",
".",
"setHint",
"(",
"R",
".",
"string",
".",
"edit_text_dialog_hint",
"... | Initializes the edit text dialog. | [
"Initializes",
"the",
"edit",
"text",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L235-L243 |
103,279 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeThemePreference | private void initializeThemePreference() {
Preference themePreference = findPreference(getString(R.string.theme_preference_key));
themePreference.setOnPreferenceChangeListener(createThemeChangeListener());
} | java | private void initializeThemePreference() {
Preference themePreference = findPreference(getString(R.string.theme_preference_key));
themePreference.setOnPreferenceChangeListener(createThemeChangeListener());
} | [
"private",
"void",
"initializeThemePreference",
"(",
")",
"{",
"Preference",
"themePreference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"theme_preference_key",
")",
")",
";",
"themePreference",
".",
"setOnPreferenceChangeListener",
"(",
... | Initializes the preference, which allows to change the app's theme. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"change",
"the",
"app",
"s",
"theme",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L248-L251 |
103,280 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeFullscreenPreference | private void initializeFullscreenPreference() {
Preference fullscreenPreference =
findPreference(getString(R.string.fullscreen_preference_key));
fullscreenPreference.setOnPreferenceChangeListener(createThemeChangeListener());
} | java | private void initializeFullscreenPreference() {
Preference fullscreenPreference =
findPreference(getString(R.string.fullscreen_preference_key));
fullscreenPreference.setOnPreferenceChangeListener(createThemeChangeListener());
} | [
"private",
"void",
"initializeFullscreenPreference",
"(",
")",
"{",
"Preference",
"fullscreenPreference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"fullscreen_preference_key",
")",
")",
";",
"fullscreenPreference",
".",
"setOnPreferenceChan... | Initializes the preference, which allows to specfify, whether dialogs should be shown
fullscreen, or not. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"specfify",
"whether",
"dialogs",
"should",
"be",
"shown",
"fullscreen",
"or",
"not",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L257-L261 |
103,281 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowAlertDialogPreference | private void initializeShowAlertDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_alert_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick... | java | private void initializeShowAlertDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_alert_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick... | [
"private",
"void",
"initializeShowAlertDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_alert_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPreferenceClickListene... | Initializes the preference, which allows to show the alert dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"the",
"alert",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L285-L301 |
103,282 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowListDialogPreference | private void initializeShowListDialogPreference() {
Preference preference = findPreference(getString(R.string.show_list_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(final Preference ... | java | private void initializeShowListDialogPreference() {
Preference preference = findPreference(getString(R.string.show_list_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(final Preference ... | [
"private",
"void",
"initializeShowListDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_list_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPreferenceClickListener"... | Initializes the preference, which allows to show the list dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"the",
"list",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L306-L321 |
103,283 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowSingleChoiceListDialogPreference | private void initializeShowSingleChoiceListDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_single_choice_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolea... | java | private void initializeShowSingleChoiceListDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_single_choice_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolea... | [
"private",
"void",
"initializeShowSingleChoiceListDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_single_choice_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPre... | Initializes the preference, which allows to show the single choice list dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"the",
"single",
"choice",
"list",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L326-L345 |
103,284 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowMultipleChoiceListDialogPreference | private void initializeShowMultipleChoiceListDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_multi_choice_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boole... | java | private void initializeShowMultipleChoiceListDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_multi_choice_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boole... | [
"private",
"void",
"initializeShowMultipleChoiceListDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_multi_choice_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPr... | Initializes the preference, which allows to show the multiple choice list dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"the",
"multiple",
"choice",
"list",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L350-L369 |
103,285 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowCustomDialogPreference | private void initializeShowCustomDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_custom_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceCli... | java | private void initializeShowCustomDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_custom_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceCli... | [
"private",
"void",
"initializeShowCustomDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_custom_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPreferenceClickListe... | Initializes the preference, which allows to show the custom dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"the",
"custom",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L374-L390 |
103,286 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowProgressDialogPreference | private void initializeShowProgressDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_progress_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenc... | java | private void initializeShowProgressDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_progress_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenc... | [
"private",
"void",
"initializeShowProgressDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_progress_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPreferenceClickL... | Initializes the preference, which allows to show the progress dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"the",
"progress",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L395-L411 |
103,287 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowEditTextDialogPreference | private void initializeShowEditTextDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_edit_text_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferen... | java | private void initializeShowEditTextDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_edit_text_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferen... | [
"private",
"void",
"initializeShowEditTextDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_edit_text_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPreferenceClick... | Initializes the preference, which allows to show the edit text dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"the",
"edit",
"text",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L416-L432 |
103,288 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.createRectangularRevealAnimation | private DialogAnimation createRectangularRevealAnimation(@NonNull final Preference preference) {
if (shouldUseAnimations()) {
RecyclerView recyclerView = getListView();
View view = recyclerView.getChildAt(preference.getOrder() + 1);
int[] viewLocation = new int[2];
... | java | private DialogAnimation createRectangularRevealAnimation(@NonNull final Preference preference) {
if (shouldUseAnimations()) {
RecyclerView recyclerView = getListView();
View view = recyclerView.getChildAt(preference.getOrder() + 1);
int[] viewLocation = new int[2];
... | [
"private",
"DialogAnimation",
"createRectangularRevealAnimation",
"(",
"@",
"NonNull",
"final",
"Preference",
"preference",
")",
"{",
"if",
"(",
"shouldUseAnimations",
"(",
")",
")",
"{",
"RecyclerView",
"recyclerView",
"=",
"getListView",
"(",
")",
";",
"View",
"... | Creates and returns the rectangular reveal animation, which should be used to show or hide
dialogs.
@param preference
The preference, which is used to show the dialog, as an instance of the class {@link
Preference}
@return The animation, which has been created, as an instance of the type {@link
DialogAnimation} | [
"Creates",
"and",
"returns",
"the",
"rectangular",
"reveal",
"animation",
"which",
"should",
"be",
"used",
"to",
"show",
"or",
"hide",
"dialogs",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L444-L465 |
103,289 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.createCircleRevealAnimation | private DialogAnimation createCircleRevealAnimation(@NonNull final View view) {
int[] location = new int[2];
view.getLocationOnScreen(location);
int margin = getResources().getDimensionPixelSize(R.dimen.floating_action_button_margin);
int width = view.getWidth();
int height = vie... | java | private DialogAnimation createCircleRevealAnimation(@NonNull final View view) {
int[] location = new int[2];
view.getLocationOnScreen(location);
int margin = getResources().getDimensionPixelSize(R.dimen.floating_action_button_margin);
int width = view.getWidth();
int height = vie... | [
"private",
"DialogAnimation",
"createCircleRevealAnimation",
"(",
"@",
"NonNull",
"final",
"View",
"view",
")",
"{",
"int",
"[",
"]",
"location",
"=",
"new",
"int",
"[",
"2",
"]",
";",
"view",
".",
"getLocationOnScreen",
"(",
"location",
")",
";",
"int",
"... | Creates and returns the circle reveal animation, which should be used to show or hide
dialogs.
@param view
The view, which is used to show the dialog, as an instance of the class {@link View}
@return The animation, which has been created, as an instance of the type {@link
DialogAnimation} | [
"Creates",
"and",
"returns",
"the",
"circle",
"reveal",
"animation",
"which",
"should",
"be",
"used",
"to",
"show",
"or",
"hide",
"dialogs",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L476-L487 |
103,290 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.createSingleChoiceListener | private OnClickListener createSingleChoiceListener() {
return new OnClickListener() {
@Override
public void onClick(final DialogInterface dialog, final int position) {
String text = getString(R.string.single_choice_listener_text);
showToast(String.format(... | java | private OnClickListener createSingleChoiceListener() {
return new OnClickListener() {
@Override
public void onClick(final DialogInterface dialog, final int position) {
String text = getString(R.string.single_choice_listener_text);
showToast(String.format(... | [
"private",
"OnClickListener",
"createSingleChoiceListener",
"(",
")",
"{",
"return",
"new",
"OnClickListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onClick",
"(",
"final",
"DialogInterface",
"dialog",
",",
"final",
"int",
"position",
")",
"{",
"Str... | Creates and returns a listener, which allows to show a toast, which indicates when a single
choice list item of a dialog has been selected or unselected.
@return The listener, which has been created, as an instance of the type {@link
OnClickListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"show",
"a",
"toast",
"which",
"indicates",
"when",
"a",
"single",
"choice",
"list",
"item",
"of",
"a",
"dialog",
"has",
"been",
"selected",
"or",
"unselected",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L496-L506 |
103,291 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.createMultiChoiceListener | private OnMultiChoiceClickListener createMultiChoiceListener() {
return new OnMultiChoiceClickListener() {
@Override
public void onClick(final DialogInterface dialog, final int position,
final boolean isChecked) {
String text = getString(R... | java | private OnMultiChoiceClickListener createMultiChoiceListener() {
return new OnMultiChoiceClickListener() {
@Override
public void onClick(final DialogInterface dialog, final int position,
final boolean isChecked) {
String text = getString(R... | [
"private",
"OnMultiChoiceClickListener",
"createMultiChoiceListener",
"(",
")",
"{",
"return",
"new",
"OnMultiChoiceClickListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onClick",
"(",
"final",
"DialogInterface",
"dialog",
",",
"final",
"int",
"position",... | Creates and returns a listener, which allows to show a toast, which indicates when a multi
choice list item of a dialog has been selected or unselected.
@return The listener, which has been created, as an instance of the type {@link
OnClickListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"show",
"a",
"toast",
"which",
"indicates",
"when",
"a",
"multi",
"choice",
"list",
"item",
"of",
"a",
"dialog",
"has",
"been",
"selected",
"or",
"unselected",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L515-L535 |
103,292 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.initializeShowWizardDialogPreference | private void initializeShowWizardDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_wizard_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceCli... | java | private void initializeShowWizardDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_wizard_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceCli... | [
"private",
"void",
"initializeShowWizardDialogPreference",
"(",
")",
"{",
"Preference",
"preference",
"=",
"findPreference",
"(",
"getString",
"(",
"R",
".",
"string",
".",
"show_wizard_dialog_preference_key",
")",
")",
";",
"preference",
".",
"setOnPreferenceClickListe... | Initializes the preference, which allows to show a wizard dialog. | [
"Initializes",
"the",
"preference",
"which",
"allows",
"to",
"show",
"a",
"wizard",
"dialog",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L540-L573 |
103,293 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.createWizardDialogPageChangeListener | private OnPageChangeListener createWizardDialogPageChangeListener(
@NonNull final WizardDialog wizardDialog) {
return new OnPageChangeListener() {
@Override
public void onPageScrolled(final int position, final float positionOffset,
fina... | java | private OnPageChangeListener createWizardDialogPageChangeListener(
@NonNull final WizardDialog wizardDialog) {
return new OnPageChangeListener() {
@Override
public void onPageScrolled(final int position, final float positionOffset,
fina... | [
"private",
"OnPageChangeListener",
"createWizardDialogPageChangeListener",
"(",
"@",
"NonNull",
"final",
"WizardDialog",
"wizardDialog",
")",
"{",
"return",
"new",
"OnPageChangeListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onPageScrolled",
"(",
"final",
... | Creates and returns a listener, which allows to change the background color of the wizard
dialog, when its view pager is scrolled.
@param wizardDialog
The wizard dialog as an instance of the class {@link WizardDialog}. The wizard dialog
may not be null
@return The listener, which has been created, as an instance of th... | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"change",
"the",
"background",
"color",
"of",
"the",
"wizard",
"dialog",
"when",
"its",
"view",
"pager",
"is",
"scrolled",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L585-L623 |
103,294 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.createHeaderAnimationListener | private AnimationListener createHeaderAnimationListener(
@NonNull final WizardDialog wizardDialog) {
return new AnimationListener() {
@Override
public void onAnimationStart() {
}
@Override
public void onAnimationEnd() {
i... | java | private AnimationListener createHeaderAnimationListener(
@NonNull final WizardDialog wizardDialog) {
return new AnimationListener() {
@Override
public void onAnimationStart() {
}
@Override
public void onAnimationEnd() {
i... | [
"private",
"AnimationListener",
"createHeaderAnimationListener",
"(",
"@",
"NonNull",
"final",
"WizardDialog",
"wizardDialog",
")",
"{",
"return",
"new",
"AnimationListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onAnimationStart",
"(",
")",
"{",
"}",
... | Creates and returns a listener, which allows to reset a wizard dialog's header background to
default, when its animation is finished.
@param wizardDialog
The wizard dialog as an instance of the class {@link WizardDialog}
@return The listener, which has been created, as an instance of the type {@link
AnimationListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"reset",
"a",
"wizard",
"dialog",
"s",
"header",
"background",
"to",
"default",
"when",
"its",
"animation",
"is",
"finished",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L634-L653 |
103,295 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.addFragment | private void addFragment(@NonNull final WizardDialog.Builder builder, final int index) {
Bundle arguments = new Bundle();
arguments.putInt(DialogFragment.INDEX_EXTRA, index);
CharSequence title = shouldHeaderBeShown() ? null :
String.format(getString(R.string.dialog_tab_text), in... | java | private void addFragment(@NonNull final WizardDialog.Builder builder, final int index) {
Bundle arguments = new Bundle();
arguments.putInt(DialogFragment.INDEX_EXTRA, index);
CharSequence title = shouldHeaderBeShown() ? null :
String.format(getString(R.string.dialog_tab_text), in... | [
"private",
"void",
"addFragment",
"(",
"@",
"NonNull",
"final",
"WizardDialog",
".",
"Builder",
"builder",
",",
"final",
"int",
"index",
")",
"{",
"Bundle",
"arguments",
"=",
"new",
"Bundle",
"(",
")",
";",
"arguments",
".",
"putInt",
"(",
"DialogFragment",
... | Adds a new fragment to a builder, which allows to create wizard dialogs.
@param builder
The builder, the fragment should be added to, as an instance of the class {@link
WizardDialog.Builder}
@param index
The index of the fragment, which should be added | [
"Adds",
"a",
"new",
"fragment",
"to",
"a",
"builder",
"which",
"allows",
"to",
"create",
"wizard",
"dialogs",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L664-L670 |
103,296 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.showToast | private void showToast(@Nullable final String text) {
if (toast != null) {
toast.cancel();
}
toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);
toast.show();
} | java | private void showToast(@Nullable final String text) {
if (toast != null) {
toast.cancel();
}
toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);
toast.show();
} | [
"private",
"void",
"showToast",
"(",
"@",
"Nullable",
"final",
"String",
"text",
")",
"{",
"if",
"(",
"toast",
"!=",
"null",
")",
"{",
"toast",
".",
"cancel",
"(",
")",
";",
"}",
"toast",
"=",
"Toast",
".",
"makeText",
"(",
"getActivity",
"(",
")",
... | Shows a specific toast and cancels a previous one, if existing.
@param text
The text of the toast, which should be shown, as a {@link String}, or null, if no
toast should be shown | [
"Shows",
"a",
"specific",
"toast",
"and",
"cancels",
"a",
"previous",
"one",
"if",
"existing",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L679-L686 |
103,297 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.configureHeaderDialogBuilder | private void configureHeaderDialogBuilder(@NonNull final AbstractHeaderDialogBuilder builder) {
builder.setFullscreen(shouldUseFullscreen());
if (shouldTitleBeShown()) {
builder.setTitle(getDialogTitle());
}
if (shouldMessageBeShown()) {
builder.setMessage(getDi... | java | private void configureHeaderDialogBuilder(@NonNull final AbstractHeaderDialogBuilder builder) {
builder.setFullscreen(shouldUseFullscreen());
if (shouldTitleBeShown()) {
builder.setTitle(getDialogTitle());
}
if (shouldMessageBeShown()) {
builder.setMessage(getDi... | [
"private",
"void",
"configureHeaderDialogBuilder",
"(",
"@",
"NonNull",
"final",
"AbstractHeaderDialogBuilder",
"builder",
")",
"{",
"builder",
".",
"setFullscreen",
"(",
"shouldUseFullscreen",
"(",
")",
")",
";",
"if",
"(",
"shouldTitleBeShown",
"(",
")",
")",
"{... | Configures a builder, which allows to create header dialogs, depending on the app's
settings.
@param builder
The builder, which should be configured, as an instance of the class {@link
AbstractHeaderDialogBuilder} | [
"Configures",
"a",
"builder",
"which",
"allows",
"to",
"create",
"header",
"dialogs",
"depending",
"on",
"the",
"app",
"s",
"settings",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L696-L718 |
103,298 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.configureButtonBarDialogBuilder | private void configureButtonBarDialogBuilder(
@NonNull final AbstractButtonBarDialogBuilder builder) {
if (shouldNegativeButtonBeShown()) {
builder.setNegativeButton(getNegativeButtonText(), createNegativeButtonListener());
}
if (shouldNeutralButtonBeShown()) {
... | java | private void configureButtonBarDialogBuilder(
@NonNull final AbstractButtonBarDialogBuilder builder) {
if (shouldNegativeButtonBeShown()) {
builder.setNegativeButton(getNegativeButtonText(), createNegativeButtonListener());
}
if (shouldNeutralButtonBeShown()) {
... | [
"private",
"void",
"configureButtonBarDialogBuilder",
"(",
"@",
"NonNull",
"final",
"AbstractButtonBarDialogBuilder",
"builder",
")",
"{",
"if",
"(",
"shouldNegativeButtonBeShown",
"(",
")",
")",
"{",
"builder",
".",
"setNegativeButton",
"(",
"getNegativeButtonText",
"(... | Configures a builder, which allows to create button bar dialogs, depending on the app's
settings.
@param builder
The builder, which should be configured as an instance of the class {@link
AbstractButtonBarDialogBuilder} | [
"Configures",
"a",
"builder",
"which",
"allows",
"to",
"create",
"button",
"bar",
"dialogs",
"depending",
"on",
"the",
"app",
"s",
"settings",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L728-L744 |
103,299 | michael-rapp/AndroidMaterialDialog | example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java | PreferenceFragment.createNegativeButtonListener | private OnClickListener createNegativeButtonListener() {
return new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(getActivity(), R.string.negative_button_toast, Toast.LENGTH_SHORT)
.show();
... | java | private OnClickListener createNegativeButtonListener() {
return new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(getActivity(), R.string.negative_button_toast, Toast.LENGTH_SHORT)
.show();
... | [
"private",
"OnClickListener",
"createNegativeButtonListener",
"(",
")",
"{",
"return",
"new",
"OnClickListener",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"onClick",
"(",
"DialogInterface",
"dialog",
",",
"int",
"which",
")",
"{",
"Toast",
".",
"makeText... | Creates and returns a listener, which allows to show a toast, when the negative button of a
dialog has been clicked.
@return The listener, which has been created, as an instance of the class {@link
OnClickListener} | [
"Creates",
"and",
"returns",
"a",
"listener",
"which",
"allows",
"to",
"show",
"a",
"toast",
"when",
"the",
"negative",
"button",
"of",
"a",
"dialog",
"has",
"been",
"clicked",
"."
] | 8990eed72ee5f5a9720836ee708f71ac0d43053b | https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L753-L763 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.