Langsung ke konten utama

Postingan

Menampilkan postingan dari April, 2018

Example Alert on Android Studio

Simple Alert Button toast , alertdialog , customalertdialog ; @Override protected void onCreate (Bundle savedInstanceState) {     super .onCreate(savedInstanceState) ;     setContentView(R.layout. activity_massage_view ) ;     toast = findViewById(R.id. toast ) ;     alertdialog = findViewById(R.id. alertdialog ) ;     customalertdialog = findViewById(R.id. customalertdialog ) ;     toast .setOnClickListener( new View.OnClickListener() {     @Override     public void onClick (View v) {         Toast. makeText (MassageView. this, "My Name is Cecep" , Toast. LENGTH_LONG ).show() ;     } }) ;

Linear Layout on Android Studio

Example of Linear Layout on Android Studio This module are include with : Padding and Orientation xml version= "1.0" encoding= "utf-8" ?> 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 :orientation= "vertical" android :padding= "10dp" tools :context= ".Login" >