Minggu, 05 Januari 2020

TUGAS/UAS/MOBILE_PROGRAMMING

TUGAS UAS MOBILE PROGRAMMING
MEMBUAT APLIKASI TERKONEKSI DATABASE SQLITE PADA ANDROID STUDIO
"LIST GROUP KPOP"

Assalamualaikum Wr. Wb

1. Deskripsi Project

Aplikasi List View "GROUP KPOP" saya buat untuk menampilkan daftar para member Group KPOP Boys & Girls, tidak lupa juga saya membuat menu login untuk masuk ke daftar listviewnya. Menu login pada aplikasi ini sudah terkoneksi dengan DatabaseSqlite. Tampilan login terdiri dari username, password, button login dan button register. Button login digunakan untuk masuk aplikasi dengan insert username dan password, sedangkan button register untuk mendaftarkan akun baru. Saya membuat 10 daftar nama group, yang mana ketika di klik salah satunya akan muncul penjelasan singkat mengenai latar belakang terbentuknya group tersebut beserta foto para membernya.

2. Design Project










3. Source Code

a. LOGIN

- activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/blues"
    tools:context=".MainActivity">
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView
            android:layout_width="80dp"
            android:layout_height="50dp"
            android:layout_alignTop="@+id/textView4"
            android:layout_marginStart="17dp"
            android:layout_marginLeft="17dp"
            android:layout_marginTop="18dp"
            android:layout_toEndOf="@+id/TFpassword"
            android:layout_toRightOf="@+id/TFpassword"
            android:background="@drawable/gembok" />

        <TextView

            android:id="@+id/textView"

            android:layout_width="206dp"

            android:layout_height="31dp"
            android:layout_alignParentTop="true"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="30dp"
            android:text="LOGIN HERE"
            android:textAlignment="center"
            android:textColor="@android:color/black"
            android:textSize="30sp"
            android:textStyle="normal|bold" />


        <TextView
            android:id="@+id/textView3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentStart="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:layout_marginStart="52dp"
            android:layout_marginLeft="52dp"
            android:layout_marginTop="116dp"
            android:text="Username" />

        <EditText
            android:id="@+id/TFusername"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/textView3"
            android:layout_alignStart="@+id/textView3"
            android:layout_alignLeft="@+id/textView3"
            android:layout_marginStart="1dp"
            android:layout_marginLeft="1dp"
            android:layout_marginTop="17dp"
            android:ems="10"
            android:inputType="textPersonName" />

        <TextView
            android:id="@+id/textView4"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/TFusername"
            android:layout_alignStart="@+id/TFusername"
            android:layout_alignLeft="@+id/TFusername"
            android:layout_marginStart="4dp"
            android:layout_marginLeft="4dp"
            android:layout_marginTop="46dp"
            android:text="Password" />

        <EditText
            android:id="@+id/TFpassword"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/textView4"
            android:layout_alignStart="@+id/textView4"
            android:layout_alignLeft="@+id/textView4"
            android:layout_marginStart="-4dp"
            android:layout_marginLeft="-4dp"
            android:layout_marginTop="24dp"
            android:ems="10"
            android:inputType="textPassword" />

        <Button

            android:id="@+id/Blogin"
            style="@style/Widget.AppCompat.Button.Colored"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/TFpassword"
            android:layout_alignStart="@+id/TFpassword"
            android:layout_alignLeft="@+id/TFpassword"
            android:layout_marginStart="12dp"
            android:layout_marginLeft="12dp"
            android:layout_marginTop="50dp"
            android:onClick="onButtonClick"
            android:text="Login" />

        <Button
            android:id="@+id/bregister"
            style="@style/Widget.AppCompat.Button.Colored"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignEnd="@+id/TFpassword"
            android:layout_alignRight="@+id/TFpassword"
            android:layout_alignParentBottom="true"
            android:layout_marginEnd="-30dp"
            android:layout_marginRight="-30dp"
            android:layout_marginBottom="5dp"
            android:onClick="onButtonClick"
            android:text="Register" />
    </RelativeLayout>
</ScrollView>


- MainActivity.java

package list.kpop;

import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;


public class MainActivity extends AppCompatActivity {
    DatabaseHelper helper = new DatabaseHelper(this);
    @Override

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getSupportActionBar().setTitle("RUBI_SULASTRI_161021450368");
    }
    public void onButtonClick (View v)
    {
        if (v.getId()==R.id.Blogin)
        {
            EditText a = (EditText)findViewById(R.id.TFusername);
            EditText b = (EditText)findViewById(R.id.TFpassword);
            String str = a.getText().toString();
            String pass = b.getText().toString();
            String password = helper.searchPass(str);
            if (a.length()==0 && b.length()==0)
            {
                a.setError("Mohon di isi");
                b.setError("Mohon di isi");
            }
            else if (a.length()==0)
            {
                a.setError("Mohon di isi");
            }
            else if (b.length()==0)
            {
                b.setError("Mohon di isi");
            }
            else if (pass.equals(password))
            {
                Intent i = new Intent(MainActivity.this, listkorea.class);
                startActivity(i);
            }
            else{
                Toast.makeText(MainActivity.this, "Password dont match", Toast.LENGTH_SHORT).show();
            }
        }
        if (v.getId()==R.id.bregister)
        {
            Intent i = new Intent(MainActivity.this, Register.class);
            startActivity(i);
        }
    }
}




-register.xml


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

<ScrollView

    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/blues">

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <TextView
            android:id="@+id/textView6"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_alignParentTop="true"
            android:layout_marginLeft="12dp"
            android:layout_marginStart="12dp"
            android:layout_marginTop="22dp"
            android:text="Nama" />

        <EditText
            android:id="@+id/TFname"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/textView6"
            android:layout_alignStart="@+id/textView6"
            android:layout_below="@+id/textView6"
            android:ems="10"
            android:inputType="textPersonName" />

        <TextView
            android:id="@+id/textView7"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/TFname"
            android:layout_alignStart="@+id/TFname"
            android:layout_below="@+id/TFname"
            android:layout_marginTop="23dp"
            android:text="Email" />

        <EditText
            android:id="@+id/TFemail"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/textView7"
            android:layout_alignStart="@+id/textView7"
            android:layout_below="@+id/textView7"
            android:ems="10"
            android:inputType="textPersonName" />

        <TextView
            android:id="@+id/textView8"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/TFemail"
            android:layout_alignStart="@+id/TFemail"
            android:layout_below="@+id/TFemail"
            android:layout_marginTop="26dp"
            android:text="Username" />

        <EditText
            android:id="@+id/TFuname"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/textView8"
            android:layout_alignStart="@+id/textView8"
            android:layout_below="@+id/textView8"
            android:ems="10"
            android:inputType="textPersonName" />

        <TextView
            android:id="@+id/textView9"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/TFuname"
            android:layout_alignStart="@+id/TFuname"
            android:layout_below="@+id/TFuname"
            android:layout_marginTop="25dp"
            android:text="Password 1st" />

        <EditText
            android:id="@+id/TFpass1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/textView9"
            android:layout_alignStart="@+id/textView9"
            android:layout_below="@+id/textView9"
            android:ems="10"
            android:inputType="textPassword" />

        <TextView
            android:id="@+id/textView10"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/TFpass2"
            android:layout_alignStart="@+id/TFpass2"
            android:layout_below="@+id/TFpass1"
            android:layout_marginTop="23dp"
            android:text="Password 2nd" />

        <EditText
            android:id="@+id/TFpass2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="textPassword"
            android:layout_below="@+id/textView10"
            android:layout_alignLeft="@+id/TFpass1"
            android:layout_alignStart="@+id/TFpass1" />

        <Button
            android:id="@+id/Bregister"
            style="@style/Widget.AppCompat.Button.Colored"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignEnd="@+id/textView10"
            android:layout_alignRight="@+id/textView10"
            android:layout_below="@+id/TFpass2"
            android:layout_marginTop="63dp"
            android:onClick="onRegisterClick"
            android:text="Register" />

    </RelativeLayout>
</ScrollView>


- Contact.java

package list.kpop;

public class Contact {
    String name, email, uname, pass;
    public void setName (String name)
    {
        this.name=name;
    }
    public String getName()
    {
        return this.name;
    }
    public void setEmail (String email)
    {
        this.email=email;
    }
    public String getEmail()
    {
        return this.email;
    }
    public void setUname (String uname)
    {
        this.uname=uname;
    }
    public String getUname()
    {
        return this.uname;
    }
    public void setPass (String pass)
    {
        this.pass=pass;
    }
    public String getPass()
    {
        return this.pass;
    }
}





- DatabaseHelper.java

package list.kpop;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper {
    private static final int DATABASE_VERSION = 1;
    private static final String DATABASE_NAME = "contacts";
    private static final String TABLE_NAME = "contacts";
    private static final String COLUMN_ID = "id";
    private static final String COLUMN_NAME = "name";
    private static final String COLUMN_EMAIL = "email";
    private static final String COLUMN_UNAME = "uname";
    private static final String COLUMN_PASS = "pass";
    SQLiteDatabase db;

    private static final String TABLE_CREATE = "create table contacts(id integer primary key not null, " +
            "name text not null, email text not null, uname text not null,pass text not null);";
    public DatabaseHelper(Context context) {
        super(context, DATABASE_NAME, null, DATABASE_VERSION);
    }


    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(TABLE_CREATE);
        this.db = db;
    }

    public void insertContact(list.kpop.Contact c) {
        db = this.getWritableDatabase();
        String query = "select * from contacts ";
        Cursor cursor = db.rawQuery(query, null);
        int count = cursor.getCount();
        ContentValues values = new ContentValues();
        values.put(COLUMN_ID, count);
        values.put(COLUMN_NAME, c.getName());
        values.put(COLUMN_EMAIL, c.getEmail());
        values.put(COLUMN_UNAME, c.getUname());
        values.put(COLUMN_PASS, c.getPass());
        db.insert(TABLE_NAME, null, values);
        db.close();
    }

    public String searchPass(String uname) {
        db = this.getReadableDatabase();
        String query = "select uname, pass from " + TABLE_NAME;
        Cursor cursor = db.rawQuery(query, null);
        String a, b;
        b = "not found";
        if (cursor.moveToFirst()) {
            do {
                a = cursor.getString(0);
                if (a.equals(uname)) {
                    b = cursor.getString(1);
                    break;
                }
            }
            while (cursor.moveToNext());
        }
        return b;
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        String query = "DROP TABLE IF EXISTS " + TABLE_NAME;
        db.execSQL(query);
        this.onCreate(db);
    }
}



- Register.java


package list.kpop;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;


public class Register extends Activity {
    DatabaseHelper helper = new DatabaseHelper(this);
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.register);
    }
    public void onRegisterClick (View v)
    {
        if (v.getId()==R.id.Bregister)
        {
            EditText name = (EditText)findViewById(R.id.TFname);
            EditText email = (EditText)findViewById(R.id.TFemail);
            EditText uname = (EditText)findViewById(R.id.TFuname);
            EditText pass1 = (EditText)findViewById(R.id.TFpass1);
            EditText pass2 = (EditText)findViewById(R.id.TFpass2);

            String namestr = name.getText().toString();
            String emailstr = email.getText().toString();
            String unamestr = uname.getText().toString();
            String pass1str = pass1.getText().toString();
            String pass2str = pass2.getText().toString();

            if (namestr.length()==0)
            {
                name.setError("Nama kosong, mohon di isi");
            }

            else if (emailstr.length()==0)
            {
                email.setError("Email kosong, mohon di isi");
            }

            else if (unamestr.length()==0)
            {
                uname.setError("username kosong, mohon di isi");
            }
            else if (!pass1str.equals(pass2str))
            {
                Toast.makeText(Register.this, "Password Unmatch",
                        Toast.LENGTH_SHORT).show();
            }

            else{
                list.kpop.Contact c = new list.kpop.Contact();
                c.setName(namestr);
                c.setEmail(emailstr);
                c.setUname(unamestr);
                c.setPass(pass1str);
                helper.insertContact(c);
                finish();
                Toast.makeText(Register.this,
                        "Username & password berhasil dibuat",
                        Toast.LENGTH_SHORT).show();
            }
        }
    }
}



b. Design Listview

-activity_listkorea.xml


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:background="@drawable/love"
    tools:context=".listkorea">

    <ListView
        android:id="@+id/listView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    </ListView>


</LinearLayout>


- listkorea.java


package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class listkorea extends AppCompatActivity {

    ListView LV;
    String[] group = {"BTS", "BLACK PINK", "BLOCK B", "IKON", "ITZY",
            "KNK", "MAMAMOO", "MONSTA X", "RED VELVET", "SF9"};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_listkorea);
        LV = (ListView) findViewById(R.id.listView1);
        ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, group);
        LV.setAdapter(adapter);
        LV.setOnItemClickListener(new AdapterView.OnItemClickListener() {

            @Override
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
                                    long arg3) {
// TODO Auto-generated method stub
                int itemke = arg2;
                String itemText = (String) LV.getItemAtPosition(arg2);
                Toast.makeText(getBaseContext(), "Anda Memilih " + itemText, Toast.LENGTH_LONG).show();

                if (itemText.equals("BTS")) {
                    Intent BTSIntent = new Intent(arg0.getContext(), bts.class);
                    startActivityForResult(BTSIntent, 0);
                } else if (itemText.equals("BLACK PINK")) {
                    Intent BLACKPINKIntent = new Intent(arg0.getContext(), blackpink.class);
                    startActivityForResult(BLACKPINKIntent, 0);
                } else if (itemText.equals("BLOCK B")) {
                    Intent BLOCKBIntent = new Intent(arg0.getContext(), blockb.class);
                    startActivityForResult(BLOCKBIntent, 0);
                } else if (itemText.equals("IKON")) {
                    Intent IKONIntent = new Intent(arg0.getContext(), ikon.class);
                    startActivityForResult(IKONIntent, 0);
                } else if (itemText.equals("ITZY")) {
                    Intent ITZYIntent = new Intent(arg0.getContext(), itzy.class);
                    startActivityForResult(ITZYIntent, 0);
                } else if (itemText.equals("KNK")) {
                    Intent KNKIntent = new Intent(arg0.getContext(), knk.class);
                    startActivityForResult(KNKIntent, 0);
                }  else if (itemText.equals("MAMAMOO")) {
                    Intent MAMAMOOIntent = new Intent(arg0.getContext(), mamamoo.class);
                    startActivityForResult(MAMAMOOIntent, 0);
                }  else if (itemText.equals("MONSTA X")) {
                    Intent MONSTAXIntent = new Intent(arg0.getContext(), monstax.class);
                    startActivityForResult(MONSTAXIntent, 0);
                }  else if (itemText.equals("RED VELVET")) {
                    Intent REDVELVETIntent = new Intent(arg0.getContext(), redvelvet.class);
                    startActivityForResult(REDVELVETIntent, 0);
                }  else if (itemText.equals("SF9")) {
                    Intent SF9Intent = new Intent(arg0.getContext(), sf9.class);
                    startActivityForResult(SF9Intent, 0);
                }
            }

        });

    }
}



- bts.java


package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class bts extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bts);
        }
}


- Hasil RUN





- Lampiran Lembar Soal UAS



Demikian postingan kali ini, semoga bermanfaat, atas salah dan kurangnya saya mohon maaf.
Terimakasih. 

Wassalamualaikum Wr. Wb.


Sabtu, 02 November 2019

TUGAS/UTS/MOBILE_PROGRAMMING

TUGAS UTS MOBILE PROGRAMMING
APLIKASI LIST VIEW MENGGUNAKAN ANDROID STUDIO
"LIST GROUP KPOP"

Assalamu'alaikum Wr. Wb.

Pada kesempatan kali ini saya akan menjelaskan Program Aplikasi yang saya buat yang berkaitan dengan Android Studio. Pasti sudah tau kan apa itu Android Studio? Yaps ... benar sekali...
Android Studio adalah Integrated Development Enviroment (IDE) untuk sistem operasi Android, yang dibangun diatas perangkat lunak JetBrains IntelliJ IDEA dan didesain khusus untuk pengembangan Android. IDE ini merupakan pengganti dari Eclipse Android Development Tools (ADT) yang sebelumnya merupakan IDE utama untuk pengembangan aplikasi android. Seperti itu penjelasan singkat mengenai Android Studio. Nahh.. selanjutnya saya akan menjelaskan tentang Aplikasi yang saya buat menggunakan Android Studio dengan judul "List View Group KPOP". Kok KPOP kak.. pasti kakak KPOPers yaa??? yaaa kurang lebih seperti itu hehehehhe... Sooo Lanjuuuutt.. berikut penjelasan tentang aplikasi yang saya buat.

A. Deskripsi Project

Aplikasi List View "GROUP KPOP" saya buat untuk menampilkan daftar para member Group KPOP Boys & Girls, tidak lupa juga saya membuat menu login untuk masuk ke daftar listviewnya. Disini saya membuat 10 daftar nama group, yang mana ketika di klik salah satunya akan muncul penjelasan singkat mengenai latar belakang terbentuknya group tersebut beserta foto para membernya.

B. Desain Activity







C. XML Text

Activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:background="@drawable/kook"
    tools:context=".MainActivity">

    <TextView
        android:id="@+id/textView"
        android:layout_width="225dp"
        android:layout_height="61dp"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="30dp"
        android:text="GROUP KPOP"
        android:textAlignment="center"
        android:textColor="@android:color/black"
        android:textSize="30sp"
        android:textStyle="normal|bold" />

    <EditText
        android:id="@+id/username"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/textView"
        android:layout_alignParentStart="true"
        android:layout_alignParentLeft="true"
        android:layout_marginStart="6dp"
        android:layout_marginLeft="6dp"
        android:layout_marginTop="65dp"
        android:ems="10"
        android:hint="Username"
        android:inputType="textPersonName"/>

    <EditText
        android:id="@+id/password"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/username"
        android:layout_alignParentLeft="true"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:layout_marginStart="6dp"
        android:layout_marginLeft="6dp"
        android:layout_marginTop="30dp"
        android:ems="10"
        android:hint="Password"
        android:inputType="textPassword" />

    <Button
        android:id="@+id/btnLogin"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/password"
        android:layout_marginTop="50dp"
        android:text="Log In" />

</RelativeLayout>


Activity_listkorea.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:background="@drawable/love"
    tools:context=".listkorea">

    <ListView
        android:id="@+id/listView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    </ListView>


</LinearLayout>

Activity_bts.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitXY"
                    android:src="@drawable/bts" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="BTS GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="80dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member BTS"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                BTS merupakan salah satu group idol asal Korea Selatan yang memulai debutnya pada 13 Juni 2013 dengan single No More Dream. Single debut ini merupakan salah satu single dan album perdana BTS yang bertajuk 2 Cool 4 Skool.
                \n
                Saat ini member BTS terdiri dari 7 anggota yakni Jin, Suga, J-Hope, RM, Jimin, V dan Jungkook. Tiap personil BTS memiliki peran dan posisi masing-masing dalam grup. BTS masuk dalam label Big Hit Entertainment.
                \n
                Aliran genre musik yang dibawakan BTS adalah K-Pop, EDM, R and B dan hip hop. BTS termasuk boyband Korea terpopuler dan banyak meraih penghargaan musik nasional dan internasional."
                android:textAlignment="gravity"/>

        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_blackpink.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitXY"
                    android:src="@drawable/pink"
                    />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="BLACK PINK GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="50dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member BLACK PINK"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                Black Pink (Hangul: 블랙핑크), ditulis bergaya sebagai BLACKPINK atau BLΛƆKPIИK, adalah sebuah grup penyanyi perempuan Korea Selatan yang dibentuk oleh YG Entertainment, terdiri dari para anggota seperti Jisoo, Jennie, Rosé, dan Lisa.
                \n
                Grup ini debut pada tanggal 8 Agustus 2016, dengan single mereka berjudul Square One, yang menghasilkan Whistle, lagu nomor satu pertama mereka di Korea Selatan. Single ini juga menghasilkan Boombayah, single nomor satu pertama mereka di tangga lagu Billboard World Digital Songs, yang mendapat rekor sebagai video musik debut yang paling banyak ditonton oleh artis Korea. Dengan sukses komersial mereka di lima bulan pertama, mereka memperoleh New Artist of the Year di 31st Golden Disc Awards dan 26th Seoul Music Awards."

                android:textAlignment="gravity" />



        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_blockb.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitXY"
                    android:src="@drawable/block"
                    />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="BLOCK B GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="324dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="65dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member BLOCK B"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                Block B (블락비) adalah boy grup beranggotakan 7 orang yang dibentuk oleh Cho PD pada tahun 2011. Grup ini terdiri dari Zico (Leader), Taeil, B-Bomb, Ahn Jaehyo, U-Kwon, Kyung dan P.O. Block B resmi memulai debutnya pada tanggal 14 April 2011 dengan mengeluarkan single perdana berjudul “Do U Wanna B?”. Di awal debut, Block berada dibawah label New Stardom Entertainment. Tak berselang lama, Block B meluncurkan album mini pertama mereka bejudul ‘New Kids On The Block’ yang diluncurkan pada tanggal 23 Juni 2011."
                android:textAlignment="gravity"/>



        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_ikon.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitXY"
                    android:src="@drawable/ikon" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="IKON GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="80dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member IKON"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                iKon (Hangul: 아이콘), juga ditulis menjadi iKON, adalah grup idola pria asal Korea Selatan yang dibentuk pada tahun 2015 oleh YG Entertainment. Grup ini pertama kali diperkenalkan dalam acara realitas WIN: Who is Next sebagai Tim B. Setelah itu, Tim B muncul kembali dalam acara realitas survival berjudul Mix and Match, yang menentukan tujuh anggota formasi akhir dari iKON: B.I, Bobby, Jay, Ju-ne, Song, DK dan Chan.
                \n
                Grup ini merilis album studio debut mereka berjudul Welcome Back (2015), yang menduduki posisi teratas di Gaon Album Chart Korea Selatan dan menghasilkan singel-singel nomor satu seperti My Type, Apology dan Dumb and Dumber dan tiga singel yang menduduki posisi 10 teratas: Rhythm Ta, Airplane dan Anthem."
                android:textAlignment="gravity"/>



        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_itzy.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitXY"
                    android:src="@drawable/itzy" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="ITZY GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="80dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member ITZY"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                Itzy (Hangul: 있지; diformat menjadi ITZY) adalah sebuah grup musik wanita Korea Selatan yang dibentuk oleh JYP Entertainment, dan anggotanya terdiri dari Yeji, Lia, Ryujin, Chaeryeong, dan Yuna. Grup ini debut pada tanggal 12 Februari 2019, ditandai dengan perilisan album singel mereka, It'z Different."

                android:textAlignment="gravity"/>



        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_knk.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitCenter"
                    android:src="@drawable/knk" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="KNK GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="80dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member KNK"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                KNK (Hangul: 크나큰; RR: ''Keunakeun''; lit. great or to be great) adalah boyband asal Korea Selatan yang beranggotakan lima orang dan dibentuk oleh YNB Entertainment. KNK merupakan singkatan dari K-pop knock, yang berarti mengetuk pintu dunia K-pop dengan musik mereka. Mereka menggelar showcase perdana mereka pada 29 Februari, 2016 dan secara resmi merilis album perdana mereka berjudul Knock pada tanggal 3 Maret, 2016.
                \n
                KNK beranggotakan Park Seoham, Jeong Inseong, Kim Jihun, Oh Heejun, dan Lee Dongwon. Anggota awal Kim Youjin hengkang pada tanggal 10 September, 2018. Lee Dongwon menggantikannya pada tanggal 20 Desember, 2018."

                android:textAlignment="gravity"/>


        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_mamamoo.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitCenter"
                    android:src="@drawable/mamamoo" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="MAMAMOO GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="65dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member MAMAMOO"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                Mamamoo (Hangul: 마마무), terkadang ditulis sebagai MAMAMOO, adalah grup vokal wanita asal Korea Selatan yang dibentuk oleh Rainbow Bridge World (sebelumnya WA Entertainment) pada tahun 2014. Grup ini secara resmi memulai debutnya pada tanggal 19 Juni 2014 dengan lagu Mr. Ambiguous. Debut mereka dianggap oleh beberapa kritikus sebagai salah satu debut K-pop terbaik tahun 2014. Mereka diakui untuk konsep retro, jazz, dan R and B dan penampilan vokal yang kuat. Anggota Solar, Moonbyul, Wheein, dan Hwasa"

                android:textAlignment="gravity"/>


        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_monstax.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitCenter"
                    android:src="@drawable/monstax" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="MONSTA X GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="65dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member MONSTA X"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                Monsta X (bahasa Korea: 몬스타엑스; juga ditulis sebagai MONSTA X) adalah boy band Korea Selatan yang dibentuk oleh Starship Entertainment melalui program survival NO.MERCY di Mnet pada tahun 2015. Grup ini pada awalnya memiliki tujuh anggota: Shownu, Wonho, Minhyuk, Kihyun, Hyungwon, Jooheon dan I.M. Wonho keluar pada bulan Oktober 2019.
                \n
                Monsta X debut pada tanggal 14 Mei 2015 dengan album mini pertama mereka Trespass. Pada Maret 2017, Monsta X merilis album studio pertama mereka dan bagian akhir dari seri The Clan, The Clan Pt. 2.5: The Final Chapter, yang terdiri dari album mini ketiga dan keempat mereka, The Clan Pt. 1 Lost dan The Clan Pt. 2 Guilty, keduanya dirilis pada 2016. Pada Mei 2017, Monsta X menandatangani kontrak dengan Mercury Tokyo dan debut dengan lagu Hero di Jepang."
                android:textAlignment="gravity"/>


        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_redvelvet.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitCenter"
                    android:src="@drawable/redvelvet" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="RED VELVET GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="65dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member RED VELVET"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                Red Velvet (Hangul: 레드벨벳) adalah grup musik Korea Selatan yang dibentuk oleh S.M. Entertainment pada tahun 2014. Kelompok ini memulai karier mereka pada tanggal 1 Agustus 2014 dengan merilis single digital Happiness lalu dua bulan kemudian mereka merilis single digital yang kedua Be Natural dengan 4 anggota yaitu: Irene, Seulgi, Wendy, dan Joy. Pada Maret 2015, Red Velvet menambah satu anggota yaitu Yeri. Tidak lama setelah penambahan anggota, Red Velvet merilis Mini Album Ice Cream Cake (2015). Setelah itu mereka juga merilis Full Album mereka yang pertama The Red (2015). Pada tahun 2016, mereka mengeluarkan Mini Album yang ke-dua The Velvet (2016) dan Mini Album yang ke-tiga Russian Roulette (2016). Pada tahun 2017, mereka merilis Mini Album ke-empat Rookie (2017), dan Mini Album ke-lima The Red Summer (2017) serta Full Album ke-dua Perfect Velvet (2017)."
                android:textAlignment="gravity"/>


        </LinearLayout>
    </ScrollView>

</LinearLayout>


Activity_sf9.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/white"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:adjustViewBounds="true"
                    android:scaleType="fitCenter"
                    android:src="@drawable/sf9" />

            </FrameLayout>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginTop="15dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="30dp"
                android:text="SF9 GROUP"
                android:textColor="@android:color/black"
                android:textSize="32sp" />

            <TextView
                android:layout_width="331dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="80dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="16dp"
                android:text="About Member SF9"
                android:textColor="@android:color/black"
                android:textSize="20sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:text="
                SF9 (bahasa Korea: 에스에프나인; singkatan dari Sensational Feeling 9) adalah boy group asal Korea Selatan yang dibentuk oleh FNC Entertainment. SF9 adalah dance boy group pertama dari perusahaan tersebut. SF9 debut pada tanggal 5 Oktober 2016 dengan merilis album singel pertama mereka Feeling Sensation. Anggota SF9 yaitu Inseong, Youngbin, Dawon, Jaeyoon, Rowoon, Zuho, Taeyang, Hwiyoung, dan Chani"

                android:textAlignment="gravity"/>


        </LinearLayout>
    </ScrollView>

</LinearLayout>


D. XML Graphic

Activity_bts.xml


Activity_blackpink.xml


Activity_blockb.xml



Activity_ikon.xml


Activity_itzy.xml


Activity_knk.xml


Activity_mamamoo.xml


Activity_monstax.xml


Activity_redvelvet.xml



Activity_sf9.xml


E. Source Coding (Java)

MainActivity.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
    EditText username, password;
    Button btnLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        username = (EditText) findViewById(R.id.username);
        password = (EditText) findViewById(R.id.password);
        btnLogin = (Button) findViewById(R.id.btnLogin);

        btnLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                String usernameKey = username.getText().toString();
                String passwordKey = password.getText().toString();

                if (usernameKey.equals("rubi") && passwordKey.equals("1710")) {
                    //jika login berhasil
                    Toast.makeText(getApplicationContext(), "LOGIN SUKSES",
                            Toast.LENGTH_SHORT).show();
                    Intent intent = new Intent(MainActivity.this, listkorea.class);
                    MainActivity.this.startActivity(intent);
                    finish();

                } else {
                    //jika login gagal
                    AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
                    builder.setMessage("Username atau Password Anda salah!")
                            .setNegativeButton("Retry", null).create().show();


                }

            }


        });

    }
}


listkorea.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class listkorea extends AppCompatActivity {

    ListView LV;
    String[] group = {"BTS", "BLACK PINK", "BLOCK B", "IKON", "ITZY",
            "KNK", "MAMAMOO", "MONSTA X", "RED VELVET", "SF9"};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_listkorea);
        LV = (ListView) findViewById(R.id.listView1);
        ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, group);
        LV.setAdapter(adapter);
        LV.setOnItemClickListener(new AdapterView.OnItemClickListener() {

            @Override
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
                                    long arg3) {
// TODO Auto-generated method stub
                int itemke = arg2;
                String itemText = (String) LV.getItemAtPosition(arg2);
                Toast.makeText(getBaseContext(), "Anda Memilih " + itemText, Toast.LENGTH_LONG).show();

                if (itemText.equals("BTS")) {
                    Intent BTSIntent = new Intent(arg0.getContext(), bts.class);
                    startActivityForResult(BTSIntent, 0);
                } else if (itemText.equals("BLACK PINK")) {
                    Intent BLACKPINKIntent = new Intent(arg0.getContext(), blackpink.class);
                    startActivityForResult(BLACKPINKIntent, 0);
                } else if (itemText.equals("BLOCK B")) {
                    Intent BLOCKBIntent = new Intent(arg0.getContext(), blockb.class);
                    startActivityForResult(BLOCKBIntent, 0);
                } else if (itemText.equals("IKON")) {
                    Intent IKONIntent = new Intent(arg0.getContext(), ikon.class);
                    startActivityForResult(IKONIntent, 0);
                } else if (itemText.equals("ITZY")) {
                    Intent ITZYIntent = new Intent(arg0.getContext(), itzy.class);
                    startActivityForResult(ITZYIntent, 0);
                } else if (itemText.equals("KNK")) {
                    Intent KNKIntent = new Intent(arg0.getContext(), knk.class);
                    startActivityForResult(KNKIntent, 0);
                }  else if (itemText.equals("MAMAMOO")) {
                    Intent MAMAMOOIntent = new Intent(arg0.getContext(), mamamoo.class);
                    startActivityForResult(MAMAMOOIntent, 0);
                }  else if (itemText.equals("MONSTA X")) {
                    Intent MONSTAXIntent = new Intent(arg0.getContext(), monstax.class);
                    startActivityForResult(MONSTAXIntent, 0);
                }  else if (itemText.equals("RED VELVET")) {
                    Intent REDVELVETIntent = new Intent(arg0.getContext(), redvelvet.class);
                    startActivityForResult(REDVELVETIntent, 0);
                }  else if (itemText.equals("SF9")) {
                    Intent SF9Intent = new Intent(arg0.getContext(), sf9.class);
                    startActivityForResult(SF9Intent, 0);
                }
            }

        });

    }
}


bts.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class bts extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bts);
        }
}

blackpink.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class blackpink extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_blackpink);
        }
}

blockb.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class blockb extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_blockb);
        }
}

ikon.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class ikon extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ikon);
        }
}

itzy.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class itzy extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_itzy);
        }
}

knk.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class knk extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_knk);
        }
}

mamamoo.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class mamamoo extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mamamoo);
        }
}

monstax.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class monstax extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_monstax);
        }
}

redvelvet.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class redvelvet extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_redvelvet);
        }
}

sf9.java
package list.kpop;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class sf9 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sf9);
        }
}

Hasil RUN pada emulator




Hasil RUN pada HP Android



Lampiran :

Lembar jawaban UTS MOBILE PROGRAMMING



Demikian postingan saya kali ini, saya menyadari masih banyak kekurangan di dalamnya, maka dari itu saya mohon kritikan dan saran yang membangun dari para pembaca tercintaaahh, untuk para KPOPers saya mohon maaf apabila deskripsi mengenai Idol kalian kurang pas, karena ini hanya sebagai latihan dan tugas UTS dari dosen saya, hehehe.

Terimakasih.
Wassalamualaikum Wr. Wb.



TUGAS/UAS/MOBILE_PROGRAMMING

TUGAS UAS MOBILE PROGRAMMING MEMBUAT APLIKASI TERKONEKSI DATABASE SQLITE PADA ANDROID STUDIO "LIST GROUP KPOP" Assalamuala...