MCLExp7
MCLExp7
EXPERIMENT NO. 7
AIM: Write an application that draws basic graphical primitives on the screen.
Procedure:
Creating a new project:
1. Open Android Studio and then click on File -> New -> New project.
2. Then type the Application name as “ex.no.8″ and click Next.
3. Then select the Minimum SDK and click Next.
4. Then select the Empty Activity and click Next.
5. Finally click Finish.
It will take some time to build and load the project.
Designing layout for the Android Application:
1. Click on app -> res -> layout -> activity_main.xml.
2. Now click on Text.
3. Then delete the code which is there and type the code as given below.
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/imageView" />
</RelativeLayout>
Conclusion: Thus, we have successfully implemented an application that draws basic graphical
primitives on the screen.