azmanbarraquias / Tools

0 stars 0 forks source link

Test #1

Open azmanbarraquias opened 2 years ago

azmanbarraquias commented 2 years ago

123

azmanbarraquias commented 2 years ago

import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.ContextCompat;

import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.CountDownTimer; import android.view.View; import android.widget.ProgressBar; import android.widget.TextView;

import com.google.android.material.snackbar.Snackbar;

public class MainActivity extends AppCompatActivity {

private ProgressBar mProgressBar;
private ProgressBar mCustomProgressBar;
private int progress = 0;

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

    mProgressBar = findViewById(R.id.progressBar);
    mCustomProgressBar = findViewById(R.id.CustomProgressBar);

    CountDownTimer count = new CountDownTimer(5000, 1000) {
        @Override
        public void onTick(long l) {
            progress++;

            mProgressBar.setProgress((int) progress * 100 / (5000 / 1000));
            mCustomProgressBar.setProgress((int) progress * 100 / (5000 / 1000));

            // Get the Drawable custom_progressbar
            Drawable draw = ContextCompat.getDrawable(getApplicationContext(), R.drawable.custom_progressbar);
            // set the drawable as progress drawable
            mCustomProgressBar.setProgressDrawable(draw);

        }

        @Override
        public void onFinish() {

            Snackbar.make(findViewById(R.id.progressBar_layout),"Progress Finished",Snackbar.LENGTH_SHORT).show();

        }
    };
    count.start();

}

}

azmanbarraquias commented 2 years ago

import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.ContextCompat;

import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.CountDownTimer; import android.view.View; import android.widget.ProgressBar; import android.widget.TextView;

import com.google.android.material.snackbar.Snackbar;

public class MainActivity extends AppCompatActivity {

private ProgressBar mProgressBar;
private ProgressBar mCustomProgressBar;
private int progress = 0;

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

    mProgressBar = findViewById(R.id.progressBar);
    mCustomProgressBar = findViewById(R.id.CustomProgressBar);

    CountDownTimer count = new CountDownTimer(5000, 1000) {
        @Override
        public void onTick(long l) {
            progress++;

            mProgressBar.setProgress((int) progress * 100 / (5000 / 1000));
            mCustomProgressBar.setProgress((int) progress * 100 / (5000 / 1000));

            // Get the Drawable custom_progressbar
            Drawable draw = ContextCompat.getDrawable(getApplicationContext(), R.drawable.custom_progressbar);
            // set the drawable as progress drawable
            mCustomProgressBar.setProgressDrawable(draw);

        }

        @Override
        public void onFinish() {

            Snackbar.make(findViewById(R.id.progressBar_layout),"Progress Finished",Snackbar.LENGTH_SHORT).show();

        }
    };
    count.start();

}

}

azmanbarraquias commented 2 years ago

Loading bar Up

azmanbarraquias commented 2 years ago

IMG_20220624_125720.jpg

azmanbarraquias commented 2 years ago

Screenshot_2022-06-24-12-58-21-647_com.as.androidstudiotutorials.jpg

Screenshot_2022-06-24-12-58-08-668_com.as.androidstudiotutorials.jpg

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/progressBar_layout" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">

<ProgressBar
    android:id="@+id/progressBar"
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="32dp"
    android:layout_marginTop="32dp"
    android:layout_marginEnd="32dp"
    app:layout_constraintBottom_toTopOf="@+id/CustomProgressBar"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<ProgressBar
    android:id="@+id/CustomProgressBar"
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="32dp"
    android:layout_marginEnd="32dp"
    android:progressDrawable="@drawable/custom_progressbar"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="1.0"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/progressBar" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago
azmanbarraquias commented 2 years ago

Screenshot_2022-06-24-13-19-04-922_com.as.androidstudiotutorials.jpg

azmanbarraquias commented 2 years ago

Tbf <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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="#3DDC84" tools:context=".MainActivity">

<fragment
    android:id="@+id/fragment1"
    android:name="YOUR_PACKAGE_NAME.FirstFragment"
    android:layout_width="0dp"
    android:layout_height="0dp"
    app:layout_constraintBottom_toTopOf="@+id/fragment2"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    tools:layout="@layout/fragment_first"/>

<fragment
    android:id="@+id/fragment2"
    android:name="YOUR_PACKAGE_NAME.SecondFragment"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_marginTop="8dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/fragment1"
    tools:layout="@layout/fragment_second"/>

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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="#A5DBFC" tools:context=".FirstFragment">

<EditText
    android:id="@+id/editText"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="24dp"
    android:layout_marginEnd="24dp"
    android:background="#FFFFFF"
    android:gravity="start|top"
    android:hint="Enter some text"
    android:inputType="textMultiLine"
    android:padding="8dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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="#FFE55F" tools:context=".SecondFragment">

<TextView
    android:id="@+id/textView"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="24dp"
    android:layout_marginEnd="24dp"
    android:background="#FFFFFF"
    android:textSize="18sp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

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

}

}

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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="#FFE55F" tools:context=".SecondFragment">

<TextView
    android:id="@+id/textView"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="24dp"
    android:layout_marginEnd="24dp"
    android:background="#FFFFFF"
    android:textSize="18sp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

Screenshot_2022-06-24-13-24-18-466_com.as.androidstudiotutorials.jpg

Screenshot_2022-06-24-13-24-16-204_com.as.androidstudiotutorials.jpgScreenshot_2022-06-24-13-24-12-142_com.as.androidstudiotutorials.jpg

azmanbarraquias commented 2 years ago

IMG_20220701_093323.jpg

IMG_20220701_091924.jpg

Screenshot_2022-07-01-09-18-18-314_com.as.androidstudiotutorials.jpg

azmanbarraquias commented 2 years ago

IMG_20220702_072911.jpgIMG_20220702_072809.jpgIMG_20220702_072740.jpgIMG_20220702_072722.jpgIMG_20220702_072639.jpgScreenshot_2022-07-02-07-26-26-015_com.as.androidstudiotutorials.jpgScreenshot_2022-07-02-07-26-17-940_com.as.androidstudiotutorials.jpgScreenshot_2022-07-02-07-26-15-384_com.as.androidstudiotutorials.jpgScreenshot_2022-07-02-07-26-11-934_com.as.androidstudiotutorials.jpgScreenshot_2022-07-02-07-25-37-168_com.as.androidstudiotutorials.jpgScreenshot_2022-07-02-07-25-34-111_com.as.androidstudiotutorials.jpgIMG_20220702_072526.jpgScreenshot_2022-07-02-07-25-14-631_com.as.androidstudiotutorials.jpgIMG_20220702_072448.jpgIMG_20220702_072428.jpgScreenshot_2022-07-02-07-24-07-264_com.as.androidstudiotutorials.jpgIMG_20220702_072402.jpgIMG_20220702_072345.jpgScreenshot_2022-07-02-07-23-34-700_com.as.androidstudiotutorials.jpgScreenshot_2022-07-02-07-22-58-544_com.as.androidstudiotutorials.jpgIMG_20220702_072313.jpgScreenshot_2022-07-02-07-22-58-544_com.as.androidstudiotutorials.jpgScreenshot_2022-07-02-07-22-40-772_com.as.androidstudiotutorials.jpgIMG_20220702_072232.jpgIMG_20220702_072112.jpgIMG_20220702_072112.jpgIMG_20220702_071813.jpgIMG_20220702_071746.jpgIMG_20220702_071844.jpgIMG_20220702_071923.jpgIMG_20220702_071902.jpgIMG_20220702_072042.jpgIMG_20220702_071902.jpgIMG_20220702_072042.jpgIMG_20220702_071957.jpg

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout 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">

<androidx.constraintlayout.widget.ConstraintLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <Button
        android:id="@+id/button"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="32dp"
        android:layout_marginTop="16dp"
        android:layout_marginEnd="32dp"
        android:background="@drawable/custom_button"
        android:padding="20dp"
        android:text="Expand BottomSheet"
        android:textSize="18sp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

<RelativeLayout
    android:id="@+id/design_bottom_sheet"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#CC77F6"
    app:behavior_hideable="true"
    app:behavior_peekHeight="50dp"
    app:layout_behavior="@string/bottom_sheet_behavior">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="This is a Example BottomSheet"
        android:textColor="#FFFFFF"
        android:textSize="20sp"></TextView>

</RelativeLayout>

</androidx.coordinatorlayout.widget.CoordinatorLayout>

azmanbarraquias commented 2 years ago

import android.os.Bundle; import android.view.View; import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.bottomsheet.BottomSheetBehavior;

public class MainActivity extends AppCompatActivity {

private BottomSheetBehavior<View> bottomSheetBehavior;
private View bottomSheet;

private Button button;
private boolean state;

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

    bottomSheet = findViewById(R.id.design_bottom_sheet);
    bottomSheetBehavior = BottomSheetBehavior.from(bottomSheet);
    button = findViewById(R.id.button);

    state = true;

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

            if (state) {

                bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);

                state = false;
                button.setText("Collapse ButtonSheet");

            } else {

                bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);

                state = true;
                button.setText("Expand ButtonSheet");
            }

        }
    });

}

}

azmanbarraquias commented 2 years ago

^ button sheet

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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">

<com.google.android.material.bottomnavigation.BottomNavigationView
    android:id="@+id/bottomNavigationView"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:background="?android:attr/windowBackground"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:menu="@menu/button_navigation_items">

</com.google.android.material.bottomnavigation.BottomNavigationView>

<FrameLayout
    android:id="@+id/Frame_layout"
    android:layout_width="0dp"
    android:layout_height="0dp"
    app:layout_constraintBottom_toTopOf="@+id/bottomNavigationView"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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="#FFED8D" tools:context=".TabHome">

<Button
    android:id="@+id/button"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="32dp"
    android:layout_marginEnd="32dp"
    android:text="Click here"
    android:textSize="24sp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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="#BF98F6" tools:context=".TabStore">

<Button
    android:id="@+id/button"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="32dp"
    android:layout_marginEnd="32dp"
    android:text="Click here"
    android:textSize="24sp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/output_file" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FFA5A5" tools:context=".TabSetting">

<Button
    android:id="@+id/button"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="32dp"
    android:layout_marginEnd="32dp"
    android:text="Click here"
    android:textSize="24sp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

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

azmanbarraquias commented 2 years ago

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

azmanbarraquias commented 2 years ago

import android.os.Bundle; import android.view.MenuItem;

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.bottomnavigation.BottomNavigationView;

public class MainActivity extends AppCompatActivity {

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

    BottomNavigationView bottomNavigationView = findViewById(R.id.bottomNavigationView);

    // set default 
    setFragment(new TabHome());

    bottomNavigationView.setOnItemSelectedListener(new NavigationBarView.OnItemSelectedListener() {
        @Override
        public boolean onNavigationItemSelected(@NonNull MenuItem item) {

            int id = item.getItemId();

            if (id == R.id.home) {
                setFragment(new TabHome());

            } else if (id == R.id.store) {
                setFragment(new TabStore));

            } else if (id == R.id.setting) {
                setFragment(new TabSetting());

            }

            return true;
        }
    });

}
private void setFragment(Fragment fragment) {

        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.frame_layout, fragment)
                .commit();
}}
azmanbarraquias commented 2 years ago

import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.Toast;

import androidx.fragment.app.Fragment;

public class TabHome extends Fragment {

public TabHome() {
}

@Override
public View onCreateView(LayoutInflater inflater,
                         ViewGroup container,
                         Bundle savedInstanceState) {

    View view = LayoutInflater.from(getContext()).inflate(R.layout.tab_home, container, false);

    Button button = view.findViewById(R.id.button);
    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            Toast.makeText(getActivity(), "This is Home ", Toast.LENGTH_SHORT).show();
        }
    });

    return view;
}

}

azmanbarraquias commented 2 years ago

import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.Toast;

import androidx.fragment.app.Fragment;

public class TabStore extends Fragment {

public TabStore() {

}

@Override
public View onCreateView(LayoutInflater inflater,
                         ViewGroup container, Bundle savedInstanceState) {
    View view = LayoutInflater.from(getContext()).inflate(R.layout.tab_store, container, false);

    Button button = view.findViewById(R.id.button);
    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            Toast.makeText(getActivity(), "This is Store ", Toast.LENGTH_SHORT).show();
        }
    });

    return view;
}

}

azmanbarraquias commented 2 years ago

import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.Toast;

import androidx.fragment.app.Fragment;

public class TabSetting extends Fragment {

public TabSetting() {

}

@Override
public View onCreateView(LayoutInflater inflater,
                         ViewGroup container,
                         Bundle savedInstanceState) {
    View view = LayoutInflater.from(getContext()).inflate(R.layout.tab_setting, container, false);

    Button button = view.findViewById(R.id.button);
    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            Toast.makeText(getActivity(), "This is Setting ", Toast.LENGTH_SHORT).show();
        }
    });

    return view;
}

}

azmanbarraquias commented 2 years ago

Botttom navigation with fragments ^

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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:layout_margin="16dp" tools:context=".MainActivity">

<TextView
    android:id="@+id/textView"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:padding="8dp"
    android:text="@string/example_page"
    android:textAlignment="center"
    android:textSize="24sp"
    android:textStyle="bold"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<EditText
    android:id="@+id/editText"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="24dp"
    android:autofillHints="name"
    android:hint="@string/name"
    android:inputType="textPersonName"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView" />

<EditText
    android:id="@+id/editText1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:autofillHints="phone"
    android:hint="@string/phone_number"
    android:inputType="phone"
    android:digits="0123456789+"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/editText" />

<Button
    android:id="@+id/button"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="8dp"
    android:text="@string/submit"
    android:textColor="@color/white"
    app:layout_constraintEnd_toStartOf="@+id/button1"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/editText1" />

<Button
    android:id="@+id/button1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    android:text="@string/update"
    android:textColor="@color/white"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toEndOf="@+id/button"
    app:layout_constraintTop_toBottomOf="@+id/editText1" />

<Button
    android:id="@+id/button2"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:text="@string/delete"
    android:textColor="@color/white"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/button" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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:layout_margin="16dp" tools:context=".MainActivity">

<TextView
    android:id="@+id/textView"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:padding="8dp"
    android:text="@string/example_page"
    android:textAlignment="center"
    android:textSize="24sp"
    android:textStyle="bold"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<EditText
    android:id="@+id/editText"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="24dp"
    android:autofillHints="name"
    android:hint="@string/name"
    android:inputType="textPersonName"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView" />

<EditText
    android:id="@+id/editText1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:autofillHints="phone"
    android:hint="@string/phone_number"
    android:inputType="phone"
    android:digits="0123456789+"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/editText" />

<Button
    android:id="@+id/button"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="8dp"
    android:text="@string/submit"
    android:textColor="@color/white"
    app:layout_constraintEnd_toStartOf="@+id/button1"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/editText1" />

<Button
    android:id="@+id/button1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    android:text="@string/update"
    android:textColor="@color/white"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toEndOf="@+id/button"
    app:layout_constraintTop_toBottomOf="@+id/editText1" />

<Button
    android:id="@+id/button2"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:text="@string/delete"
    android:textColor="@color/white"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/button" />

</androidx.constraintlayout.widget.ConstraintLayout>

azmanbarraquias commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <LinearLayout 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:layout_margin="16dp" android:orientation="vertical" tools:context=".MainActivity">

<TextView
    android:id="@+id/textView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="8dp"
    android:text="@string/example_page"
    android:textAlignment="center"
    android:textSize="24sp"
    android:textStyle="bold" />

<EditText
    android:id="@+id/editText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="24dp"
    android:autofillHints="name"
    android:hint="@string/name"
    android:inputType="textPersonName" />

<EditText
    android:id="@+id/editText2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:autofillHints="name"
    android:hint="@string/phone_number"
    android:inputType="phone"
    android:digits="0123456789+" />

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

    <Button
        android:id="@+id/button"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_weight="1"
        android:text="@string/submit"
        android:textColor="@color/white" />

    <Button
        android:id="@+id/button1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginTop="8dp"
        android:layout_weight="1"
        android:text="@string/update"
        android:textColor="@color/white" />
</LinearLayout>

<Button
    android:id="@+id/button3"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/delete"
    android:textColor="@color/white" />

azmanbarraquias commented 2 years ago

<?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:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="16dp" tools:context=".MainActivity">

<TextView
    android:id="@+id/textView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="8dp"
    android:text="@string/example_page"
    android:textAlignment="center"
    android:textSize="24sp"
    android:textStyle="bold" />

<EditText
    android:id="@+id/editText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/textView"
    android:layout_marginTop="24dp"
    android:autofillHints="name"
    android:hint="@string/name"
    android:inputType="textPersonName" />

<EditText
    android:id="@+id/editText2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/editText"
    android:layout_marginTop="8dp"
    android:autofillHints="name"
    android:hint="@string/phone_number"
    android:inputType="phone"
    android:digits="0123456789+"/>

<Button
    android:id="@+id/button"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_below="@id/editText2"
    android:layout_alignParentStart="true"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="16dp"
    android:layout_toStartOf="@id/button2"
    android:text="@string/submit"
    android:textColor="@color/white" />

<Button
    android:id="@+id/button2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/editText2"
    android:layout_alignParentEnd="true"
    android:layout_marginTop="8dp"
    android:text="@string/update"
    android:textColor="@color/white" />

<Button
    android:id="@+id/button3"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/button"
    android:layout_alignParentEnd="true"
    android:layout_marginTop="8dp"
    android:text="@string/delete"
    android:textColor="@color/white" />

azmanbarraquias commented 2 years ago

https://gist.github.com/codinginflow/1fbcb909118f906ac8cedd410e61c6cd

azmanbarraquias commented 2 years ago

Ultimate Java Part 1 Fundamentals Ultimate Java Part 2 Object-oriented Programming Ultimate Java Part 3 Advanced Topics

https://drive.google.com/drive/folders/1WvFrqgHEWVSMEmnUSTMuIJH9yMgjuA4K https://drive.google.com/drive/folders/1sLkq8FR7dVVrJK8lToBD2cyIxt2-vXZ1 https://drive.google.com/drive/folders/1VreQgc3aXLkcspHKE5s7yW2dOSgCwJS2