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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Version History | |
version 1 - initial version. | |
--> | |
<login_config version="1"> | |
<!-- Flag indicating if Save Username field should be displayed --> | |
<bool name="showSaveUsername">true</bool> | |
</login_config> |
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
public class LoginConfig { | |
/** | |
* Whether to hide Login functionality from the user. | |
*/ | |
private static boolean mShowSaveUsername = false; | |
public static boolean getShowSaveUsername() { | |
return mShowSaveUsername; | |
} |
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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_login); | |
LoginConfig.init(this); | |
mSaveUsernameView = (CheckBox) findViewById(R.id.save_username); | |
mSaveUsernameView.setVisibility(LoginConfig.getShowSaveUsername() ? View.VISIBLE : View.INVISIBLE); |
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
git push --mirror [email protected]:username/project.git |
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
<uses-permission android:name="android.permission.CAMERA" /> |
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
<uses-feature android:name="android.hardware.camera" android:required="true"/> |
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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.craftingmobile.tutorials.simplecamera" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="16" /> | |
<uses-permission android:name="android.permission.CAMERA" /> |
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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
style="@style/SimpleCamera" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:baselineAligned="false" | |
tools:context=".SimpleCamera" > | |
<FrameLayout | |
android:id="@+id/camera_preview" |
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
<style name="SimpleCamera" parent="android:Theme.Holo.NoActionBar.Fullscreen"> | |
<item name="android:windowBackground">@android:color/black</item> | |
<item name="android:colorBackground">@android:color/black</item> | |
<item name="android:colorBackgroundCacheHint">@android:color/black</item> | |
</style> |
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
<resources> | |
<dimen name="control_panel_min_length">105dp</dimen> | |
</resources> |
OlderNewer