Skip to content

Commit ec7eb25

Browse files
committed
Updated
1 parent 94b4e11 commit ec7eb25

File tree

3 files changed

+139
-64
lines changed

3 files changed

+139
-64
lines changed

.idea/workspace.xml

Lines changed: 137 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/github/pierry/simpletoast/SimpleToast.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ public static void ok(Context context, String msg) {
5757
LayoutInflater myInflater = LayoutInflater.from(context);
5858
View view = myInflater.inflate(R.layout.toast_base, null);
5959

60-
LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.layout);
61-
62-
ShapeDrawable shape = (ShapeDrawable) linearLayout.getBackground();
63-
shape.getPaint().setColor(color);
64-
65-
/*GradientDrawable gradientDrawable = new GradientDrawable();
66-
gradientDrawable.setColor(color);
67-
gradientDrawable.setCornerRadius(4);
68-
gradientDrawable.so
69-
gradientDrawable.setStroke(1, borderColor);*/
70-
71-
linearLayout.setBackground(shape);
72-
7360
Button button = (Button) view.findViewById(R.id.button);
7461
button.setText(msg);
7562

app/src/main/res/layout/toast_base.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
xmlns:tools="http://schemas.android.com/tools"
33
android:id="@+id/layout"
44
android:layout_width="wrap_content"
5-
android:layout_height="wrap_content" >
5+
android:layout_height="wrap_content"
6+
android:background="@drawable/list_border_back_blue" >
67

78
<IconTextView
89
android:layout_height="wrap_content"

0 commit comments

Comments
 (0)