Skip to content

Commit 32cac43

Browse files
committed
Updated methods
1 parent 728629d commit 32cac43

File tree

5 files changed

+164
-24
lines changed

5 files changed

+164
-24
lines changed

.idea/workspace.xml

Lines changed: 87 additions & 23 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void ok(Context context, String msg) {
5454

5555
@TargetApi(Build.VERSION_CODES.JELLY_BEAN) public static void ok(Context context, String msg, Iconify.IconValue iconValue) {
5656
LayoutInflater myInflater = LayoutInflater.from(context);
57-
View view = myInflater.inflate(R.layout.toast_base, null);
57+
View view = myInflater.inflate(R.layout.toast_ok, null);
5858

5959
Button button = (Button) view.findViewById(R.id.button);
6060
button.setText(msg);
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:id="@+id/layout"
4+
android:layout_width="wrap_content"
5+
android:layout_height="wrap_content"
6+
android:background="@drawable/list_border_back_red"
7+
>
8+
9+
<IconTextView
10+
android:layout_height="wrap_content"
11+
android:layout_width="wrap_content"
12+
android:id="@+id/img"
13+
android:layout_marginBottom="4dp"
14+
android:layout_marginLeft="4dp"
15+
android:layout_marginTop="4dp"
16+
android:textSize="40dp"
17+
android:textColor="@color/white"
18+
/>
19+
20+
<Button
21+
android:id="@+id/button"
22+
android:layout_width="wrap_content"
23+
android:layout_height="wrap_content"
24+
android:layout_gravity="center_vertical"
25+
android:layout_marginLeft="8dp"
26+
android:layout_marginRight="13dp"
27+
android:layout_toRightOf="@+id/img"
28+
android:background="@android:color/transparent"
29+
android:paddingBottom="10dp"
30+
android:paddingLeft="10sp"
31+
android:paddingRight="10sp"
32+
android:paddingTop="10dp"
33+
android:text="Texto"
34+
android:textColor="#FFFFFF"
35+
android:textSize="14sp"
36+
/>
37+
38+
</LinearLayout>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:id="@+id/layout"
4+
android:layout_width="wrap_content"
5+
android:layout_height="wrap_content"
6+
android:background="@drawable/list_border_back_green"
7+
>
8+
9+
<IconTextView
10+
android:layout_height="wrap_content"
11+
android:layout_width="wrap_content"
12+
android:id="@+id/img"
13+
android:layout_marginBottom="4dp"
14+
android:layout_marginLeft="4dp"
15+
android:layout_marginTop="4dp"
16+
android:textSize="40dp"
17+
android:textColor="@color/white"
18+
/>
19+
20+
<Button
21+
android:id="@+id/button"
22+
android:layout_width="wrap_content"
23+
android:layout_height="wrap_content"
24+
android:layout_gravity="center_vertical"
25+
android:layout_marginLeft="8dp"
26+
android:layout_marginRight="13dp"
27+
android:layout_toRightOf="@+id/img"
28+
android:background="@android:color/transparent"
29+
android:paddingBottom="10dp"
30+
android:paddingLeft="10sp"
31+
android:paddingRight="10sp"
32+
android:paddingTop="10dp"
33+
android:text="Texto"
34+
android:textColor="#FFFFFF"
35+
android:textSize="14sp"
36+
/>
37+
38+
</LinearLayout>

0 commit comments

Comments
 (0)