- Get link
- Other Apps
Posted by
Naveen M K
on
- Get link
- Other Apps
To create a Notification which shows a big picture in Sketchware, follow the steps given below.
STEP 1: Create a new project in Sketchware as in the picture.
*Doesn't work on Android 8+(Oreo)
STEP 2: Now add a button in "main.xml". Let the width of the button be "match_parent" and text be "Notification". It should look like this. Add a picture named "image"(this is the small icon) and another picture named "image1"(This is the big picture) and another picture named "image2"(This is a large icon) For reference see the below picture.
STEP 3: Now select the button and add an "onClick event". Use an add source directly block and copy the code given below. It should look like this. You can download the source code from here.
STEP 5: Now after copying the code save an run the project. The result would show like this. Hope you enjoy.
*Doesn't work on Android 8+(Oreo)
Comments
Post a Comment