Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from brarcher/lock-orientation
Add option to lock screen orientation
- Loading branch information
Showing
31 changed files
with
209 additions
and
58 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 was deleted.
Oops, something went wrong.
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
36 changes: 36 additions & 0 deletions
36
app/src/main/java/protect/card_locker/intro/IntroActivity.java
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,36 @@ | ||
package protect.card_locker.intro; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.LayoutRes; | ||
import android.support.v4.app.Fragment; | ||
|
||
import com.github.paolorotolo.appintro.AppIntro; | ||
|
||
import protect.card_locker.R; | ||
|
||
|
||
public class IntroActivity extends AppIntro | ||
{ | ||
@Override | ||
public void init(Bundle savedInstanceState) | ||
{ | ||
addSlide(new IntroSlide1()); | ||
addSlide(new IntroSlide2()); | ||
addSlide(new IntroSlide3()); | ||
addSlide(new IntroSlide4()); | ||
addSlide(new IntroSlide5()); | ||
addSlide(new IntroSlide6()); | ||
} | ||
|
||
@Override | ||
public void onSkipPressed(Fragment fragment) { | ||
finish(); | ||
} | ||
|
||
@Override | ||
public void onDonePressed(Fragment fragment) { | ||
finish(); | ||
} | ||
} | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
app/src/main/java/protect/card_locker/intro/IntroSlide1.java
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,19 @@ | ||
package protect.card_locker.intro; | ||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import protect.card_locker.R; | ||
|
||
public class IntroSlide1 extends Fragment | ||
{ | ||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||
{ | ||
View v = inflater.inflate(R.layout.intro1_layout, container, false); | ||
return v; | ||
} | ||
} |
15 changes: 5 additions & 10 deletions
15
.../java/protect/card_locker/IntroSlide.java → ...rotect/card_locker/intro/IntroSlide2.java
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 |
---|---|---|
@@ -1,25 +1,20 @@ | ||
package protect.card_locker; | ||
package protect.card_locker.intro; | ||
|
||
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; | ||
import protect.card_locker.R; | ||
|
||
@Override | ||
public void setArguments(Bundle bundle) | ||
{ | ||
_layout = bundle.getInt("layout"); | ||
} | ||
public class IntroSlide2 extends Fragment | ||
{ | ||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||
{ | ||
View v = inflater.inflate(_layout, container, false); | ||
View v = inflater.inflate(R.layout.intro2_layout, container, false); | ||
return v; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
app/src/main/java/protect/card_locker/intro/IntroSlide3.java
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,19 @@ | ||
package protect.card_locker.intro; | ||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import protect.card_locker.R; | ||
|
||
public class IntroSlide3 extends Fragment | ||
{ | ||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||
{ | ||
View v = inflater.inflate(R.layout.intro3_layout, container, false); | ||
return v; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
app/src/main/java/protect/card_locker/intro/IntroSlide4.java
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,19 @@ | ||
package protect.card_locker.intro; | ||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import protect.card_locker.R; | ||
|
||
public class IntroSlide4 extends Fragment | ||
{ | ||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||
{ | ||
View v = inflater.inflate(R.layout.intro4_layout, container, false); | ||
return v; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
app/src/main/java/protect/card_locker/intro/IntroSlide5.java
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,19 @@ | ||
package protect.card_locker.intro; | ||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import protect.card_locker.R; | ||
|
||
public class IntroSlide5 extends Fragment | ||
{ | ||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||
{ | ||
View v = inflater.inflate(R.layout.intro5_layout, container, false); | ||
return v; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
app/src/main/java/protect/card_locker/intro/IntroSlide6.java
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,19 @@ | ||
package protect.card_locker.intro; | ||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import protect.card_locker.R; | ||
|
||
public class IntroSlide6 extends Fragment | ||
{ | ||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||
{ | ||
View v = inflater.inflate(R.layout.intro6_layout, container, false); | ||
return v; | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Oops, something went wrong.