master
Administrator 13 years ago
parent 0680f77bd9
commit 5fc28c6463

@ -16,7 +16,7 @@
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:layout_marginBottom="45dp"
android:layout_marginBottom="25dp"
android:text="Go ahead!" />
</RelativeLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

@ -4,11 +4,13 @@ import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.app.library.common.view.ImageIndicatorView;
import com.app.library.common.view.R;
public class GuideImageIndicatorActivity extends Activity {
public class GuideImageIndicatorActivity extends Activity implements View.OnClickListener,
ImageIndicatorView.OnItemChangeListener {
private ImageIndicatorView imageIndicatorView;
private Button goButton;
@ -21,7 +23,12 @@ public class GuideImageIndicatorActivity extends Activity {
this.goButton = (Button) findViewById(R.id.button1);
this.goButton.setVisibility(View.GONE);
this.imageIndicatorView.setOnItemChangeListener(new ImageIndicatorView.OnItemChangeListener() {
this.imageIndicatorView.setOnItemChangeListener(this);
this.goButton.setOnClickListener(this);
this.initView();
}
@Override
public void onPosition(int position, int totalCount) {
if (position == totalCount - 1) {
@ -30,15 +37,18 @@ public class GuideImageIndicatorActivity extends Activity {
goButton.setVisibility(View.GONE);
}
}
});
this.initView();
@Override
public void onClick(View view) {
Toast.makeText(GuideImageIndicatorActivity.this, "let's roll...", Toast.LENGTH_SHORT).show();
GuideImageIndicatorActivity.this.finish();
}
private void initView() {
final Integer[] resArray = new Integer[] { R.drawable.guide_00, R.drawable.guide_01};
final Integer[] resArray = new Integer[] { R.drawable.guide_00, R.drawable.guide_01 };
this.imageIndicatorView.setupLayoutByDrawable(resArray);
this.imageIndicatorView.setIndicateStyle(ImageIndicatorView.INDICATE_USERGUIDE_STYLE);
this.imageIndicatorView.show();
}
}

@ -57,3 +57,18 @@ set ImageIndicatorView as:
imageIndicatorView.setupLayoutByDrawable(resArray);
imageIndicatorView.setIndicateStyle(ImageIndicatorView.INDICATE_USERGUIDE_STYLE);
imageIndicatorView.show();
screemshot:
3.screenshot:
common style:
![ScreenShot](https://raw.github.com/allthelucky/android-viewpager-indicator/master/AndroidViewpagerIndicator/screenshot/poster0.png)
userguide style:
![ScreenShot](https://raw.github.com/allthelucky/android-viewpager-indicator/master/AndroidViewpagerIndicator/screenshot/guider00.png)
![ScreenShot](https://raw.github.com/allthelucky/android-viewpager-indicator/master/AndroidViewpagerIndicator/screenshot/guider01.png)

Loading…
Cancel
Save