Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ACFrOgBvDze5hsGlWYu2foKxTySgSfF1y4jjjJI6kL6oyKcL1itlP17NNZ7jiIslB7sU_DCaEc7IsQSSYt7cwthQogHcpHdg6q3ei1DWXgJ4saGhA57MrXxwvNx5nWTItj4tIQrDpGbQ_ympbJnA

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Ahsanullah University of Science and Technology

Department of Computer Science and Engineering


Spring 2021

Program: Bachelor of Science in Computer Science and Engineering

Course No: CSE 2200


Course Title: Software Development-III

Assignment No: 01
Date of Submission: 05/01/2021

Submitted to
Mr. Md. Aminur Rahman
Assistant Professor, Department of CSE, AUST.

Mr. Md. Siam Ansary


Lecturer, Department of CSE, AUST.

Submitted by
Name: Md. Muhaiminul Kabir
Student ID: 190204063
Question: Write necessary codes for designing the
following.
Solution:
Activity_main.xml :

<?xml version="1.0" encoding="utf-8"?>


<RelativeLayout
android:background="#E37777"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="40dp"
android:text="Android Development"
/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/one"
android:layout_marginBottom="263dp"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="160dp"
android:layout_height="160dp"
android:src="@drawable/pnn" />

<ImageView
android:layout_width="160dp"
android:layout_height="160dp"
android:src="@drawable/pnn" />

</LinearLayout>

<TextView
android:id="@+id/one"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Plastic memories"
android:textSize="30dp"
android:gravity="center_horizontal"
android:fontFamily="serif"
android:textColor="#000000"
android:layout_margin="10dp"
android:layout_alignParentBottom="true"/>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/one"
android:layout_marginBottom="80dp"

android:layout_marginLeft="50dp"
android:gravity="center"
android:orientation="horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="60dp"
android:text="button1"

/>

</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/one"
android:layout_marginBottom="20dp"
android:layout_marginLeft="100dp"

android:gravity="center"
android:orientation="horizontal">

<Button
android:layout_width="wrap_content"
android:layout_height="60dp"
android:text="button4"

/>

</LinearLayout>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/one"
android:layout_marginBottom="20dp"
android:layout_marginLeft="250dp"

android:gravity="center"
android:orientation="horizontal">

<Button
android:layout_width="wrap_content"
android:layout_height="60dp"
android:text="button5"

/>
</LinearLayout>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/one"
android:layout_marginBottom="80dp"
android:layout_marginLeft="290dp"
android:gravity="center"
android:orientation="horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="60dp"
android:text="button3"

/>

</LinearLayout>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/one"
android:layout_marginLeft="170dp"
android:layout_marginBottom="80dp"
android:gravity="center"
android:orientation="horizontal">

<Button
android:layout_width="wrap_content"
android:layout_height="60dp"
android:text="button2"

/>

</LinearLayout>

</RelativeLayout>

strings.xml :
<resources>
<string name="app_name">Assignments are cool</string>
</resources>

MainActivity.kt:

package com.example.myapplication

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

class MainActivity : AppCompatActivity() {


override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
}

You might also like