0% found this document useful (0 votes)
4 views2 pages

Task 2 Code

The document contains the Java code for the MainActivity of an Android application, which sets up the user interface and animates a logo before transitioning to a login activity. The layout defined in frontend.xml includes a title, logo, and slogan, all styled with specific colors and sizes. The logo animation is triggered on startup, and after a delay, the app navigates to the login screen.

Uploaded by

ishwarisolav
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Task 2 Code

The document contains the Java code for the MainActivity of an Android application, which sets up the user interface and animates a logo before transitioning to a login activity. The layout defined in frontend.xml includes a title, logo, and slogan, all styled with specific colors and sizes. The logo animation is triggered on startup, and after a delay, the app navigates to the login screen.

Uploaded by

ishwarisolav
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

TASK-6

[Link]
package [Link];

import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];

import [Link];
import [Link];
import [Link];
import [Link];
import [Link];

public class MainActivity extends AppCompatActivity {


TextView tvtitle;
ImageView ivlogo;
TextView tvslogan;

@Override
protected void onCreate(Bundle savedInstanceState) {
[Link](savedInstanceState);
setContentView([Link]);

tvtitle = findViewById([Link]);
ivlogo = findViewById([Link]);
tvslogan = findViewById([Link]);

Animation dropBounce = [Link](this,


[Link].drop_bounce);
[Link](dropBounce);

Handler handler = new Handler();


[Link](new Runnable() {
@Override
public void run() {
Intent intent = new Intent([Link],
[Link]);
startActivity(intent);
finish();

}
}, 2500);

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

<LinearLayout
android:orientation="vertical"
xmlns:android="[Link]

android:id="@+id/llmain"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:background="#FFF0D5">

<!-- #FFF0D5 -->

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/logoname"
android:text="DailyDrop"
android:textColor="#673ED7"
android:textSize="39sp"
android:textStyle="bold"
android:textAlignment="center"
android:fontFamily="sans-serif-condensed-light"
android:layout_marginBottom="20sp"/>

<ImageView
android:id="@+id/mainlogo"
android:layout_width="203dp"
android:layout_height="195dp"
android:src="@drawable/daily_drop_final_round_logo" />

<TextView
android:id="@+id/logoslogan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Feel [Link] Vibes"
android:textAlignment="center"
android:textColor="#000000"
android:textSize="24sp"
android:textStyle="bold"
android:layout_marginTop="30sp"
/>

</LinearLayout>

You might also like