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,300
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.createNeutralButtonListener
private OnClickListener createNeutralButtonListener() { return new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(getActivity(), R.string.neutral_button_toast, Toast.LENGTH_SHORT) .show(); ...
java
private OnClickListener createNeutralButtonListener() { return new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(getActivity(), R.string.neutral_button_toast, Toast.LENGTH_SHORT) .show(); ...
[ "private", "OnClickListener", "createNeutralButtonListener", "(", ")", "{", "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 neutral 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", "neutral", "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#L772-L782
103,301
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.createPositiveButtonListener
private OnClickListener createPositiveButtonListener() { return new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(getActivity(), R.string.positive_button_toast, Toast.LENGTH_SHORT) .show(); ...
java
private OnClickListener createPositiveButtonListener() { return new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(getActivity(), R.string.positive_button_toast, Toast.LENGTH_SHORT) .show(); ...
[ "private", "OnClickListener", "createPositiveButtonListener", "(", ")", "{", "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 positive 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", "positive", "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#L791-L801
103,302
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldTitleBeShown
private boolean shouldTitleBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_title_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.sh...
java
private boolean shouldTitleBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_title_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.sh...
[ "private", "boolean", "shouldTitleBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", "...
Returns, whether the title of the example dialog should be shown, or not. @return True, if the title should be shown, false otherwise
[ "Returns", "whether", "the", "title", "of", "the", "example", "dialog", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L808-L815
103,303
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.getDialogTitle
private String getDialogTitle() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.dialog_title_preference_key); String defaultValue = getString(R.string.dialog_title_preference_default_value); ...
java
private String getDialogTitle() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.dialog_title_preference_key); String defaultValue = getString(R.string.dialog_title_preference_default_value); ...
[ "private", "String", "getDialogTitle", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ".", ...
Returns the title of the example dialog. @return The title of the example dialog
[ "Returns", "the", "title", "of", "the", "example", "dialog", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L822-L828
103,304
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldIconBeShown
private boolean shouldIconBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_icon_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.show...
java
private boolean shouldIconBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_icon_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.show...
[ "private", "boolean", "shouldIconBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", "....
Returns, whether the icon of the example dialog should be shown, or not. @return True, if the icon should be shown, false otherwise
[ "Returns", "whether", "the", "icon", "of", "the", "example", "dialog", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L835-L842
103,305
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldMessageBeShown
private boolean shouldMessageBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_message_preference_key); boolean defaultValue = getResources().getBoolean(R.boo...
java
private boolean shouldMessageBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_message_preference_key); boolean defaultValue = getResources().getBoolean(R.boo...
[ "private", "boolean", "shouldMessageBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ...
Returns, whether the message of the example dialog should be shown, or not. @return True, if the message should be shown, false otherwise
[ "Returns", "whether", "the", "message", "of", "the", "example", "dialog", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L849-L856
103,306
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.getDialogMessage
private String getDialogMessage() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.dialog_message_preference_key); String defaultValue = getString(R.string.dialog_message_preference_default_value...
java
private String getDialogMessage() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.dialog_message_preference_key); String defaultValue = getString(R.string.dialog_message_preference_default_value...
[ "private", "String", "getDialogMessage", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ".",...
Returns the message of the example dialog. @return The message of the example dialog
[ "Returns", "the", "message", "of", "the", "example", "dialog", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L863-L869
103,307
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldNegativeButtonBeShown
private boolean shouldNegativeButtonBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_negative_button_preference_key); boolean defaultValue = getResources().getBoole...
java
private boolean shouldNegativeButtonBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_negative_button_preference_key); boolean defaultValue = getResources().getBoole...
[ "private", "boolean", "shouldNegativeButtonBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "str...
Returns, whether the negative button of the example dialog should be shown, or not. @return True, if the negative button should be shown, false otherwise
[ "Returns", "whether", "the", "negative", "button", "of", "the", "example", "dialog", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L876-L883
103,308
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.getNegativeButtonText
private String getNegativeButtonText() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.negative_button_text_preference_key); String defaultValue = getString(R.string.negative_button_text_prefere...
java
private String getNegativeButtonText() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.negative_button_text_preference_key); String defaultValue = getString(R.string.negative_button_text_prefere...
[ "private", "String", "getNegativeButtonText", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ...
Returns the text of the example dialog's negative button. @return The text of the negative button
[ "Returns", "the", "text", "of", "the", "example", "dialog", "s", "negative", "button", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L890-L896
103,309
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldNeutralButtonBeShown
private boolean shouldNeutralButtonBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_neutral_button_preference_key); boolean defaultValue = getResources().getBoolean...
java
private boolean shouldNeutralButtonBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_neutral_button_preference_key); boolean defaultValue = getResources().getBoolean...
[ "private", "boolean", "shouldNeutralButtonBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "stri...
Returns, whether the neutral button of the example dialog should be shown, or not. @return True, if the neutral button should be shown, false otherwise
[ "Returns", "whether", "the", "neutral", "button", "of", "the", "example", "dialog", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L903-L910
103,310
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.getNeutralButtonText
private String getNeutralButtonText() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.neutral_button_text_preference_key); String defaultValue = getString(R.string.neutral_button_text_preference...
java
private String getNeutralButtonText() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.neutral_button_text_preference_key); String defaultValue = getString(R.string.neutral_button_text_preference...
[ "private", "String", "getNeutralButtonText", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ...
Returns the text of the example dialog's neutral button. @return The text of the neutral button
[ "Returns", "the", "text", "of", "the", "example", "dialog", "s", "neutral", "button", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L917-L923
103,311
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldPositiveButtonBeShown
private boolean shouldPositiveButtonBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_positive_button_preference_key); boolean defaultValue = getResources().getBoole...
java
private boolean shouldPositiveButtonBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_positive_button_preference_key); boolean defaultValue = getResources().getBoole...
[ "private", "boolean", "shouldPositiveButtonBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "str...
Returns, whether the positive button of the example dialog should be shown, or not. @return True, if the positive button should be shown, false otherwise
[ "Returns", "whether", "the", "positive", "button", "of", "the", "example", "dialog", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L930-L937
103,312
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.getPositiveButtonText
private String getPositiveButtonText() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.positive_button_text_preference_key); String defaultValue = getString(R.string.positive_button_text_prefere...
java
private String getPositiveButtonText() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.positive_button_text_preference_key); String defaultValue = getString(R.string.positive_button_text_prefere...
[ "private", "String", "getPositiveButtonText", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ...
Returns the text of the example dialog's positive button. @return The text of the positive button
[ "Returns", "the", "text", "of", "the", "example", "dialog", "s", "positive", "button", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L944-L950
103,313
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldStackButtons
private boolean shouldStackButtons() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.stack_buttons_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.stack_...
java
private boolean shouldStackButtons() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.stack_buttons_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.stack_...
[ "private", "boolean", "shouldStackButtons", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", "...
Returns, whether the buttons of the example dialog should be stacked, or not. @return True, if the buttons should be stacked, false otherwise
[ "Returns", "whether", "the", "buttons", "of", "the", "example", "dialog", "should", "be", "stacked", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L957-L964
103,314
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldButtonBarDividerBeShown
private boolean shouldButtonBarDividerBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_button_bar_divider_preference_key); boolean defaultValue = getResources().get...
java
private boolean shouldButtonBarDividerBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_button_bar_divider_preference_key); boolean defaultValue = getResources().get...
[ "private", "boolean", "shouldButtonBarDividerBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "s...
Returns, whether the divider, which is located above the dialog's buttons, should be shown, or not. @return True, if the divider should be shown, false otherwise
[ "Returns", "whether", "the", "divider", "which", "is", "located", "above", "the", "dialog", "s", "buttons", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L972-L979
103,315
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldHeaderBeShown
private boolean shouldHeaderBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_header_preference_key); boolean defaultValue = getResources().getBoolean(R.bool....
java
private boolean shouldHeaderBeShown() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.show_dialog_header_preference_key); boolean defaultValue = getResources().getBoolean(R.bool....
[ "private", "boolean", "shouldHeaderBeShown", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ...
Returns, whether the header of the example dialog should be shown, or not. @return True, if the header should be shown, false otherwise
[ "Returns", "whether", "the", "header", "of", "the", "example", "dialog", "should", "be", "shown", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L986-L993
103,316
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldUseAnimations
private boolean shouldUseAnimations() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.animation_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.animation_preference_defa...
java
private boolean shouldUseAnimations() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.animation_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.animation_preference_defa...
[ "private", "boolean", "shouldUseAnimations", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ...
Returns, whether animations should be used to show or hide dialogs, or not. @return True, if animations should be used, false otherwise
[ "Returns", "whether", "animations", "should", "be", "used", "to", "show", "or", "hide", "dialogs", "or", "not", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java#L1000-L1006
103,317
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.shouldUseFullscreen
private boolean shouldUseFullscreen() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.fullscreen_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.fullscre...
java
private boolean shouldUseFullscreen() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); String key = getString(R.string.fullscreen_preference_key); boolean defaultValue = getResources().getBoolean(R.bool.fullscre...
[ "private", "boolean", "shouldUseFullscreen", "(", ")", "{", "SharedPreferences", "sharedPreferences", "=", "PreferenceManager", ".", "getDefaultSharedPreferences", "(", "getActivity", "(", ")", ")", ";", "String", "key", "=", "getString", "(", "R", ".", "string", ...
Returns, whether dialogs should be shown fullscreen, or not. @return True, if dialogs should be shown fullscreen, false otherwise
[ "Returns", "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#L1013-L1020
103,318
michael-rapp/AndroidMaterialDialog
example/src/main/java/de/mrapp/android/dialog/example/PreferenceFragment.java
PreferenceFragment.showAlertDialog
public final void showAlertDialog(@NonNull final View view) { initializeAlertDialog(); alertDialog.setShowAnimation(createCircleRevealAnimation(view)); alertDialog.setDismissAnimation(createCircleRevealAnimation(view)); alertDialog.setCancelAnimation(createCircleRevealAnimation(view)); ...
java
public final void showAlertDialog(@NonNull final View view) { initializeAlertDialog(); alertDialog.setShowAnimation(createCircleRevealAnimation(view)); alertDialog.setDismissAnimation(createCircleRevealAnimation(view)); alertDialog.setCancelAnimation(createCircleRevealAnimation(view)); ...
[ "public", "final", "void", "showAlertDialog", "(", "@", "NonNull", "final", "View", "view", ")", "{", "initializeAlertDialog", "(", ")", ";", "alertDialog", ".", "setShowAnimation", "(", "createCircleRevealAnimation", "(", "view", ")", ")", ";", "alertDialog", "...
Shows an alert dialog using a circle reveal animation. @param view The view, which is used to show the dialog, as an instance of the class {@link View}
[ "Shows", "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/PreferenceFragment.java#L1028-L1034
103,319
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/view/Divider.java
Divider.createVisibilityAnimationListener
@NonNull private AnimatorListener createVisibilityAnimationListener(final boolean show) { return new AnimatorListenerAdapter() { @Override public void onAnimationStart(final Animator animation) { super.onAnimationStart(animation); if (show) { ...
java
@NonNull private AnimatorListener createVisibilityAnimationListener(final boolean show) { return new AnimatorListenerAdapter() { @Override public void onAnimationStart(final Animator animation) { super.onAnimationStart(animation); if (show) { ...
[ "@", "NonNull", "private", "AnimatorListener", "createVisibilityAnimationListener", "(", "final", "boolean", "show", ")", "{", "return", "new", "AnimatorListenerAdapter", "(", ")", "{", "@", "Override", "public", "void", "onAnimationStart", "(", "final", "Animator", ...
Creates and returns a listener, which allows to observe the progress of an animation, which is used to show or hide the divider. @param show True, if the divider is shown by the animation, false otherwise @return The listener, which has been created, as an instance of the type {@link AnimatorListener}. The listener ma...
[ "Creates", "and", "returns", "a", "listener", "which", "allows", "to", "observe", "the", "progress", "of", "an", "animation", "which", "is", "used", "to", "show", "or", "hide", "the", "divider", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/view/Divider.java#L59-L82
103,320
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/view/Divider.java
Divider.setVisibility
public final void setVisibility(final int visibility, final boolean animate) { boolean visible = visibility == View.VISIBLE; Boolean tag = (Boolean) getTag(); setTag(visible); if (animate) { if (tag == null || tag != visible) { if (getAnimation() != null) { ...
java
public final void setVisibility(final int visibility, final boolean animate) { boolean visible = visibility == View.VISIBLE; Boolean tag = (Boolean) getTag(); setTag(visible); if (animate) { if (tag == null || tag != visible) { if (getAnimation() != null) { ...
[ "public", "final", "void", "setVisibility", "(", "final", "int", "visibility", ",", "final", "boolean", "animate", ")", "{", "boolean", "visible", "=", "visibility", "==", "View", ".", "VISIBLE", ";", "Boolean", "tag", "=", "(", "Boolean", ")", "getTag", "...
Sets the visibility of the divider. @param visibility The visibility, which should be set, as an {@link Integer} value. Must be one of {@link #VISIBLE}, {@link #INVISIBLE} or {@link #GONE}. @param animate True, if the visibility should be changed in an animated manner, false otherwise
[ "Sets", "the", "visibility", "of", "the", "divider", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/view/Divider.java#L180-L199
103,321
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialogFragment.java
AbstractMaterialDialogFragment.applyDecorators
private Map<ViewType, View> applyDecorators(@NonNull final Window window, @NonNull final DialogRootView rootView, @NonNull final View view, @NonNull final FragmentManager fragm...
java
private Map<ViewType, View> applyDecorators(@NonNull final Window window, @NonNull final DialogRootView rootView, @NonNull final View view, @NonNull final FragmentManager fragm...
[ "private", "Map", "<", "ViewType", ",", "View", ">", "applyDecorators", "(", "@", "NonNull", "final", "Window", "window", ",", "@", "NonNull", "final", "DialogRootView", "rootView", ",", "@", "NonNull", "final", "View", "view", ",", "@", "NonNull", "final", ...
Applies 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 ...
[ "Applies", "all", "registered", "decorators", "to", "the", "dialog", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialogFragment.java#L158-L179
103,322
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialogFragment.java
AbstractMaterialDialogFragment.detachDecorators
private void detachDecorators(@NonNull final DialogRootView rootView) { for (AbstractDecorator<?, ?> decorator : decorators) { decorator.detach(); decorator.removeAreaListener(rootView); } }
java
private void detachDecorators(@NonNull final DialogRootView rootView) { for (AbstractDecorator<?, ?> decorator : decorators) { decorator.detach(); decorator.removeAreaListener(rootView); } }
[ "private", "void", "detachDecorators", "(", "@", "NonNull", "final", "DialogRootView", "rootView", ")", "{", "for", "(", "AbstractDecorator", "<", "?", ",", "?", ">", "decorator", ":", "decorators", ")", "{", "decorator", ".", "detach", "(", ")", ";", "dec...
Detaches all registered decorators from the dialog. @param rootView The root view of the dialog as an instance of the class {@link DialogRootView}. The root view may not be null
[ "Detaches", "all", "registered", "decorators", "from", "the", "dialog", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/AbstractMaterialDialogFragment.java#L188-L193
103,323
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java
AbstractHeaderDialogBuilder.obtainShowHeader
private void obtainShowHeader(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogShowHeader}); showHeader(typedArray.getBoolean(0, false)); }
java
private void obtainShowHeader(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogShowHeader}); showHeader(typedArray.getBoolean(0, false)); }
[ "private", "void", "obtainShowHeader", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new", "int"...
Obtains, whether the dialog's header should be shown, or not, from a specific theme. @param themeResourceId The resource id of the theme, the visibility should be obtained from, as an {@link Integer} value
[ "Obtains", "whether", "the", "dialog", "s", "header", "should", "be", "shown", "or", "not", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java#L57-L61
103,324
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java
AbstractHeaderDialogBuilder.obtainHeaderHeight
private void obtainHeaderHeight(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderHeight}); int defaultHeight = getContext().getResources().getDimensionPixelS...
java
private void obtainHeaderHeight(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderHeight}); int defaultHeight = getContext().getResources().getDimensionPixelS...
[ "private", "void", "obtainHeaderHeight", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new", "in...
Obtains the height of the dialog's header 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", "of", "the", "dialog", "s", "header", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java#L70-L76
103,325
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java
AbstractHeaderDialogBuilder.obtainHeaderBackground
private void obtainHeaderBackground(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderBackground}); int resourceId = typedArray.getResourceId(0, 0); if (resourceId !...
java
private void obtainHeaderBackground(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderBackground}); int resourceId = typedArray.getResourceId(0, 0); if (resourceId !...
[ "private", "void", "obtainHeaderBackground", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new", ...
Obtains the background of the dialog's header 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", "of", "the", "dialog", "s", "header", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java#L85-L96
103,326
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java
AbstractHeaderDialogBuilder.obtainHeaderIcon
private void obtainHeaderIcon(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderIcon}); int resourceId = typedArray.getResourceId(0, 0); if (resourceId != 0) { ...
java
private void obtainHeaderIcon(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderIcon}); int resourceId = typedArray.getResourceId(0, 0); if (resourceId != 0) { ...
[ "private", "void", "obtainHeaderIcon", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new", "int"...
Obtains the icon of the dialog's header from a specific theme. @param themeResourceId The resource id of the theme, the icon should be obtained from, as an {@link Integer} value
[ "Obtains", "the", "icon", "of", "the", "dialog", "s", "header", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java#L105-L113
103,327
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java
AbstractHeaderDialogBuilder.obtainHeaderIconTintList
private void obtainHeaderIconTintList(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderIconTint}); setHeaderIconTintList(typedArray.getColorStateList(0)); }
java
private void obtainHeaderIconTintList(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderIconTint}); setHeaderIconTintList(typedArray.getColorStateList(0)); }
[ "private", "void", "obtainHeaderIconTintList", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new",...
Obtains the color state list, which is used to tint the header 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", "header", "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/AbstractHeaderDialogBuilder.java#L123-L127
103,328
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java
AbstractHeaderDialogBuilder.obtainHeaderDividerColor
private void obtainHeaderDividerColor(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderDividerColor}); int defaultColor = ContextCompat.getColor(getContext(), R.color.header...
java
private void obtainHeaderDividerColor(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeaderDividerColor}); int defaultColor = ContextCompat.getColor(getContext(), R.color.header...
[ "private", "void", "obtainHeaderDividerColor", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new",...
Obtains the color of the divider of the dialog's header 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", "the", "divider", "of", "the", "dialog", "s", "header", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java#L136-L141
103,329
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java
AbstractHeaderDialogBuilder.obtainShowHeaderDivider
private void obtainShowHeaderDivider(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogShowHeaderDivider}); showHeaderDivider(typedArray.getBoolean(0, true)); }
java
private void obtainShowHeaderDivider(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogShowHeaderDivider}); showHeaderDivider(typedArray.getBoolean(0, true)); }
[ "private", "void", "obtainShowHeaderDivider", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new", ...
Obtains, whether the divider of the dialog's header should be shown, or not, from a specific theme. @param themeResourceId The resource id of the theme, the visibility should be obtained from, as an {@link Integer} value
[ "Obtains", "whether", "the", "divider", "of", "the", "dialog", "s", "header", "should", "be", "shown", "or", "not", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractHeaderDialogBuilder.java#L151-L155
103,330
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/ScrollableArea.java
ScrollableArea.create
public static ScrollableArea create(@Nullable final Area top, @Nullable final Area bottom) { return new ScrollableArea(top, bottom); }
java
public static ScrollableArea create(@Nullable final Area top, @Nullable final Area bottom) { return new ScrollableArea(top, bottom); }
[ "public", "static", "ScrollableArea", "create", "(", "@", "Nullable", "final", "Area", "top", ",", "@", "Nullable", "final", "Area", "bottom", ")", "{", "return", "new", "ScrollableArea", "(", "top", ",", "bottom", ")", ";", "}" ]
Creates and returns a new scrollable area. @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 Area}. If the top-most area is null, the bottom...
[ "Creates", "and", "returns", "a", "new", "scrollable", "area", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/ScrollableArea.java#L196-L198
103,331
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/ScrollableArea.java
ScrollableArea.isScrollable
public final boolean isScrollable(@NonNull final Area area) { return topScrollableArea != null && topScrollableArea.getIndex() <= area.getIndex() && bottomScrollableArea.getIndex() >= area.getIndex(); }
java
public final boolean isScrollable(@NonNull final Area area) { return topScrollableArea != null && topScrollableArea.getIndex() <= area.getIndex() && bottomScrollableArea.getIndex() >= area.getIndex(); }
[ "public", "final", "boolean", "isScrollable", "(", "@", "NonNull", "final", "Area", "area", ")", "{", "return", "topScrollableArea", "!=", "null", "&&", "topScrollableArea", ".", "getIndex", "(", ")", "<=", "area", ".", "getIndex", "(", ")", "&&", "bottomScr...
Returns, whether a specific area is scrollable. @param area The area, which should be checked, as a value of the enum {@link Area}. The area may not be null @return True, if the given area is scrollable, false otherwise
[ "Returns", "whether", "a", "specific", "area", "is", "scrollable", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/ScrollableArea.java#L208-L211
103,332
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.reInflateTabLayout
private void reInflateTabLayout() { View rootView = getRootView(); if (rootView != null) { View headerContentContainer = rootView.findViewById(R.id.header_content_container); View contentContainer = rootView.findViewById(R.id.content_container); if (headerContentCon...
java
private void reInflateTabLayout() { View rootView = getRootView(); if (rootView != null) { View headerContentContainer = rootView.findViewById(R.id.header_content_container); View contentContainer = rootView.findViewById(R.id.content_container); if (headerContentCon...
[ "private", "void", "reInflateTabLayout", "(", ")", "{", "View", "rootView", "=", "getRootView", "(", ")", ";", "if", "(", "rootView", "!=", "null", ")", "{", "View", "headerContentContainer", "=", "rootView", ".", "findViewById", "(", "R", ".", "id", ".", ...
Re-inflates the tab layout, which indicates the currently shown fragment, if the dialog has already been created.
[ "Re", "-", "inflates", "the", "tab", "layout", "which", "indicates", "the", "currently", "shown", "fragment", "if", "the", "dialog", "has", "already", "been", "created", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L327-L338
103,333
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.inflateTabLayout
private void inflateTabLayout(@NonNull final View headerView, @NonNull final View contentView) { LayoutInflater layoutInflater = LayoutInflater.from(getContext()); ViewGroup headerContentContainer = headerView.findViewById(R.id.header_content_container); ViewGroup contentContainer = contentView....
java
private void inflateTabLayout(@NonNull final View headerView, @NonNull final View contentView) { LayoutInflater layoutInflater = LayoutInflater.from(getContext()); ViewGroup headerContentContainer = headerView.findViewById(R.id.header_content_container); ViewGroup contentContainer = contentView....
[ "private", "void", "inflateTabLayout", "(", "@", "NonNull", "final", "View", "headerView", ",", "@", "NonNull", "final", "View", "contentView", ")", "{", "LayoutInflater", "layoutInflater", "=", "LayoutInflater", ".", "from", "(", "getContext", "(", ")", ")", ...
Inflates the tab layout, which indicates the currently shown fragment. @param headerView The view, which contains the dialog's header, as an instance of the class {@link View}. The view may not be null @param contentView The view, which contains the dialog's content, as an instance of the class {@link View}. The view ...
[ "Inflates", "the", "tab", "layout", "which", "indicates", "the", "currently", "shown", "fragment", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L350-L379
103,334
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptTabLayoutEnableState
private void adaptTabLayoutEnableState() { if (tabLayout != null) { LinearLayout tabStrip = ((LinearLayout) tabLayout.getChildAt(0)); tabStrip.setEnabled(tabLayoutEnabled); for (int i = 0; i < tabStrip.getChildCount(); i++) { tabStrip.getChildAt(i).setEnabled...
java
private void adaptTabLayoutEnableState() { if (tabLayout != null) { LinearLayout tabStrip = ((LinearLayout) tabLayout.getChildAt(0)); tabStrip.setEnabled(tabLayoutEnabled); for (int i = 0; i < tabStrip.getChildCount(); i++) { tabStrip.getChildAt(i).setEnabled...
[ "private", "void", "adaptTabLayoutEnableState", "(", ")", "{", "if", "(", "tabLayout", "!=", "null", ")", "{", "LinearLayout", "tabStrip", "=", "(", "(", "LinearLayout", ")", "tabLayout", ".", "getChildAt", "(", "0", ")", ")", ";", "tabStrip", ".", "setEna...
Adapts the enable state of the tab layout, which indicates the currently shown fragment.
[ "Adapts", "the", "enable", "state", "of", "the", "tab", "layout", "which", "indicates", "the", "currently", "shown", "fragment", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L422-L431
103,335
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptTabLayoutVisibility
private void adaptTabLayoutVisibility() { if (tabLayout != null) { tabLayout.setVisibility(tabLayoutShown ? View.VISIBLE : View.GONE); } }
java
private void adaptTabLayoutVisibility() { if (tabLayout != null) { tabLayout.setVisibility(tabLayoutShown ? View.VISIBLE : View.GONE); } }
[ "private", "void", "adaptTabLayoutVisibility", "(", ")", "{", "if", "(", "tabLayout", "!=", "null", ")", "{", "tabLayout", ".", "setVisibility", "(", "tabLayoutShown", "?", "View", ".", "VISIBLE", ":", "View", ".", "GONE", ")", ";", "}", "}" ]
Adapts the visibility of the tab layout, which indicates the currently shown fragment.
[ "Adapts", "the", "visibility", "of", "the", "tab", "layout", "which", "indicates", "the", "currently", "shown", "fragment", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L436-L440
103,336
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptBackButton
private void adaptBackButton() { if (backButton != null) { backButton.setText(backButtonText.toString().toUpperCase(Locale.getDefault())); backButton.setOnClickListener(createBackButtonListener()); } }
java
private void adaptBackButton() { if (backButton != null) { backButton.setText(backButtonText.toString().toUpperCase(Locale.getDefault())); backButton.setOnClickListener(createBackButtonListener()); } }
[ "private", "void", "adaptBackButton", "(", ")", "{", "if", "(", "backButton", "!=", "null", ")", "{", "backButton", ".", "setText", "(", "backButtonText", ".", "toString", "(", ")", ".", "toUpperCase", "(", "Locale", ".", "getDefault", "(", ")", ")", ")"...
Adapts the dialog's back button.
[ "Adapts", "the", "dialog", "s", "back", "button", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L498-L503
103,337
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.createBackButtonListener
private OnClickListener createBackButtonListener() { return new OnClickListener() { @Override public void onClick(final View v) { int selectedIndex = viewPager.getCurrentItem(); if (notifyOnPrevious(selectedIndex)) { viewPager.setCurr...
java
private OnClickListener createBackButtonListener() { return new OnClickListener() { @Override public void onClick(final View v) { int selectedIndex = viewPager.getCurrentItem(); if (notifyOnPrevious(selectedIndex)) { viewPager.setCurr...
[ "private", "OnClickListener", "createBackButtonListener", "(", ")", "{", "return", "new", "OnClickListener", "(", ")", "{", "@", "Override", "public", "void", "onClick", "(", "final", "View", "v", ")", "{", "int", "selectedIndex", "=", "viewPager", ".", "getCu...
Creates and returns a listener, which allows to show the previous fragment, when the corresponding 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", "the", "previous", "fragment", "when", "the", "corresponding", "button", "is", "clicked", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L512-L525
103,338
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptNextButton
private void adaptNextButton() { if (nextButton != null) { nextButton.setText(nextButtonText.toString().toUpperCase(Locale.getDefault())); nextButton.setOnClickListener(createNextButtonListener()); } }
java
private void adaptNextButton() { if (nextButton != null) { nextButton.setText(nextButtonText.toString().toUpperCase(Locale.getDefault())); nextButton.setOnClickListener(createNextButtonListener()); } }
[ "private", "void", "adaptNextButton", "(", ")", "{", "if", "(", "nextButton", "!=", "null", ")", "{", "nextButton", ".", "setText", "(", "nextButtonText", ".", "toString", "(", ")", ".", "toUpperCase", "(", "Locale", ".", "getDefault", "(", ")", ")", ")"...
Adapts the dialog's next button.
[ "Adapts", "the", "dialog", "s", "next", "button", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L530-L535
103,339
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.createNextButtonListener
private OnClickListener createNextButtonListener() { return new OnClickListener() { @Override public void onClick(final View v) { int selectedIndex = viewPager.getCurrentItem(); if (notifyOnNext(selectedIndex)) { viewPager.setCurrentI...
java
private OnClickListener createNextButtonListener() { return new OnClickListener() { @Override public void onClick(final View v) { int selectedIndex = viewPager.getCurrentItem(); if (notifyOnNext(selectedIndex)) { viewPager.setCurrentI...
[ "private", "OnClickListener", "createNextButtonListener", "(", ")", "{", "return", "new", "OnClickListener", "(", ")", "{", "@", "Override", "public", "void", "onClick", "(", "final", "View", "v", ")", "{", "int", "selectedIndex", "=", "viewPager", ".", "getCu...
Creates and returns a listener, which allows to show the next fragment, when the corresponding 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", "the", "next", "fragment", "when", "the", "corresponding", "button", "is", "clicked", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L544-L557
103,340
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptFinishButton
private void adaptFinishButton() { if (finishButton != null) { finishButton.setText(finishButtonText.toString().toUpperCase(Locale.getDefault())); finishButton.setOnClickListener(createFinishButtonListener()); } }
java
private void adaptFinishButton() { if (finishButton != null) { finishButton.setText(finishButtonText.toString().toUpperCase(Locale.getDefault())); finishButton.setOnClickListener(createFinishButtonListener()); } }
[ "private", "void", "adaptFinishButton", "(", ")", "{", "if", "(", "finishButton", "!=", "null", ")", "{", "finishButton", ".", "setText", "(", "finishButtonText", ".", "toString", "(", ")", ".", "toUpperCase", "(", "Locale", ".", "getDefault", "(", ")", ")...
Adapts the dialog's finish button.
[ "Adapts", "the", "dialog", "s", "finish", "button", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L562-L567
103,341
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.createFinishButtonListener
private OnClickListener createFinishButtonListener() { return new OnClickListener() { @Override public void onClick(final View v) { int selectedIndex = viewPager.getCurrentItem(); if (notifyOnFinish(selectedIndex)) { getDialog().dismi...
java
private OnClickListener createFinishButtonListener() { return new OnClickListener() { @Override public void onClick(final View v) { int selectedIndex = viewPager.getCurrentItem(); if (notifyOnFinish(selectedIndex)) { getDialog().dismi...
[ "private", "OnClickListener", "createFinishButtonListener", "(", ")", "{", "return", "new", "OnClickListener", "(", ")", "{", "@", "Override", "public", "void", "onClick", "(", "final", "View", "v", ")", "{", "int", "selectedIndex", "=", "viewPager", ".", "get...
Creates and returns a listener, which allows to close the dialog, when the corresponding 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", "close", "the", "dialog", "when", "the", "corresponding", "button", "is", "clicked", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L576-L589
103,342
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptButtonBarVisibility
private void adaptButtonBarVisibility() { if (buttonBarContainer != null) { buttonBarContainer.setVisibility(buttonBarShown ? View.VISIBLE : View.GONE); } }
java
private void adaptButtonBarVisibility() { if (buttonBarContainer != null) { buttonBarContainer.setVisibility(buttonBarShown ? View.VISIBLE : View.GONE); } }
[ "private", "void", "adaptButtonBarVisibility", "(", ")", "{", "if", "(", "buttonBarContainer", "!=", "null", ")", "{", "buttonBarContainer", ".", "setVisibility", "(", "buttonBarShown", "?", "View", ".", "VISIBLE", ":", "View", ".", "GONE", ")", ";", "}", "}...
Adapts the visibility of the dialog's buttons.
[ "Adapts", "the", "visibility", "of", "the", "dialog", "s", "buttons", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L594-L598
103,343
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptButtonBarDividerMargin
private void adaptButtonBarDividerMargin() { if (buttonBarDivider != null) { LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) buttonBarDivider.getLayoutParams(); layoutParams.leftMargin = buttonBarDividerMargin; layoutParams.rightMargin...
java
private void adaptButtonBarDividerMargin() { if (buttonBarDivider != null) { LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) buttonBarDivider.getLayoutParams(); layoutParams.leftMargin = buttonBarDividerMargin; layoutParams.rightMargin...
[ "private", "void", "adaptButtonBarDividerMargin", "(", ")", "{", "if", "(", "buttonBarDivider", "!=", "null", ")", "{", "LinearLayout", ".", "LayoutParams", "layoutParams", "=", "(", "LinearLayout", ".", "LayoutParams", ")", "buttonBarDivider", ".", "getLayoutParams...
Adapts the left and right margin of the divider, which is shown above the dialog's buttons.
[ "Adapts", "the", "left", "and", "right", "margin", "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/WizardDialogDecorator.java#L621-L629
103,344
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.adaptButtonVisibility
private void adaptButtonVisibility() { if (viewPager != null && viewPagerAdapter != null && backButton != null && nextButton != null && finishButton != null) { int selectedIndex = viewPager.getCurrentItem(); backButton.setVisibility(selectedIndex > 0 ? View.VISIBLE : View...
java
private void adaptButtonVisibility() { if (viewPager != null && viewPagerAdapter != null && backButton != null && nextButton != null && finishButton != null) { int selectedIndex = viewPager.getCurrentItem(); backButton.setVisibility(selectedIndex > 0 ? View.VISIBLE : View...
[ "private", "void", "adaptButtonVisibility", "(", ")", "{", "if", "(", "viewPager", "!=", "null", "&&", "viewPagerAdapter", "!=", "null", "&&", "backButton", "!=", "null", "&&", "nextButton", "!=", "null", "&&", "finishButton", "!=", "null", ")", "{", "int", ...
Adapts the visibility of the dialog's buttons, depending on the currently shown fragment.
[ "Adapts", "the", "visibility", "of", "the", "dialog", "s", "buttons", "depending", "on", "the", "currently", "shown", "fragment", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L634-L644
103,345
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.notifyOnNext
private boolean notifyOnNext(final int index) { boolean result = true; for (WizardListener listener : wizardListeners) { result &= listener.onNext(index, viewPagerAdapter.getItem(index)); } return result; }
java
private boolean notifyOnNext(final int index) { boolean result = true; for (WizardListener listener : wizardListeners) { result &= listener.onNext(index, viewPagerAdapter.getItem(index)); } return result; }
[ "private", "boolean", "notifyOnNext", "(", "final", "int", "index", ")", "{", "boolean", "result", "=", "true", ";", "for", "(", "WizardListener", "listener", ":", "wizardListeners", ")", "{", "result", "&=", "listener", ".", "onNext", "(", "index", ",", "...
Notifies all listeners, when the next fragment is about to be shown. @param index The index of the fragment, which is about to be shown, as an {@link Integer} value @return True, if the fragment is allowed to be shown, false otherwise
[ "Notifies", "all", "listeners", "when", "the", "next", "fragment", "is", "about", "to", "be", "shown", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L653-L661
103,346
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.notifyOnPrevious
private boolean notifyOnPrevious(final int index) { boolean result = true; for (WizardListener listener : wizardListeners) { result &= listener.onPrevious(index, viewPagerAdapter.getItem(index)); } return result; }
java
private boolean notifyOnPrevious(final int index) { boolean result = true; for (WizardListener listener : wizardListeners) { result &= listener.onPrevious(index, viewPagerAdapter.getItem(index)); } return result; }
[ "private", "boolean", "notifyOnPrevious", "(", "final", "int", "index", ")", "{", "boolean", "result", "=", "true", ";", "for", "(", "WizardListener", "listener", ":", "wizardListeners", ")", "{", "result", "&=", "listener", ".", "onPrevious", "(", "index", ...
Notifies all listeners, when the previous fragment is about to be shown. @param index The index of the fragment, which is about to be shown, as an {@link Integer} value @return True, if the fragment is allowed to be shown, false otherwise
[ "Notifies", "all", "listeners", "when", "the", "previous", "fragment", "is", "about", "to", "be", "shown", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L670-L678
103,347
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java
WizardDialogDecorator.notifyOnFinish
private boolean notifyOnFinish(final int index) { boolean result = true; for (WizardListener listener : wizardListeners) { result &= listener.onFinish(index, viewPagerAdapter.getItem(index)); } return result; }
java
private boolean notifyOnFinish(final int index) { boolean result = true; for (WizardListener listener : wizardListeners) { result &= listener.onFinish(index, viewPagerAdapter.getItem(index)); } return result; }
[ "private", "boolean", "notifyOnFinish", "(", "final", "int", "index", ")", "{", "boolean", "result", "=", "true", ";", "for", "(", "WizardListener", "listener", ":", "wizardListeners", ")", "{", "result", "&=", "listener", ".", "onFinish", "(", "index", ",",...
Notifies all listeners, when the last fragment is about to be finished. @param index The index of the fragment, which is about to be finished, as an {@link Integer} value @return True, if the last fragment is allowed to be finished, false otherwise
[ "Notifies", "all", "listeners", "when", "the", "last", "fragment", "is", "about", "to", "be", "finished", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/decorator/WizardDialogDecorator.java#L688-L696
103,348
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractButtonBarDialogBuilder.java
AbstractButtonBarDialogBuilder.obtainButtonTextColor
private void obtainButtonTextColor(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogButtonTextColor}); ColorStateList colorStateList = typedArray.getColorStateList(0); if...
java
private void obtainButtonTextColor(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogButtonTextColor}); ColorStateList colorStateList = typedArray.getColorStateList(0); if...
[ "private", "void", "obtainButtonTextColor", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new", ...
Obtains the button text color 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", "button", "text", "color", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractButtonBarDialogBuilder.java#L55-L63
103,349
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractButtonBarDialogBuilder.java
AbstractButtonBarDialogBuilder.obtainShowButtonBarDivider
private void obtainShowButtonBarDivider(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogShowButtonBarDivider}); showButtonBarDivider(typedArray.getBoolean(0, false)); }
java
private void obtainShowButtonBarDivider(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogShowButtonBarDivider}); showButtonBarDivider(typedArray.getBoolean(0, false)); }
[ "private", "void", "obtainShowButtonBarDivider", "(", "@", "StyleRes", "final", "int", "themeResourceId", ")", "{", "TypedArray", "typedArray", "=", "getContext", "(", ")", ".", "getTheme", "(", ")", ".", "obtainStyledAttributes", "(", "themeResourceId", ",", "new...
Obtains, whether the divider, which is located above the dialog's buttons, should be shown, or not, from a specific theme. @param themeResourceId The resource id of the theme, the visibility should be obtained from, as an {@link Integer} value
[ "Obtains", "whether", "the", "divider", "which", "is", "located", "above", "the", "dialog", "s", "buttons", "should", "be", "shown", "or", "not", "from", "a", "specific", "theme", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractButtonBarDialogBuilder.java#L73-L77
103,350
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractValidateableDialogBuilder.java
AbstractValidateableDialogBuilder.addDialogValidator
public final BuilderType addDialogValidator(@NonNull final DialogValidator validator) { Condition.INSTANCE.ensureNotNull(validator, "The validator may not be null"); getProduct().addDialogValidator(validator); return self(); }
java
public final BuilderType addDialogValidator(@NonNull final DialogValidator validator) { Condition.INSTANCE.ensureNotNull(validator, "The validator may not be null"); getProduct().addDialogValidator(validator); return self(); }
[ "public", "final", "BuilderType", "addDialogValidator", "(", "@", "NonNull", "final", "DialogValidator", "validator", ")", "{", "Condition", ".", "INSTANCE", ".", "ensureNotNull", "(", "validator", ",", "\"The validator may not be null\"", ")", ";", "getProduct", "(",...
Adds a new validator, which should be executed when the positive button of the dialog, which is created by the builder, is clicked. @param validator The validator, which should be added, as an instance of the type {@link DialogValidator}. The validator may not be null @return The builder, the method has been called up...
[ "Adds", "a", "new", "validator", "which", "should", "be", "executed", "when", "the", "positive", "button", "of", "the", "dialog", "which", "is", "created", "by", "the", "builder", "is", "clicked", "." ]
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractValidateableDialogBuilder.java#L81-L85
103,351
michael-rapp/AndroidMaterialDialog
library/src/main/java/de/mrapp/android/dialog/builder/AbstractValidateableDialogBuilder.java
AbstractValidateableDialogBuilder.addAllDialogValidators
public final BuilderType addAllDialogValidators( @NonNull final Collection<DialogValidator> validators) { Condition.INSTANCE.ensureNotNull(validators, "The collection may not be null"); getProduct().addAllDialogValidators(validators); return self(); }
java
public final BuilderType addAllDialogValidators( @NonNull final Collection<DialogValidator> validators) { Condition.INSTANCE.ensureNotNull(validators, "The collection may not be null"); getProduct().addAllDialogValidators(validators); return self(); }
[ "public", "final", "BuilderType", "addAllDialogValidators", "(", "@", "NonNull", "final", "Collection", "<", "DialogValidator", ">", "validators", ")", "{", "Condition", ".", "INSTANCE", ".", "ensureNotNull", "(", "validators", ",", "\"The collection may not be null\"",...
Adds all validators, which are contained by a specific collection and should be executed when the positive button of the dialog, which is created by the builder, is clicked. @param validators A collection, which contains all validators, which should be added, as an instance of the type {@link Collection} or an empty c...
[ "Adds", "all", "validators", "which", "are", "contained", "by", "a", "specific", "collection", "and", "should", "be", "executed", "when", "the", "positive", "button", "of", "the", "dialog", "which", "is", "created", "by", "the", "builder", "is", "clicked", "...
8990eed72ee5f5a9720836ee708f71ac0d43053b
https://github.com/michael-rapp/AndroidMaterialDialog/blob/8990eed72ee5f5a9720836ee708f71ac0d43053b/library/src/main/java/de/mrapp/android/dialog/builder/AbstractValidateableDialogBuilder.java#L97-L102
103,352
kejunxia/AndroidMvc
library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/MvcDialog.java
MvcDialog.show
public static void show(FragmentManager fragmentManager, Class<? extends MvcDialog> dialogClass) { FragmentTransaction ft = fragmentManager.beginTransaction(); MvcDialog dialogFragment = (MvcDialog) fragmentManager.findFragmentByTag(dialogClass.getName()); if (dialogFragment == null) { ...
java
public static void show(FragmentManager fragmentManager, Class<? extends MvcDialog> dialogClass) { FragmentTransaction ft = fragmentManager.beginTransaction(); MvcDialog dialogFragment = (MvcDialog) fragmentManager.findFragmentByTag(dialogClass.getName()); if (dialogFragment == null) { ...
[ "public", "static", "void", "show", "(", "FragmentManager", "fragmentManager", ",", "Class", "<", "?", "extends", "MvcDialog", ">", "dialogClass", ")", "{", "FragmentTransaction", "ft", "=", "fragmentManager", ".", "beginTransaction", "(", ")", ";", "MvcDialog", ...
Show dialog. @param fragmentManager The fragment manager. Usually it's the child fragment manager of the fragment on which the dialog will show @param dialogClass The class type of the dialog extending {@link MvcDialog}
[ "Show", "dialog", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/MvcDialog.java#L57-L70
103,353
kejunxia/AndroidMvc
library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/MvcService.java
MvcService.onCreate
@Override public void onCreate() { super.onCreate(); graphMonitor = new Graph.Monitor() { @Override public void onInject(Object target) { if (controller != null && target == MvcService.this) { controller.view = MvcService.this; ...
java
@Override public void onCreate() { super.onCreate(); graphMonitor = new Graph.Monitor() { @Override public void onInject(Object target) { if (controller != null && target == MvcService.this) { controller.view = MvcService.this; ...
[ "@", "Override", "public", "void", "onCreate", "(", ")", "{", "super", ".", "onCreate", "(", ")", ";", "graphMonitor", "=", "new", "Graph", ".", "Monitor", "(", ")", "{", "@", "Override", "public", "void", "onInject", "(", "Object", "target", ")", "{",...
Callback of creating a service
[ "Callback", "of", "creating", "a", "service" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/MvcService.java#L47-L83
103,354
kejunxia/AndroidMvc
library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/MvcService.java
MvcService.onDestroy
@Override public void onDestroy() { super.onDestroy(); eventRegister.unregisterEventBuses(); if (getControllerClass() != null) { try { Mvc.graph().dereference(controller, getControllerClass(), null); } catch (ProviderMissingException e) { ...
java
@Override public void onDestroy() { super.onDestroy(); eventRegister.unregisterEventBuses(); if (getControllerClass() != null) { try { Mvc.graph().dereference(controller, getControllerClass(), null); } catch (ProviderMissingException e) { ...
[ "@", "Override", "public", "void", "onDestroy", "(", ")", "{", "super", ".", "onDestroy", "(", ")", ";", "eventRegister", ".", "unregisterEventBuses", "(", ")", ";", "if", "(", "getControllerClass", "(", ")", "!=", "null", ")", "{", "try", "{", "Mvc", ...
Callback of destroying a service
[ "Callback", "of", "destroying", "a", "service" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/MvcService.java#L88-L106
103,355
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Component.java
Component.unregister
public Component unregister(Provider provider) throws ProviderMissingException { return unregister(provider.type(), provider.getQualifier()); }
java
public Component unregister(Provider provider) throws ProviderMissingException { return unregister(provider.type(), provider.getQualifier()); }
[ "public", "Component", "unregister", "(", "Provider", "provider", ")", "throws", "ProviderMissingException", "{", "return", "unregister", "(", "provider", ".", "type", "(", ")", ",", "provider", ".", "getQualifier", "(", ")", ")", ";", "}" ]
Unregister provider. If there is an overridden type registered already, only unregister the overridden binding. The original one will be unregistered if the this method is called again against to the type and qualifier associated with the provider. @param provider The provider that has the type and qualifier to unregi...
[ "Unregister", "provider", ".", "If", "there", "is", "an", "overridden", "type", "registered", "already", "only", "unregister", "the", "overridden", "binding", ".", "The", "original", "one", "will", "be", "unregistered", "if", "the", "this", "method", "is", "ca...
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Component.java#L194-L196
103,356
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Component.java
Component.findProvider
protected <T> Provider<T> findProvider(Class<T> type, Annotation qualifier) throws ProviderMissingException { String key = PokeHelper.makeProviderKey(type, qualifier); Component targetComponent = getRootComponent().componentLocator.get(key); Provider provider = null; if (targetComponent...
java
protected <T> Provider<T> findProvider(Class<T> type, Annotation qualifier) throws ProviderMissingException { String key = PokeHelper.makeProviderKey(type, qualifier); Component targetComponent = getRootComponent().componentLocator.get(key); Provider provider = null; if (targetComponent...
[ "protected", "<", "T", ">", "Provider", "<", "T", ">", "findProvider", "(", "Class", "<", "T", ">", "type", ",", "Annotation", "qualifier", ")", "throws", "ProviderMissingException", "{", "String", "key", "=", "PokeHelper", ".", "makeProviderKey", "(", "type...
Find the provider specified by the type and qualifier. It will look through the providers registered to this component and all its children components'. @param type The type the provider is associated with @param qualifier The qualifier the provider is associated with @return The provider @throws ProviderMissingExcepti...
[ "Find", "the", "provider", "specified", "by", "the", "type", "and", "qualifier", ".", "It", "will", "look", "through", "the", "providers", "registered", "to", "this", "component", "and", "all", "its", "children", "components", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Component.java#L493-L507
103,357
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Component.java
Component.addNewKeyToComponent
private void addNewKeyToComponent(String key, Component component) throws ProviderConflictException { Component root = getRootComponent(); if (componentLocator.keySet().contains(key)) { String msg = String.format("Type %s has already been registered " + "in this componen...
java
private void addNewKeyToComponent(String key, Component component) throws ProviderConflictException { Component root = getRootComponent(); if (componentLocator.keySet().contains(key)) { String msg = String.format("Type %s has already been registered " + "in this componen...
[ "private", "void", "addNewKeyToComponent", "(", "String", "key", ",", "Component", "component", ")", "throws", "ProviderConflictException", "{", "Component", "root", "=", "getRootComponent", "(", ")", ";", "if", "(", "componentLocator", ".", "keySet", "(", ")", ...
Add key to the component locator of the component. This component and the the component tree root's component locator will both be updated. @param key The key to add @param component The component whose providers directly contain the key @throws ProviderConflictException The key has been added to the component or the c...
[ "Add", "key", "to", "the", "component", "locator", "of", "the", "component", ".", "This", "component", "and", "the", "the", "component", "tree", "root", "s", "component", "locator", "will", "both", "be", "updated", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Component.java#L535-L555
103,358
kejunxia/AndroidMvc
library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/MvcGraph.java
MvcGraph.release
public void release(final Object target) { if (uiThreadRunner.isOnUiThread()) { try { graph.release(target, Inject.class); } catch (ProviderMissingException e) { throw new MvcGraphException(e.getMessage(), e); } } else { uiT...
java
public void release(final Object target) { if (uiThreadRunner.isOnUiThread()) { try { graph.release(target, Inject.class); } catch (ProviderMissingException e) { throw new MvcGraphException(e.getMessage(), e); } } else { uiT...
[ "public", "void", "release", "(", "final", "Object", "target", ")", "{", "if", "(", "uiThreadRunner", ".", "isOnUiThread", "(", ")", ")", "{", "try", "{", "graph", ".", "release", "(", "target", ",", "Inject", ".", "class", ")", ";", "}", "catch", "(...
Release cached instances held by fields of target object. References of instances of the instances will be decremented. Once the reference count of a contract type reaches 0, it will be removed from the instances. @param target of which the object fields will be released.
[ "Release", "cached", "instances", "held", "by", "fields", "of", "target", "object", ".", "References", "of", "instances", "of", "the", "instances", "will", "be", "decremented", ".", "Once", "the", "reference", "count", "of", "a", "contract", "type", "reaches",...
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/MvcGraph.java#L379-L398
103,359
kejunxia/AndroidMvc
library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java
Navigator.go
private void go() { if (navigateEvent != null) { navigationManager.postEvent2C(navigateEvent); if (navigationManager.logger.isTraceEnabled()) { if (navigateEvent instanceof NavigationManager.Event.OnLocationForward) { NavigationManager.Event.OnLocatio...
java
private void go() { if (navigateEvent != null) { navigationManager.postEvent2C(navigateEvent); if (navigationManager.logger.isTraceEnabled()) { if (navigateEvent instanceof NavigationManager.Event.OnLocationForward) { NavigationManager.Event.OnLocatio...
[ "private", "void", "go", "(", ")", "{", "if", "(", "navigateEvent", "!=", "null", ")", "{", "navigationManager", ".", "postEvent2C", "(", "navigateEvent", ")", ";", "if", "(", "navigationManager", ".", "logger", ".", "isTraceEnabled", "(", ")", ")", "{", ...
Sends out the navigation event to execute the navigation
[ "Sends", "out", "the", "navigation", "event", "to", "execute", "the", "navigation" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java#L406-L434
103,360
kejunxia/AndroidMvc
library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java
Navigator.destroy
void destroy() { if (onSettled != null) { onSettled.run(); } if (pendingReleaseInstances != null) { for (PendingReleaseInstance i : pendingReleaseInstances) { try { Mvc.graph().dereference(i.instance, i.type, i.qualifier); ...
java
void destroy() { if (onSettled != null) { onSettled.run(); } if (pendingReleaseInstances != null) { for (PendingReleaseInstance i : pendingReleaseInstances) { try { Mvc.graph().dereference(i.instance, i.type, i.qualifier); ...
[ "void", "destroy", "(", ")", "{", "if", "(", "onSettled", "!=", "null", ")", "{", "onSettled", ".", "run", "(", ")", ";", "}", "if", "(", "pendingReleaseInstances", "!=", "null", ")", "{", "for", "(", "PendingReleaseInstance", "i", ":", "pendingReleaseIn...
Internal use. Don't do it in your app.
[ "Internal", "use", ".", "Don", "t", "do", "it", "in", "your", "app", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java#L439-L455
103,361
kejunxia/AndroidMvc
library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java
Navigator.checkAppExit
private void checkAppExit(Object sender) { NavLocation curLocation = navigationManager.getModel().getCurrentLocation(); if (curLocation == null) { navigationManager.postEvent2C(new NavigationManager.Event.OnAppExit(sender)); } }
java
private void checkAppExit(Object sender) { NavLocation curLocation = navigationManager.getModel().getCurrentLocation(); if (curLocation == null) { navigationManager.postEvent2C(new NavigationManager.Event.OnAppExit(sender)); } }
[ "private", "void", "checkAppExit", "(", "Object", "sender", ")", "{", "NavLocation", "curLocation", "=", "navigationManager", ".", "getModel", "(", ")", ".", "getCurrentLocation", "(", ")", ";", "if", "(", "curLocation", "==", "null", ")", "{", "navigationMana...
Check the app is exiting @param sender The sender
[ "Check", "the", "app", "is", "exiting" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java#L462-L467
103,362
kejunxia/AndroidMvc
library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java
Navigator.dumpHistory
private void dumpHistory() { if (navigationManager.dumpHistoryOnLocationChange) { navigationManager.logger.trace(""); navigationManager.logger.trace("Nav Controller: dump: begin ---------------------------------------------->"); NavLocation curLoc = navigationManager.getModel...
java
private void dumpHistory() { if (navigationManager.dumpHistoryOnLocationChange) { navigationManager.logger.trace(""); navigationManager.logger.trace("Nav Controller: dump: begin ---------------------------------------------->"); NavLocation curLoc = navigationManager.getModel...
[ "private", "void", "dumpHistory", "(", ")", "{", "if", "(", "navigationManager", ".", "dumpHistoryOnLocationChange", ")", "{", "navigationManager", ".", "logger", ".", "trace", "(", "\"\"", ")", ";", "navigationManager", ".", "logger", ".", "trace", "(", "\"Na...
Prints navigation history
[ "Prints", "navigation", "history" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc-core/src/main/java/com/shipdream/lib/android/mvc/Navigator.java#L472-L484
103,363
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Provider.java
Provider.retain
void retain(Object owner, Field field) { retain(); Map<String, Integer> fields = owners.get(owner); if (fields == null) { fields = new HashMap<>(); owners.put(owner, fields); } Integer count = fields.get(field.toGenericString()); if (count == null...
java
void retain(Object owner, Field field) { retain(); Map<String, Integer> fields = owners.get(owner); if (fields == null) { fields = new HashMap<>(); owners.put(owner, fields); } Integer count = fields.get(field.toGenericString()); if (count == null...
[ "void", "retain", "(", "Object", "owner", ",", "Field", "field", ")", "{", "retain", "(", ")", ";", "Map", "<", "String", ",", "Integer", ">", "fields", "=", "owners", ".", "get", "(", "owner", ")", ";", "if", "(", "fields", "==", "null", ")", "{...
Retain an instance injected as a field of an object @param owner The owner of the field @param field The field
[ "Retain", "an", "instance", "injected", "as", "a", "field", "of", "an", "object" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Provider.java#L188-L203
103,364
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Provider.java
Provider.release
void release(Object owner, Field field) { Map<String, Integer> fields = owners.get(owner); if(fields != null) { release(); Integer count = fields.get(field.toGenericString()); if(--count > 0) { fields.put(field.toGenericString(), count); }...
java
void release(Object owner, Field field) { Map<String, Integer> fields = owners.get(owner); if(fields != null) { release(); Integer count = fields.get(field.toGenericString()); if(--count > 0) { fields.put(field.toGenericString(), count); }...
[ "void", "release", "(", "Object", "owner", ",", "Field", "field", ")", "{", "Map", "<", "String", ",", "Integer", ">", "fields", "=", "owners", ".", "get", "(", "owner", ")", ";", "if", "(", "fields", "!=", "null", ")", "{", "release", "(", ")", ...
Release an instance injected as a field of an object @param owner The owner of the field @param field The field
[ "Release", "an", "instance", "injected", "as", "a", "field", "of", "an", "object" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Provider.java#L232-L248
103,365
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Provider.java
Provider.getCachedInstance
public T getCachedInstance() { ScopeCache cache = getScopeCache(); if (cache != null) { String key = PokeHelper.makeProviderKey(type, qualifier); Object instance = cache.findInstance(key); if(instance != null) { return (T) instance; } ...
java
public T getCachedInstance() { ScopeCache cache = getScopeCache(); if (cache != null) { String key = PokeHelper.makeProviderKey(type, qualifier); Object instance = cache.findInstance(key); if(instance != null) { return (T) instance; } ...
[ "public", "T", "getCachedInstance", "(", ")", "{", "ScopeCache", "cache", "=", "getScopeCache", "(", ")", ";", "if", "(", "cache", "!=", "null", ")", "{", "String", "key", "=", "PokeHelper", ".", "makeProviderKey", "(", "type", ",", "qualifier", ")", ";"...
Get the cached instance of this provider when there is a instances associated with this provider and the instance is cached already. Note that, the method will NOT increase reference count of this provider @return The cached instance of this provider if there is a instances associated with this provider and the instanc...
[ "Get", "the", "cached", "instance", "of", "this", "provider", "when", "there", "is", "a", "instances", "associated", "with", "this", "provider", "and", "the", "instance", "is", "cached", "already", ".", "Note", "that", "the", "method", "will", "NOT", "increa...
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Provider.java#L295-L306
103,366
kejunxia/AndroidMvc
library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/EventRegister.java
EventRegister.registerEventBuses
void registerEventBuses() { if (!eventsRegistered) { Mvc.graph().inject(this); eventBusV.register(androidComponent); eventsRegistered = true; logger.trace("+Event2V bus registered for view - '{}'.", androidComponent.getClass().getSimpleName());...
java
void registerEventBuses() { if (!eventsRegistered) { Mvc.graph().inject(this); eventBusV.register(androidComponent); eventsRegistered = true; logger.trace("+Event2V bus registered for view - '{}'.", androidComponent.getClass().getSimpleName());...
[ "void", "registerEventBuses", "(", ")", "{", "if", "(", "!", "eventsRegistered", ")", "{", "Mvc", ".", "graph", "(", ")", ".", "inject", "(", "this", ")", ";", "eventBusV", ".", "register", "(", "androidComponent", ")", ";", "eventsRegistered", "=", "tru...
Register event bus for views.
[ "Register", "event", "bus", "for", "views", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/EventRegister.java#L74-L85
103,367
kejunxia/AndroidMvc
library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/EventRegister.java
EventRegister.unregisterEventBuses
void unregisterEventBuses() { if (eventsRegistered) { eventBusV.unregister(androidComponent); eventsRegistered = false; logger.trace("-Event2V bus unregistered for view - '{}' and its controllers.", androidComponent.getClass().getSimpleName()); ...
java
void unregisterEventBuses() { if (eventsRegistered) { eventBusV.unregister(androidComponent); eventsRegistered = false; logger.trace("-Event2V bus unregistered for view - '{}' and its controllers.", androidComponent.getClass().getSimpleName()); ...
[ "void", "unregisterEventBuses", "(", ")", "{", "if", "(", "eventsRegistered", ")", "{", "eventBusV", ".", "unregister", "(", "androidComponent", ")", ";", "eventsRegistered", "=", "false", ";", "logger", ".", "trace", "(", "\"-Event2V bus unregistered for view - '{}...
Unregister event bus for views.
[ "Unregister", "event", "bus", "for", "views", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/android-mvc/src/main/java/com/shipdream/lib/android/mvc/EventRegister.java#L90-L101
103,368
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Graph.java
Graph.inject
public void inject(Object target, Class<? extends Annotation> injectAnnotation) throws ProvideException, ProviderMissingException, CircularDependenciesException { if (monitors != null) { int size = monitors.size(); for (int i = 0; i < size; i++) { monitors.get...
java
public void inject(Object target, Class<? extends Annotation> injectAnnotation) throws ProvideException, ProviderMissingException, CircularDependenciesException { if (monitors != null) { int size = monitors.size(); for (int i = 0; i < size; i++) { monitors.get...
[ "public", "void", "inject", "(", "Object", "target", ",", "Class", "<", "?", "extends", "Annotation", ">", "injectAnnotation", ")", "throws", "ProvideException", ",", "ProviderMissingException", ",", "CircularDependenciesException", "{", "if", "(", "monitors", "!=",...
Inject all fields annotated by the given injectAnnotation @param target Whose fields will be injected @param injectAnnotation Annotated which a field will be recognize @throws ProvideException
[ "Inject", "all", "fields", "annotated", "by", "the", "given", "injectAnnotation" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Graph.java#L202-L214
103,369
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Graph.java
Graph.recordVisitField
private void recordVisitField(Object object, Field objectField, Field field) { Map<String, Set<String>> bag = visitedFields.get(object); if (bag == null) { bag = new HashMap<>(); visitedFields.put(object, bag); } Set<String> fields = bag.get(objectField); ...
java
private void recordVisitField(Object object, Field objectField, Field field) { Map<String, Set<String>> bag = visitedFields.get(object); if (bag == null) { bag = new HashMap<>(); visitedFields.put(object, bag); } Set<String> fields = bag.get(objectField); ...
[ "private", "void", "recordVisitField", "(", "Object", "object", ",", "Field", "objectField", ",", "Field", "field", ")", "{", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "bag", "=", "visitedFields", ".", "get", "(", "object", ")", ";", "...
Records the field of a target object is visited @param object The field holder @param objectField The field which holds the object in its parent @param field The field of the holder
[ "Records", "the", "field", "of", "a", "target", "object", "is", "visited" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Graph.java#L534-L549
103,370
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Graph.java
Graph.isFieldVisited
private boolean isFieldVisited(Object object, Field objectField, Field field) { Map<String, Set<String>> bag = visitedFields.get(object); if (bag == null) { return false; } String objectFiledKey = objectField == null ? "" : objectField.toGenericString(); Set<String> ...
java
private boolean isFieldVisited(Object object, Field objectField, Field field) { Map<String, Set<String>> bag = visitedFields.get(object); if (bag == null) { return false; } String objectFiledKey = objectField == null ? "" : objectField.toGenericString(); Set<String> ...
[ "private", "boolean", "isFieldVisited", "(", "Object", "object", ",", "Field", "objectField", ",", "Field", "field", ")", "{", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "bag", "=", "visitedFields", ".", "get", "(", "object", ")", ";", ...
Indicates whether the field of a target object is visited @param object The field holder @param objectField The field which holds the object in its parent @param field The field of the holder
[ "Indicates", "whether", "the", "field", "of", "a", "target", "object", "is", "visited" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Graph.java#L558-L567
103,371
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/Graph.java
Graph.throwCircularDependenciesException
private void throwCircularDependenciesException() throws CircularDependenciesException { String msg = "Circular dependencies found. Check the circular graph below:\n"; boolean firstNode = true; String tab = " "; for (String visit : visitedInjectNodes) { if (!firs...
java
private void throwCircularDependenciesException() throws CircularDependenciesException { String msg = "Circular dependencies found. Check the circular graph below:\n"; boolean firstNode = true; String tab = " "; for (String visit : visitedInjectNodes) { if (!firs...
[ "private", "void", "throwCircularDependenciesException", "(", ")", "throws", "CircularDependenciesException", "{", "String", "msg", "=", "\"Circular dependencies found. Check the circular graph below:\\n\"", ";", "boolean", "firstNode", "=", "true", ";", "String", "tab", "=",...
Print readable circular graph @throws CircularDependenciesException
[ "Print", "readable", "circular", "graph" ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/Graph.java#L590-L605
103,372
kejunxia/AndroidMvc
extension/service-mediastore/src/main/java/com/shipdream/lib/android/mvc/service/internal/MediaStoreServiceImpl.java
MediaStoreServiceImpl.extractImagesFromCursor
protected List<ImageDTO> extractImagesFromCursor(Cursor cursor, int offset, int limit) { List<ImageDTO> images = new ArrayList<>(); int count = 0; int begin = offset > 0 ? offset : 0; if (cursor.moveToPosition(begin)) { do { ImageDTO image = extractOneImageFro...
java
protected List<ImageDTO> extractImagesFromCursor(Cursor cursor, int offset, int limit) { List<ImageDTO> images = new ArrayList<>(); int count = 0; int begin = offset > 0 ? offset : 0; if (cursor.moveToPosition(begin)) { do { ImageDTO image = extractOneImageFro...
[ "protected", "List", "<", "ImageDTO", ">", "extractImagesFromCursor", "(", "Cursor", "cursor", ",", "int", "offset", ",", "int", "limit", ")", "{", "List", "<", "ImageDTO", ">", "images", "=", "new", "ArrayList", "<>", "(", ")", ";", "int", "count", "=",...
Extract a list of imageDTO from current cursor with the given offset and limit. @param cursor @param offset @param limit @return
[ "Extract", "a", "list", "of", "imageDTO", "from", "current", "cursor", "with", "the", "given", "offset", "and", "limit", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/extension/service-mediastore/src/main/java/com/shipdream/lib/android/mvc/service/internal/MediaStoreServiceImpl.java#L284-L301
103,373
kejunxia/AndroidMvc
extension/service-mediastore/src/main/java/com/shipdream/lib/android/mvc/service/internal/MediaStoreServiceImpl.java
MediaStoreServiceImpl.extractVideosFromCursor
protected List<VideoDTO> extractVideosFromCursor(Cursor cursor, int offset, int limit) { List<VideoDTO> videos = new ArrayList<>(); int count = 0; int begin = offset > 0 ? offset : 0; if (cursor.moveToPosition(begin)) { do { VideoDTO video = extractOneVideoFro...
java
protected List<VideoDTO> extractVideosFromCursor(Cursor cursor, int offset, int limit) { List<VideoDTO> videos = new ArrayList<>(); int count = 0; int begin = offset > 0 ? offset : 0; if (cursor.moveToPosition(begin)) { do { VideoDTO video = extractOneVideoFro...
[ "protected", "List", "<", "VideoDTO", ">", "extractVideosFromCursor", "(", "Cursor", "cursor", ",", "int", "offset", ",", "int", "limit", ")", "{", "List", "<", "VideoDTO", ">", "videos", "=", "new", "ArrayList", "<>", "(", ")", ";", "int", "count", "=",...
Extract a list of videoDTO from current cursor with the given offset and limit. @param cursor @param offset @param limit @return
[ "Extract", "a", "list", "of", "videoDTO", "from", "current", "cursor", "with", "the", "given", "offset", "and", "limit", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/extension/service-mediastore/src/main/java/com/shipdream/lib/android/mvc/service/internal/MediaStoreServiceImpl.java#L526-L543
103,374
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/util/ReflectUtils.java
ReflectUtils.setField
public static void setField(Object obj, Field field, Object value) { boolean accessible = field.isAccessible(); //hack accessibility if (!accessible) { field.setAccessible(true); } try { field.set(obj, value); } catch (IllegalAccessException e) { ...
java
public static void setField(Object obj, Field field, Object value) { boolean accessible = field.isAccessible(); //hack accessibility if (!accessible) { field.setAccessible(true); } try { field.set(obj, value); } catch (IllegalAccessException e) { ...
[ "public", "static", "void", "setField", "(", "Object", "obj", ",", "Field", "field", ",", "Object", "value", ")", "{", "boolean", "accessible", "=", "field", ".", "isAccessible", "(", ")", ";", "//hack accessibility", "if", "(", "!", "accessible", ")", "{"...
Sets value to the field of the given object. @param obj The object @param field The field @param value The value
[ "Sets", "value", "to", "the", "field", "of", "the", "given", "object", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/util/ReflectUtils.java#L91-L105
103,375
kejunxia/AndroidMvc
library/poke/src/main/java/com/shipdream/lib/poke/util/ReflectUtils.java
ReflectUtils.getFieldValue
public static Object getFieldValue(Object obj, Field field) { Object value = null; boolean accessible = field.isAccessible(); //hack accessibility if (!accessible) { field.setAccessible(true); } try { value = field.get(obj); } catch (Illega...
java
public static Object getFieldValue(Object obj, Field field) { Object value = null; boolean accessible = field.isAccessible(); //hack accessibility if (!accessible) { field.setAccessible(true); } try { value = field.get(obj); } catch (Illega...
[ "public", "static", "Object", "getFieldValue", "(", "Object", "obj", ",", "Field", "field", ")", "{", "Object", "value", "=", "null", ";", "boolean", "accessible", "=", "field", ".", "isAccessible", "(", ")", ";", "//hack accessibility", "if", "(", "!", "a...
Gets value of the field of the given object. @param obj The object @param field The field
[ "Gets", "value", "of", "the", "field", "of", "the", "given", "object", "." ]
c7893f0a13119d64297b9eb2988f7323b7da5bbc
https://github.com/kejunxia/AndroidMvc/blob/c7893f0a13119d64297b9eb2988f7323b7da5bbc/library/poke/src/main/java/com/shipdream/lib/poke/util/ReflectUtils.java#L112-L128
103,376
assertthat/selenium-shutterbug
src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java
PageSnapshot.highlight
public PageSnapshot highlight(WebElement element) { try { highlight(element, Color.red, 3); } catch (RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE, rfe); } return this; }
java
public PageSnapshot highlight(WebElement element) { try { highlight(element, Color.red, 3); } catch (RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE, rfe); } return this; }
[ "public", "PageSnapshot", "highlight", "(", "WebElement", "element", ")", "{", "try", "{", "highlight", "(", "element", ",", "Color", ".", "red", ",", "3", ")", ";", "}", "catch", "(", "RasterFormatException", "rfe", ")", "{", "throw", "new", "ElementOutsi...
Highlights WebElement within the page with Color.red and line width 3. @param element WebElement to be highlighted @return instance of type PageSnapshot
[ "Highlights", "WebElement", "within", "the", "page", "with", "Color", ".", "red", "and", "line", "width", "3", "." ]
770d9b92423200d262c9ab70e40405921d81e262
https://github.com/assertthat/selenium-shutterbug/blob/770d9b92423200d262c9ab70e40405921d81e262/src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java#L34-L41
103,377
assertthat/selenium-shutterbug
src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java
PageSnapshot.highlight
public PageSnapshot highlight(WebElement element, Color color, int lineWidth) { try { image = ImageProcessor.highlight(image, new Coordinates(element, devicePixelRatio), color, lineWidth); } catch (RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT...
java
public PageSnapshot highlight(WebElement element, Color color, int lineWidth) { try { image = ImageProcessor.highlight(image, new Coordinates(element, devicePixelRatio), color, lineWidth); } catch (RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT...
[ "public", "PageSnapshot", "highlight", "(", "WebElement", "element", ",", "Color", "color", ",", "int", "lineWidth", ")", "{", "try", "{", "image", "=", "ImageProcessor", ".", "highlight", "(", "image", ",", "new", "Coordinates", "(", "element", ",", "device...
Highlights WebElement within the page with provided color and line width. @param element WebElement to be highlighted @param color color of the line @param lineWidth width of the line @return instance of type PageSnapshot
[ "Highlights", "WebElement", "within", "the", "page", "with", "provided", "color", "and", "line", "width", "." ]
770d9b92423200d262c9ab70e40405921d81e262
https://github.com/assertthat/selenium-shutterbug/blob/770d9b92423200d262c9ab70e40405921d81e262/src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java#L52-L59
103,378
assertthat/selenium-shutterbug
src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java
PageSnapshot.blur
public PageSnapshot blur(WebElement element) { try { image = ImageProcessor.blurArea(image, new Coordinates(element, devicePixelRatio)); }catch(RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE, rfe); } retur...
java
public PageSnapshot blur(WebElement element) { try { image = ImageProcessor.blurArea(image, new Coordinates(element, devicePixelRatio)); }catch(RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE, rfe); } retur...
[ "public", "PageSnapshot", "blur", "(", "WebElement", "element", ")", "{", "try", "{", "image", "=", "ImageProcessor", ".", "blurArea", "(", "image", ",", "new", "Coordinates", "(", "element", ",", "devicePixelRatio", ")", ")", ";", "}", "catch", "(", "Rast...
Blur provided element within the page only. @param element WebElement to be blurred @return instance of type PageSnapshot
[ "Blur", "provided", "element", "within", "the", "page", "only", "." ]
770d9b92423200d262c9ab70e40405921d81e262
https://github.com/assertthat/selenium-shutterbug/blob/770d9b92423200d262c9ab70e40405921d81e262/src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java#L119-L126
103,379
assertthat/selenium-shutterbug
src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java
PageSnapshot.monochrome
public PageSnapshot monochrome(WebElement element) { try { image = ImageProcessor.monochromeArea(image, new Coordinates(element,devicePixelRatio)); } catch (RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE, rfe); } ...
java
public PageSnapshot monochrome(WebElement element) { try { image = ImageProcessor.monochromeArea(image, new Coordinates(element,devicePixelRatio)); } catch (RasterFormatException rfe) { throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE, rfe); } ...
[ "public", "PageSnapshot", "monochrome", "(", "WebElement", "element", ")", "{", "try", "{", "image", "=", "ImageProcessor", ".", "monochromeArea", "(", "image", ",", "new", "Coordinates", "(", "element", ",", "devicePixelRatio", ")", ")", ";", "}", "catch", ...
Makes an element withing a page 'monochrome' - applies gray-and-white filter. Original colors remain on the rest of the page. @param element WebElement within the page to be made 'monochrome' @return instance of type PageSnapshot
[ "Makes", "an", "element", "withing", "a", "page", "monochrome", "-", "applies", "gray", "-", "and", "-", "white", "filter", ".", "Original", "colors", "remain", "on", "the", "rest", "of", "the", "page", "." ]
770d9b92423200d262c9ab70e40405921d81e262
https://github.com/assertthat/selenium-shutterbug/blob/770d9b92423200d262c9ab70e40405921d81e262/src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java#L135-L142
103,380
assertthat/selenium-shutterbug
src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java
PageSnapshot.blurExcept
public PageSnapshot blurExcept(WebElement element) { try{ image = ImageProcessor.blurExceptArea(image, new Coordinates(element,devicePixelRatio)); }catch(RasterFormatException rfe){ throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE,rfe); } ...
java
public PageSnapshot blurExcept(WebElement element) { try{ image = ImageProcessor.blurExceptArea(image, new Coordinates(element,devicePixelRatio)); }catch(RasterFormatException rfe){ throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE,rfe); } ...
[ "public", "PageSnapshot", "blurExcept", "(", "WebElement", "element", ")", "{", "try", "{", "image", "=", "ImageProcessor", ".", "blurExceptArea", "(", "image", ",", "new", "Coordinates", "(", "element", ",", "devicePixelRatio", ")", ")", ";", "}", "catch", ...
Blurs all the page except the element provided. @param element WebElement to stay not blurred @return instance of type PageSnapshot
[ "Blurs", "all", "the", "page", "except", "the", "element", "provided", "." ]
770d9b92423200d262c9ab70e40405921d81e262
https://github.com/assertthat/selenium-shutterbug/blob/770d9b92423200d262c9ab70e40405921d81e262/src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java#L150-L157
103,381
assertthat/selenium-shutterbug
src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java
PageSnapshot.cropAround
public PageSnapshot cropAround(WebElement element, int offsetX, int offsetY) { try{ image = ImageProcessor.cropAround(image, new Coordinates(element,devicePixelRatio), offsetX, offsetY); }catch(RasterFormatException rfe){ throw new ElementOutsideViewportException(ELEMENT_OUT_OF_V...
java
public PageSnapshot cropAround(WebElement element, int offsetX, int offsetY) { try{ image = ImageProcessor.cropAround(image, new Coordinates(element,devicePixelRatio), offsetX, offsetY); }catch(RasterFormatException rfe){ throw new ElementOutsideViewportException(ELEMENT_OUT_OF_V...
[ "public", "PageSnapshot", "cropAround", "(", "WebElement", "element", ",", "int", "offsetX", ",", "int", "offsetY", ")", "{", "try", "{", "image", "=", "ImageProcessor", ".", "cropAround", "(", "image", ",", "new", "Coordinates", "(", "element", ",", "device...
Crop the image around specified element with offset. @param element WebElement to crop around @param offsetX offsetX around element in px @param offsetY offsetY around element in px @return instance of type PageSnapshot
[ "Crop", "the", "image", "around", "specified", "element", "with", "offset", "." ]
770d9b92423200d262c9ab70e40405921d81e262
https://github.com/assertthat/selenium-shutterbug/blob/770d9b92423200d262c9ab70e40405921d81e262/src/main/java/com/assertthat/selenium_shutterbug/core/PageSnapshot.java#L167-L174
103,382
assertthat/selenium-shutterbug
src/main/java/com/assertthat/selenium_shutterbug/utils/image/ImageProcessor.java
ImageProcessor.imagesAreEqualsWithDiff
public static boolean imagesAreEqualsWithDiff(BufferedImage image1, BufferedImage image2, String pathFileName, double deviation) { BufferedImage output = new BufferedImage(image1.getWidth(), image1.getHeight(), BufferedImage.TYPE_INT_RGB); int width1 = image1.getWidth(null); int width2 = image2...
java
public static boolean imagesAreEqualsWithDiff(BufferedImage image1, BufferedImage image2, String pathFileName, double deviation) { BufferedImage output = new BufferedImage(image1.getWidth(), image1.getHeight(), BufferedImage.TYPE_INT_RGB); int width1 = image1.getWidth(null); int width2 = image2...
[ "public", "static", "boolean", "imagesAreEqualsWithDiff", "(", "BufferedImage", "image1", ",", "BufferedImage", "image2", ",", "String", "pathFileName", ",", "double", "deviation", ")", "{", "BufferedImage", "output", "=", "new", "BufferedImage", "(", "image1", ".",...
Extends the functionality of imagesAreEqualsWithDiff, but creates a third BufferedImage and applies pixel manipulation to it. @param image1 The first image to compare @param image2 The second image to compare @param pathFileName The output path filename for the third image, if null then is ignored @param deviation The ...
[ "Extends", "the", "functionality", "of", "imagesAreEqualsWithDiff", "but", "creates", "a", "third", "BufferedImage", "and", "applies", "pixel", "manipulation", "to", "it", "." ]
770d9b92423200d262c9ab70e40405921d81e262
https://github.com/assertthat/selenium-shutterbug/blob/770d9b92423200d262c9ab70e40405921d81e262/src/main/java/com/assertthat/selenium_shutterbug/utils/image/ImageProcessor.java#L147-L191
103,383
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerProfile.java
DrawerProfile.setAvatar
public DrawerProfile setAvatar(Context context, Bitmap avatar) { mAvatar = new BitmapDrawable(context.getResources(), avatar); notifyDataChanged(); return this; }
java
public DrawerProfile setAvatar(Context context, Bitmap avatar) { mAvatar = new BitmapDrawable(context.getResources(), avatar); notifyDataChanged(); return this; }
[ "public", "DrawerProfile", "setAvatar", "(", "Context", "context", ",", "Bitmap", "avatar", ")", "{", "mAvatar", "=", "new", "BitmapDrawable", "(", "context", ".", "getResources", "(", ")", ",", "avatar", ")", ";", "notifyDataChanged", "(", ")", ";", "return...
Sets an avatar image to the drawer profile @param avatar Avatar image to set
[ "Sets", "an", "avatar", "image", "to", "the", "drawer", "profile" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerProfile.java#L126-L130
103,384
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerProfile.java
DrawerProfile.setRoundedAvatar
public DrawerProfile setRoundedAvatar(Context context, Bitmap image) { return setAvatar(new RoundedAvatarDrawable(new BitmapDrawable(context.getResources(), image).getBitmap())); }
java
public DrawerProfile setRoundedAvatar(Context context, Bitmap image) { return setAvatar(new RoundedAvatarDrawable(new BitmapDrawable(context.getResources(), image).getBitmap())); }
[ "public", "DrawerProfile", "setRoundedAvatar", "(", "Context", "context", ",", "Bitmap", "image", ")", "{", "return", "setAvatar", "(", "new", "RoundedAvatarDrawable", "(", "new", "BitmapDrawable", "(", "context", ".", "getResources", "(", ")", ",", "image", ")"...
Sets a rounded avatar image to the drawer profile @param image Avatar image to set
[ "Sets", "a", "rounded", "avatar", "image", "to", "the", "drawer", "profile" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerProfile.java#L146-L148
103,385
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerProfile.java
DrawerProfile.setBackground
public DrawerProfile setBackground(Context context, Bitmap background) { mBackground = new BitmapDrawable(context.getResources(), background); notifyDataChanged(); return this; }
java
public DrawerProfile setBackground(Context context, Bitmap background) { mBackground = new BitmapDrawable(context.getResources(), background); notifyDataChanged(); return this; }
[ "public", "DrawerProfile", "setBackground", "(", "Context", "context", ",", "Bitmap", "background", ")", "{", "mBackground", "=", "new", "BitmapDrawable", "(", "context", ".", "getResources", "(", ")", ",", "background", ")", ";", "notifyDataChanged", "(", ")", ...
Sets a background to the drawer profile @param background Background to set
[ "Sets", "a", "background", "to", "the", "drawer", "profile" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerProfile.java#L194-L198
103,386
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerItem.java
DrawerItem.setImageMode
public DrawerItem setImageMode(int imageMode) { if (imageMode != ICON && imageMode != AVATAR && imageMode != SMALL_AVATAR) { throw new IllegalArgumentException("Image mode must be either ICON or AVATAR."); } mImageMode = imageMode; notifyDataChanged(); return this; ...
java
public DrawerItem setImageMode(int imageMode) { if (imageMode != ICON && imageMode != AVATAR && imageMode != SMALL_AVATAR) { throw new IllegalArgumentException("Image mode must be either ICON or AVATAR."); } mImageMode = imageMode; notifyDataChanged(); return this; ...
[ "public", "DrawerItem", "setImageMode", "(", "int", "imageMode", ")", "{", "if", "(", "imageMode", "!=", "ICON", "&&", "imageMode", "!=", "AVATAR", "&&", "imageMode", "!=", "SMALL_AVATAR", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Image mode ...
Sets an image mode to the drawer item @param imageMode Image mode to set
[ "Sets", "an", "image", "mode", "to", "the", "drawer", "item" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerItem.java#L279-L286
103,387
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerItem.java
DrawerItem.setTextSecondary
public DrawerItem setTextSecondary(String textSecondary, int textMode) { mTextSecondary = textSecondary; setTextMode(textMode); notifyDataChanged(); return this; }
java
public DrawerItem setTextSecondary(String textSecondary, int textMode) { mTextSecondary = textSecondary; setTextMode(textMode); notifyDataChanged(); return this; }
[ "public", "DrawerItem", "setTextSecondary", "(", "String", "textSecondary", ",", "int", "textMode", ")", "{", "mTextSecondary", "=", "textSecondary", ";", "setTextMode", "(", "textMode", ")", ";", "notifyDataChanged", "(", ")", ";", "return", "this", ";", "}" ]
Sets a secondary text with a given text mode to the drawer item @param textSecondary Secondary text to set @param textMode Text mode to set
[ "Sets", "a", "secondary", "text", "with", "a", "given", "text", "mode", "to", "the", "drawer", "item" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerItem.java#L363-L368
103,388
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerItem.java
DrawerItem.setTextMode
public DrawerItem setTextMode(int textMode) { if (textMode != SINGLE_LINE && textMode != TWO_LINE && textMode != THREE_LINE) { throw new IllegalArgumentException("Image mode must be either SINGLE_LINE, TWO_LINE or THREE_LINE."); } mTextMode = textMode; notifyDataChanged(); ...
java
public DrawerItem setTextMode(int textMode) { if (textMode != SINGLE_LINE && textMode != TWO_LINE && textMode != THREE_LINE) { throw new IllegalArgumentException("Image mode must be either SINGLE_LINE, TWO_LINE or THREE_LINE."); } mTextMode = textMode; notifyDataChanged(); ...
[ "public", "DrawerItem", "setTextMode", "(", "int", "textMode", ")", "{", "if", "(", "textMode", "!=", "SINGLE_LINE", "&&", "textMode", "!=", "TWO_LINE", "&&", "textMode", "!=", "THREE_LINE", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Image mod...
Sets a text mode to the drawer item @param textMode Text mode to set
[ "Sets", "a", "text", "mode", "to", "the", "drawer", "item" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/structure/DrawerItem.java#L414-L421
103,389
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.addProfile
public DrawerView addProfile(DrawerProfile profile) { if (profile.getId() <= 0) { profile.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerProfile oldProfile : mProfileAdapter.getItems()) { if (oldProfile.getId() == profile.getId()) { ...
java
public DrawerView addProfile(DrawerProfile profile) { if (profile.getId() <= 0) { profile.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerProfile oldProfile : mProfileAdapter.getItems()) { if (oldProfile.getId() == profile.getId()) { ...
[ "public", "DrawerView", "addProfile", "(", "DrawerProfile", "profile", ")", "{", "if", "(", "profile", ".", "getId", "(", ")", "<=", "0", ")", "{", "profile", ".", "setId", "(", "System", ".", "nanoTime", "(", ")", "*", "100", "+", "Math", ".", "roun...
Adds a profile to the drawer view @param profile Profile to add
[ "Adds", "a", "profile", "to", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L955-L972
103,390
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.findProfileById
public DrawerProfile findProfileById(long id) { for (DrawerProfile profile : mProfileAdapter.getItems()) { if (profile.getId() == id) { return profile; } } return null; }
java
public DrawerProfile findProfileById(long id) { for (DrawerProfile profile : mProfileAdapter.getItems()) { if (profile.getId() == id) { return profile; } } return null; }
[ "public", "DrawerProfile", "findProfileById", "(", "long", "id", ")", "{", "for", "(", "DrawerProfile", "profile", ":", "mProfileAdapter", ".", "getItems", "(", ")", ")", "{", "if", "(", "profile", ".", "getId", "(", ")", "==", "id", ")", "{", "return", ...
Gets a profile from the drawer view @param id The profile ID @return Profile from the drawer view
[ "Gets", "a", "profile", "from", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L989-L996
103,391
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.clearProfiles
public DrawerView clearProfiles() { for (DrawerProfile profile : mProfileAdapter.getItems()) { profile.detach(); } mProfileAdapter.clear(); updateProfile(); return this; }
java
public DrawerView clearProfiles() { for (DrawerProfile profile : mProfileAdapter.getItems()) { profile.detach(); } mProfileAdapter.clear(); updateProfile(); return this; }
[ "public", "DrawerView", "clearProfiles", "(", ")", "{", "for", "(", "DrawerProfile", "profile", ":", "mProfileAdapter", ".", "getItems", "(", ")", ")", "{", "profile", ".", "detach", "(", ")", ";", "}", "mProfileAdapter", ".", "clear", "(", ")", ";", "up...
Removes all profiles from the drawer view
[ "Removes", "all", "profiles", "from", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1072-L1079
103,392
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.addItems
public DrawerView addItems(List<DrawerItem> items) { mAdapter.setNotifyOnChange(false); for (DrawerItem item : items) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem : mAdapter...
java
public DrawerView addItems(List<DrawerItem> items) { mAdapter.setNotifyOnChange(false); for (DrawerItem item : items) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem : mAdapter...
[ "public", "DrawerView", "addItems", "(", "List", "<", "DrawerItem", ">", "items", ")", "{", "mAdapter", ".", "setNotifyOnChange", "(", "false", ")", ";", "for", "(", "DrawerItem", "item", ":", "items", ")", "{", "if", "(", "item", ".", "getId", "(", ")...
Adds items to the drawer view @param items Items to add
[ "Adds", "items", "to", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1159-L1179
103,393
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.addItem
public DrawerView addItem(DrawerItem item) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem : mAdapter.getItems()) { if (oldItem.getId() == item.getId()) { mAdapter.remove(oldItem);...
java
public DrawerView addItem(DrawerItem item) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem : mAdapter.getItems()) { if (oldItem.getId() == item.getId()) { mAdapter.remove(oldItem);...
[ "public", "DrawerView", "addItem", "(", "DrawerItem", "item", ")", "{", "if", "(", "item", ".", "getId", "(", ")", "<=", "0", ")", "{", "item", ".", "setId", "(", "System", ".", "nanoTime", "(", ")", "*", "100", "+", "Math", ".", "round", "(", "M...
Adds an item to the drawer view @param item Item to add
[ "Adds", "an", "item", "to", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1213-L1228
103,394
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.findItemById
public DrawerItem findItemById(long id) { for (DrawerItem item : mAdapter.getItems()) { if (item.getId() == id) { return item; } } return null; }
java
public DrawerItem findItemById(long id) { for (DrawerItem item : mAdapter.getItems()) { if (item.getId() == id) { return item; } } return null; }
[ "public", "DrawerItem", "findItemById", "(", "long", "id", ")", "{", "for", "(", "DrawerItem", "item", ":", "mAdapter", ".", "getItems", "(", ")", ")", "{", "if", "(", "item", ".", "getId", "(", ")", "==", "id", ")", "{", "return", "item", ";", "}"...
Gets an item from the drawer view @param id The item ID @return Item from the drawer view
[ "Gets", "an", "item", "from", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1263-L1270
103,395
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.selectItemById
public DrawerView selectItemById(long id) { mAdapterFixed.clearSelection(); int count = mAdapter.getCount(); for (int i = 0; i < count; i++) { if (mAdapter.getItem(i).getId() == id) { mAdapter.select(i); return this; } } re...
java
public DrawerView selectItemById(long id) { mAdapterFixed.clearSelection(); int count = mAdapter.getCount(); for (int i = 0; i < count; i++) { if (mAdapter.getItem(i).getId() == id) { mAdapter.select(i); return this; } } re...
[ "public", "DrawerView", "selectItemById", "(", "long", "id", ")", "{", "mAdapterFixed", ".", "clearSelection", "(", ")", ";", "int", "count", "=", "mAdapter", ".", "getCount", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", "...
Selects an item from the drawer view @param id The item ID
[ "Selects", "an", "item", "from", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1297-L1308
103,396
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.clearItems
public DrawerView clearItems() { for (DrawerItem item : mAdapter.getItems()) { item.detach(); } mAdapter.clear(); updateList(); return this; }
java
public DrawerView clearItems() { for (DrawerItem item : mAdapter.getItems()) { item.detach(); } mAdapter.clear(); updateList(); return this; }
[ "public", "DrawerView", "clearItems", "(", ")", "{", "for", "(", "DrawerItem", "item", ":", "mAdapter", ".", "getItems", "(", ")", ")", "{", "item", ".", "detach", "(", ")", ";", "}", "mAdapter", ".", "clear", "(", ")", ";", "updateList", "(", ")", ...
Removes all items from the drawer view
[ "Removes", "all", "items", "from", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1353-L1360
103,397
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.addFixedItems
public DrawerView addFixedItems(List<DrawerItem> items) { mAdapterFixed.setNotifyOnChange(false); for (DrawerItem item : items) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem ...
java
public DrawerView addFixedItems(List<DrawerItem> items) { mAdapterFixed.setNotifyOnChange(false); for (DrawerItem item : items) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem ...
[ "public", "DrawerView", "addFixedItems", "(", "List", "<", "DrawerItem", ">", "items", ")", "{", "mAdapterFixed", ".", "setNotifyOnChange", "(", "false", ")", ";", "for", "(", "DrawerItem", "item", ":", "items", ")", "{", "if", "(", "item", ".", "getId", ...
Adds fixed items to the drawer view @param items Items to add
[ "Adds", "fixed", "items", "to", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1404-L1424
103,398
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.addFixedItem
public DrawerView addFixedItem(DrawerItem item) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem : mAdapterFixed.getItems()) { if (oldItem.getId() == item.getId()) { mAdapterFixed.r...
java
public DrawerView addFixedItem(DrawerItem item) { if (item.getId() <= 0) { item.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); } for (DrawerItem oldItem : mAdapterFixed.getItems()) { if (oldItem.getId() == item.getId()) { mAdapterFixed.r...
[ "public", "DrawerView", "addFixedItem", "(", "DrawerItem", "item", ")", "{", "if", "(", "item", ".", "getId", "(", ")", "<=", "0", ")", "{", "item", ".", "setId", "(", "System", ".", "nanoTime", "(", ")", "*", "100", "+", "Math", ".", "round", "(",...
Adds a fixed item to the drawer view @param item Item to add
[ "Adds", "a", "fixed", "item", "to", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1458-L1473
103,399
heinrichreimer/material-drawer
library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java
DrawerView.findFixedItemById
public DrawerItem findFixedItemById(long id) { for (DrawerItem item : mAdapterFixed.getItems()) { if (item.getId() == id) { return item; } } return null; }
java
public DrawerItem findFixedItemById(long id) { for (DrawerItem item : mAdapterFixed.getItems()) { if (item.getId() == id) { return item; } } return null; }
[ "public", "DrawerItem", "findFixedItemById", "(", "long", "id", ")", "{", "for", "(", "DrawerItem", "item", ":", "mAdapterFixed", ".", "getItems", "(", ")", ")", "{", "if", "(", "item", ".", "getId", "(", ")", "==", "id", ")", "{", "return", "item", ...
Gets a fixed item from the drawer view @param id The item ID @return Item from the drawer view
[ "Gets", "a", "fixed", "item", "from", "the", "drawer", "view" ]
7c2406812d73f710ef8bb73d4a0f4bbef3b275ce
https://github.com/heinrichreimer/material-drawer/blob/7c2406812d73f710ef8bb73d4a0f4bbef3b275ce/library/src/main/java/com/heinrichreimersoftware/materialdrawer/DrawerView.java#L1508-L1515