Breaking News

How to Use ScrollView in Android Studio Episode 010 Urdu Hindi

How to Use ScrollView in Android Studio Episode 010 Urdu Hindi

How to Use ScrollView in Android Studio Episode #010 Urdu Hindi Step1: Start Android Studio Project Step2: Open XML file > Add this code <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="30dp" android:text=""/> </LinearLayout> </ScrollView> </RelativeLayout> How to Use ScrollView in Android Studio

Read More »

How to Create Splash Screen | Welcome Screen in Android Studio Episode #009

How to Create Splash Screen

How to Create Splash Screen | Welcome Screen in Android Studio Episode #009 Step 1: Create a new activity for splash screen. Change ConstraintLayout  to LinearLayout.  Add orientation vertical. XML Splash Activity <ImageView android:id="@+id/splash" android:layout_width="wrap_content" android:layout_height="400dp" android:src="@drawable/icon"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Please wait!" android:textColor="#552999da" android:textSize="50dp" android:gravity="center"/> </LinearLayout> Step 2: Add code Splash JAVA file. ImageView imageView; imageView = …

Read More »

How to Create a New Activity | Open New Activity in Android Studio Episode #008

Create a New Activity Open New Activity

How to Create a New Activity | Open New Activity in Android Studio XML Code <Button android:id=”@+id/next” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:background=”#4CAF50″ android:layout_gravity=”center” android:text=”Next Activity” android:textSize=”30dp” />   Java Code Button next; next = (Button)findViewById(R.id.next); next.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(MainActivity.this, aboutus.class); startActivity(intent); } }); }

Read More »