-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
551 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package protect.card_locker; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.LayoutRes; | ||
import android.support.v4.app.Fragment; | ||
|
||
import com.github.paolorotolo.appintro.AppIntro; | ||
|
||
|
||
public class IntroActivity extends AppIntro | ||
{ | ||
@Override | ||
public void init(Bundle savedInstanceState) | ||
{ | ||
addIntroSlide(R.layout.intro1_layout); | ||
addIntroSlide(R.layout.intro2_layout); | ||
addIntroSlide(R.layout.intro3_layout); | ||
addIntroSlide(R.layout.intro4_layout); | ||
addIntroSlide(R.layout.intro5_layout); | ||
addIntroSlide(R.layout.intro6_layout); | ||
} | ||
|
||
private void addIntroSlide(@LayoutRes int layout) | ||
{ | ||
Fragment slide = new IntroSlide(); | ||
Bundle args = new Bundle(); | ||
args.putInt("layout", layout); | ||
slide.setArguments(args); | ||
addSlide(slide); | ||
} | ||
|
||
@Override | ||
public void onSkipPressed(Fragment fragment) { | ||
finish(); | ||
} | ||
|
||
@Override | ||
public void onDonePressed(Fragment fragment) { | ||
finish(); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package protect.card_locker; | ||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
public class IntroSlide extends Fragment | ||
{ | ||
int _layout; | ||
|
||
@Override | ||
public void setArguments(Bundle bundle) | ||
{ | ||
_layout = bundle.getInt("layout"); | ||
} | ||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||
{ | ||
View v = inflater.inflate(_layout, container, false); | ||
return v; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?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" | ||
android:background="#222222" | ||
android:layout_weight="10" | ||
android:id="@+id/main"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:paddingLeft="32dp" | ||
android:layout_weight="3" | ||
android:fontFamily="sans-serif-thin" | ||
android:textColor="#ffffff" | ||
android:paddingRight="32dp" | ||
android:textSize="28sp" | ||
android:text="@string/intro1Title"/> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="0dp" | ||
android:orientation="vertical" | ||
android:gravity="center" | ||
android:layout_weight="5"> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:paddingLeft="16dp" | ||
android:paddingRight="16dp" | ||
android:src="@drawable/app_icon_intro"/> | ||
</LinearLayout> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_weight="3" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:textColor="#ffffff" | ||
android:paddingLeft="64dp" | ||
android:paddingRight="64dp" | ||
android:textSize="16sp" | ||
android:text="@string/intro1Description"/> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="64dp" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?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" | ||
android:background="#222222" | ||
android:layout_weight="10" | ||
android:id="@+id/main"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:paddingLeft="32dp" | ||
android:layout_weight="3" | ||
android:fontFamily="sans-serif-thin" | ||
android:textColor="#ffffff" | ||
android:paddingRight="32dp" | ||
android:textSize="28sp" | ||
android:text="@string/intro2Title"/> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="0dp" | ||
android:orientation="vertical" | ||
android:gravity="center" | ||
android:layout_weight="5"> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:paddingLeft="16dp" | ||
android:paddingRight="16dp" | ||
android:src="@drawable/intro2_image"/> | ||
</LinearLayout> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_weight="3" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:textColor="#ffffff" | ||
android:paddingLeft="64dp" | ||
android:paddingRight="64dp" | ||
android:textSize="16sp" | ||
android:text="@string/intro2Description"/> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="64dp" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?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" | ||
android:background="#222222" | ||
android:layout_weight="10" | ||
android:id="@+id/main"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:paddingLeft="32dp" | ||
android:layout_weight="3" | ||
android:fontFamily="sans-serif-thin" | ||
android:textColor="#ffffff" | ||
android:paddingRight="32dp" | ||
android:textSize="28sp" | ||
android:text="@string/intro3Title"/> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="0dp" | ||
android:orientation="vertical" | ||
android:gravity="center" | ||
android:layout_weight="5"> | ||
|
||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:paddingLeft="16dp" | ||
android:paddingRight="16dp" | ||
android:src="@drawable/intro3_image"/> | ||
</LinearLayout> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_weight="3" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:textColor="#ffffff" | ||
android:paddingLeft="64dp" | ||
android:paddingRight="64dp" | ||
android:textSize="16sp" | ||
android:text="@string/intro3Description"/> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="64dp" /> | ||
</LinearLayout> |
Oops, something went wrong.