-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed tintColor from usual Toasty method calls and added an example…
… of custom config.
- Loading branch information
Showing
6 changed files
with
115 additions
and
86 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,106 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/activity_main" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
tools:context="es.dmoral.toastysample.MainActivity"> | ||
|
||
<Button | ||
android:text="@string/error_toast" | ||
android:layout_width="wrap_content" | ||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_error_toast" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin"> | ||
|
||
<Button | ||
android:text="@string/success_toast" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_error_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_success_toast" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
<Button | ||
android:text="@string/error_toast" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_error_toast" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
<Button | ||
android:text="@string/info_toast" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_success_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_info_toast" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
<Button | ||
android:text="@string/success_toast" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_error_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_success_toast" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
<Button | ||
android:text="@string/info_toast_with_formatting" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/button_info_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_info_toast_with_formatting" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
<Button | ||
android:text="@string/info_toast" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_success_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_info_toast" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
<Button | ||
android:text="@string/warning_toast" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_info_toast_with_formatting" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" | ||
android:id="@+id/button_warning_toast" /> | ||
<Button | ||
android:text="@string/info_toast_with_formatting" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/button_info_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_info_toast_with_formatting" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
<Button | ||
android:text="@string/normal_toast_without_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_warning_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_normal_toast_wo_icon" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
<Button | ||
android:text="@string/warning_toast" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_info_toast_with_formatting" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" | ||
android:id="@+id/button_warning_toast" /> | ||
|
||
<Button | ||
android:text="@string/normal_toast_with_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_normal_toast_wo_icon" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_normal_toast_w_icon" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
<Button | ||
android:text="@string/normal_toast_without_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_warning_toast" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_normal_toast_wo_icon" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
<Button | ||
android:text="@string/normal_toast_with_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_normal_toast_wo_icon" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_normal_toast_w_icon" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
<Button | ||
android:text="@string/custom_configuration" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/button_normal_toast_w_icon" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true" | ||
android:id="@+id/button_custom_config" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
</RelativeLayout> | ||
</RelativeLayout> | ||
</ScrollView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters