Share to EffectHub.com

You can earn money or coins from your share:)

Tips: you can use Sparticle for uploading away3D effects.

Tips: you can download Sparticle for uploading effects.

Tips: The ActionScript editor is supporting Away3D, Starling, Dragonbones and Flex frameworks.

Tips: paste the web page URL then click button:)

EffectHub.com: Your Best Source for Gaming
Login    or

Android UI:ViewFlipper

main.xml

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    ><ViewFlipper 	android:layout_height="wrap_content"	android:layout_width="match_parent"	android:id="@+id/viewFipper01">	<include android:id="@+id/layout1" layout="@layout/layout1"/>	<include android:id="@+id/layout2" layout="@layout/layout2"/></ViewFlipper></LinearLayout>

layout1.xml

<?xml version="1.0" encoding="utf-8"?><LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"  android:orientation="vertical"  android:layout_width="match_parent"  android:layout_height="match_parent">    <ImageView    	android:layout_height="wrap_content"    	android:layout_width="fill_parent"    	android:src="@drawable/ni_png_0120"    />    <TextView    	android:layout_height="wrap_content"    	android:layout_width="fill_parent"    	android:gravity="center"    	android:text="Cat"    	android:textSize="20pt"    /></LinearLayout>

layout2.xml

<?xml version="1.0" encoding="utf-8"?><LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"  android:orientation="vertical"  android:layout_width="match_parent"  android:layout_height="match_parent">    <ImageView    	android:layout_height="wrap_content"    	android:layout_width="fill_parent"    	android:src="@drawable/ni_png_0115"    />    <TextView     	android:layout_height="wrap_content"     	android:layout_width="fill_parent"     	android:gravity="center"     	android:text="Fish"     	android:textSize="20pt">	</TextView></LinearLayout>


 ViewTestActivity.java

package com.view.ViewFlippertest;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.animation.AnimationUtils;import android.widget.ViewFlipper;public class ViewTestActivity extends Activity {    /** Called when the activity is first created. */    @Override    public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.main);        final ViewFlipper vf = (ViewFlipper)findViewById(R.id.viewFipper01);        vf.setOnClickListener(new View.OnClickListener() {						@Override			public void onClick(View v) {								vf.showNext();			}		});                vf.setInAnimation(AnimationUtils.loadAnimation(getApplicationContext(),         		android.R.anim.slide_in_left));                vf.setOutAnimation(AnimationUtils.loadAnimation(getApplicationContext(),         		android.R.anim.slide_out_right));    }}


...

You must Sign up as a member of Effecthub to view the content.

2857 views    1 comments

You must Sign up as a member of Effecthub to join the conversation.

Join Effecthub.com


Or Login with Your Email Address:

Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/footer.php

Line Number: 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 21

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 85