From 1c917c1f1b702b018b7e60565f6dbc025e7ea818 Mon Sep 17 00:00:00 2001 From: Pedro Carrillo Date: Wed, 21 Sep 2016 11:54:29 -0400 Subject: [PATCH] adding setupViews --- .../java/pedrocarrillo/com/materialstepper/Step1Test.java | 5 +++++ .../pedrocarrillo/com/materialstepperlibrary/StepView.java | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/src/main/java/pedrocarrillo/com/materialstepper/Step1Test.java b/app/src/main/java/pedrocarrillo/com/materialstepper/Step1Test.java index d663658..c6684ec 100644 --- a/app/src/main/java/pedrocarrillo/com/materialstepper/Step1Test.java +++ b/app/src/main/java/pedrocarrillo/com/materialstepper/Step1Test.java @@ -24,6 +24,11 @@ public boolean onStepSuccess() { return true; } + @Override + public void setupViews() { + // find my views. + } + @Override public String showTitle() { return "Step "+stepNumber; diff --git a/materialstepperlibrary/src/main/java/pedrocarrillo/com/materialstepperlibrary/StepView.java b/materialstepperlibrary/src/main/java/pedrocarrillo/com/materialstepperlibrary/StepView.java index 1c6a4cf..8ccbdc5 100644 --- a/materialstepperlibrary/src/main/java/pedrocarrillo/com/materialstepperlibrary/StepView.java +++ b/materialstepperlibrary/src/main/java/pedrocarrillo/com/materialstepperlibrary/StepView.java @@ -54,6 +54,7 @@ public StepView(Context context, AttributeSet attrs, int defStyleAttr) { public abstract String showTitle(); public abstract void onStepCancel(); public abstract String showSelection(); + public abstract void setupViews(); public void setStepLayoutInterface(StepLayoutInterface stepLayoutInterface) { this.stepLayoutInterface = stepLayoutInterface; @@ -113,6 +114,8 @@ private void initView() { vsContent.setLayoutResource(customStepResource()); vsContent.inflate(); + setupViews(); + } public void showSeparator(boolean show) {