Membuat Client Server Part 12 pemesanan ruangan karaoke
LANJUTAN PROJECT PEMESANAN KARAOKE
<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:background="@drawable/back3"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".About" >
</RelativeLayout>
<AbsoluteLayout 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: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/back3"
tools:context=".Menu_utama" >
<TextView
android:id="@+id/textView1" v
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="67dp"
android:layout_y="20dp"
android:text="MENU UTAMA"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/Button03"
android:layout_width="105dp"
android:layout_height="112dp"
android:layout_marginTop="68dp"
android:layout_x="2dp"
android:layout_y="243dp"
android:background="@drawable/about" />
<Button
android:id="@+id/Button02"
android:layout_width="105dp"
android:layout_height="112dp"
android:layout_marginTop="68dp"
android:layout_x="15dp"
android:layout_y="88dp"
android:background="@drawable/rm" />
<Button
android:id="@+id/about"
android:layout_width="105dp"
android:layout_height="112dp"
android:layout_marginTop="68dp"
android:layout_x="160dp"
android:layout_y="88dp"
android:background="@drawable/profil" />
<Button
android:id="@+id/Button01"
android:layout_width="102dp"
android:layout_height="111dp"
android:layout_marginTop="68dp"
android:layout_x="178dp"
android:layout_y="249dp"
android:background="@drawable/gss" />
</AbsoluteLayout>
<AbsoluteLayout 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: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/back3"
tools:context=".Menu_utama" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="67dp"
android:layout_y="20dp"
android:text="MENU UTAMA"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/Button03"
android:layout_width="105dp"
android:layout_height="112dp"
android:layout_marginTop="68dp"
android:layout_x="2dp"
android:layout_y="243dp"
android:background="@drawable/about" />
<Button
android:id="@+id/Button02"
android:layout_width="105dp"
android:layout_height="112dp"
android:layout_marginTop="68dp"
android:layout_x="15dp"
android:layout_y="88dp"
android:background="@drawable/rm" />
<Button
android:id="@+id/about"
android:layout_width="105dp"
android:layout_height="112dp"
android:layout_marginTop="68dp"
android:layout_x="160dp"
android:layout_y="88dp"
android:background="@drawable/profil" />
<Button
android:id="@+id/Button01"
android:layout_width="102dp"
android:layout_height="111dp"
android:layout_marginTop="68dp"
android:layout_x="178dp"
android:layout_y="249dp"
android:background="@drawable/gss" />
</AbsoluteLayout>
<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: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/back3"
tools:context=".Menu_utama" >
<Button
android:id="@+id/Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/small"
android:layout_marginLeft="60dp"
android:layout_marginTop="20dp"
android:background="@drawable/gss"
android:text="Large" />
<Button
android:id="@+id/small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginTop="60dp"
android:layout_toLeftOf="@+id/medium"
android:background="@drawable/gss"
android:text="Small" />
<Button
android:id="@+id/medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/Large"
android:layout_marginLeft="52dp"
android:layout_toRightOf="@+id/Large"
android:background="@drawable/gss"
android:text="Medium" />
<Button
android:id="@+id/VIP"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/Large"
android:layout_alignBottom="@+id/Large"
android:layout_alignLeft="@+id/medium"
android:background="@drawable/gss"
android:text="VIP" />
</RelativeLayout>
package com.example.ayokaraoke;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class Menu_utama extends Activity implements OnClickListener{
Button room, about, profil;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.menu_utama);
room = ((Button)findViewById(R.id.Button02));
about = ((Button)findViewById(R.id.about));
profil = ((Button)findViewById(R.id.about));
room.setOnClickListener(new View.OnClickListener() {
public void onClick(View View) {
// TODO Auto-generated method stub
Intent pindah = new Intent(Menu_utama.this,Room.class);
startActivity(pindah);
}
});
about.setOnClickListener(new View.OnClickListener() {
public void onClick(View View) {
// TODO Auto-generated method stub
Intent pindah = new Intent(Menu_utama.this,About.class);
startActivity(pindah);
}
});
profil.setOnClickListener(new View.OnClickListener() {
public void onClick(View View) {
// TODO Auto-generated method stub
Intent pindah = new Intent(Menu_utama.this, Profil.class);
startActivity(pindah);
}
});
}
@Override
public boolean onCreateOptionsMenu(android.view.Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_utama, menu);
return true;
}
public void onClick(View arg0) {
// TODO Auto-generated method stub
}
}
package com.example.ayokaraoke;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class Profil extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.profil);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.profil, menu);
return true;
}
}
package com.example.ayokaraoke;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.ImageView;
public class Awal extends Activity {
protected static final Intent Awal = null;
ImageView dr;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.awal);
dr = (ImageView) findViewById(R.id.splashimg);
dr.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
Intent pindah=new Intent(getApplicationContext(),Menu_utama.class);
startActivity(pindah);
// TODO Auto-generated method stub
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.awal, menu);
return true;
}
}
Komentar
Posting Komentar