سلام
میشه به منم کمک کنید؟ مثلا می خوام به دکمه ای که داخل برنامه ام قرار دادم یه انیمیشن بدم به اینصورت که: مثلا اگه روش کلیک شد یک دور خودش بچرخه بعد از چند لحظه که چرخشش تموم شد بره اکتیویتی مورد نظر
میشه کمک کنید؟
این کد جاوامه
اینم کدهای xml اکتیویتی اصلی
میشه کمک کنید؟؟
میشه به منم کمک کنید؟ مثلا می خوام به دکمه ای که داخل برنامه ام قرار دادم یه انیمیشن بدم به اینصورت که: مثلا اگه روش کلیک شد یک دور خودش بچرخه بعد از چند لحظه که چرخشش تموم شد بره اکتیویتی مورد نظر
میشه کمک کنید؟
این کد جاوامه
کد پیاچپی:
package ir.kelidestan.dokme;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button b1 =(Button) findViewById(R.id.button1);
Button b2=(Button) findViewById(R.id.button2);
b1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent next1 = new Intent(MainActivity.this, pageDo.class);
startActivity(next1);
}
});
b2.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent next2 = new Intent(MainActivity.this, pageSe.class);
startActivity(next2);
}
});
}
}
اینم کدهای xml اکتیویتی اصلی
کد پیاچپی:
<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"
tools:context=".MainActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="kelidestan.ir" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="141dp"
android:text="Button1" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button2"
android:layout_below="@+id/textView2"
android:layout_marginTop="56dp"
android:text="Button2" />
</RelativeLayout>
میشه کمک کنید؟؟