TYCS – B / 8908
PRACTICAL - 1
Aim: Crate a android to make welcome page.
[Link]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="[Link]
xmlns:tools="[Link]
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true"
android:theme="@style/[Link]"
tools:targetApi="31">
<activity
android:name=".MainActivity" android:exported="true"
android:label="@string/app_name"
android:theme="@style/[Link]">
<intent-filter>
<action android:name="[Link]" />
<category android:name="[Link]" />
</intent-filter>
<meta-data
android:name="[Link].lib_name" android:value="" />
</activity>
</application>
</manifest>
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<[Link]
TYCS – B / 8908
xmlns:android="[Link]
xmlns:app="[Link]
xmlns:tools=[Link]
android:layout_width="match_parent" android:layout_height="match_parent"
tools:context=".MainActivity">
<[Link]
android:id="@+id/appBarLayout" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/[Link]">
</[Link]>
<include layout="@layout/content_main" />
<[Link]
android:id="@+id/fab" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_gravity="bottom|end"
android:layout_marginEnd="@dimen/fab_margin"
android:layout_marginBottom="16dp"
app:srcCompat="@android:drawable/ic_dialog_email" />
<TextView
android:id="@+id/textView" android:layout_width="259dp"
android:layout_height="179dp" android:text="Shriraj "
android:layout_marginTop="200px" android:textAlignment="center"
android:textSize="50dp" android:textStyle="bold"
tools:visibility="visible" />
</[Link]>
TYCS – B / 8908
Output:
Shriraj