انجمن سایت کلیدستان


رتبه موضوع:
  • 1 رای - 5 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
لوگوی ابتدای برنامه اندروید (به صورت انیمیشن چرخشی و متن به صورت fade in)

لوگوی ابتدای برنامه اندروید (به صورت انیمیشن چرخشی و متن به صورت fade in)

#6
سلام
میشه به منم کمک کنید؟ مثلا می خوام به دکمه ای که داخل برنامه ام قرار دادم یه انیمیشن بدم به اینصورت که: مثلا اگه روش کلیک شد یک دور خودش بچرخه بعد از چند لحظه که چرخشش تموم شد بره اکتیویتی مورد نظر
میشه کمک کنید؟
این کد جاوامه

کد پی‌اچ‌پی:
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 =(ButtonfindViewById(R.id.button1);
        
Button b2=(ButtonfindViewById(R.id.button2);


        
b1.setOnClickListener(new OnClickListener() {
            
            @
Override
            
public void onClick(View arg0) {
                
// TODO Auto-generated method stub
                
Intent next1 = new Intent(MainActivity.thispageDo.class);
                
startActivity(next1);
            }
        });
  
b2.setOnClickListener(new OnClickListener() {
            
            @
Override
            
public void onClick(View arg0) {
                
// TODO Auto-generated method stub
                
Intent next2 = new Intent(MainActivity.thispageSe.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

میشه کمک کنید؟؟
پاسخ


پیام‌های این موضوع
RE: لوگوی ابتدای برنامه - توسط mohammadjobeh - ۱۳۹۴/۰۵/۲۷, ۰۶:۱۹ ب.ظ
RE: لوگوی ابتدای برنامه - توسط rouhollah - ۱۳۹۴/۰۵/۲۹, ۱۰:۰۹ ق.ظ
RE: لوگوی ابتدای برنامه - توسط hhossein73 - ۱۳۹۴/۰۵/۲۷, ۰۶:۵۶ ب.ظ
RE: لوگوی ابتدای برنامه - توسط mohammadjobeh - ۱۳۹۴/۰۵/۲۷, ۰۷:۱۷ ب.ظ
RE: لوگوی ابتدای برنامه - توسط mina73 - ۱۳۹۴/۰۵/۲۷, ۰۷:۴۰ ب.ظ
RE: لوگوی ابتدای برنامه - توسط تازه کار - ۱۳۹۴/۰۵/۲۷, ۱۱:۰۶ ب.ظ

پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان