Add FAB and color StatusBar, solve style bugs

This commit is contained in:
Jeremy
2017-10-18 19:25:00 +02:00
parent 714245a5ba
commit d549257fce
51 changed files with 581 additions and 359 deletions

View File

@@ -1,6 +1,11 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="AndroidLintAppCompatResource" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AndroidLintMissingTranslation" enabled="true" level="INFO" enabled_by_default="true" />
<inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false">
<option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" />
<option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" />
</inspection_tool>
</profile>
</component>

View File

@@ -116,14 +116,6 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
@@ -132,6 +124,14 @@
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
@@ -159,7 +159,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" scope="TEST" name="junit4" level="project" />
<orderEntry type="library" exported="" name="prov-1.54.0.0" level="project" />

View File

@@ -1,29 +1,19 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion = 22
buildToolsVersion = "25.0.0"
compileSdkVersion = 25
buildToolsVersion = "25.0.3"
defaultConfig {
applicationId = "com.android.keepass"
minSdkVersion = 3
targetSdkVersion = 12
minSdkVersion 3
targetSdkVersion 12
versionCode = 154
versionName = "2.0.6.4"
versionName = "2.5.0.0"
testApplicationId = "com.keepassdroid.tests"
testInstrumentationRunner = "android.test.InstrumentationTestRunner"
/*
buildConfigFields.with {
create() {
type = "int"
name = "VALUE"
value = "1"
}
}
*/
}
externalNativeBuild {
@@ -44,13 +34,10 @@ android {
applicationId = "com.android.keepass"
}
}
}
dependencies {
androidTestCompile files('libs/junit4.jar')
compile 'com.madgag.spongycastle:core:1.54.0.0'
compile 'com.madgag.spongycastle:prov:1.54.0.0'
compile 'joda-time:joda-time:2.9.4'

View File

@@ -20,12 +20,6 @@
*/
package com.keepassdroid;
import java.text.DateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import java.util.UUID;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Notification;
@@ -38,6 +32,7 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
@@ -45,6 +40,7 @@ import android.text.SpannableString;
import android.text.method.LinkMovementMethod;
import android.text.method.PasswordTransformationMethod;
import android.text.util.Linkify;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
@@ -67,6 +63,14 @@ import com.keepassdroid.utils.EmptyUtils;
import com.keepassdroid.utils.Types;
import com.keepassdroid.utils.Util;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.DateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import java.util.UUID;
public class EntryActivity extends LockCloseHideActivity {
public static final String KEY_ENTRY = "entry";
public static final String KEY_REFRESH_POS = "refresh_pos";
@@ -227,15 +231,32 @@ public class EntryActivity extends LockCloseHideActivity {
}
private Notification getNotification(String intentText, int descResId) {
String desc = getString(descResId);
Notification notify = new Notification(R.drawable.notify, desc, System.currentTimeMillis());
String description = getString(descResId);
Intent intent = new Intent(intentText);
PendingIntent pending = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
notify.setLatestEventInfo(this, getString(R.string.app_name), desc, pending);
return notify;
Notification notification;
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
notification = new Notification(R.drawable.notify, description, System.currentTimeMillis());
try {
Method deprecatedMethod = notification.getClass().getMethod("setLatestEventInfo", Context.class, CharSequence.class, CharSequence.class, PendingIntent.class);
deprecatedMethod.invoke(notification, this, getString(R.string.app_name), description, pending);
} catch (NoSuchMethodException | IllegalAccessException | IllegalArgumentException
| InvocationTargetException e) {
Log.w("EntryActivity", "Method not found", e);
}
} else {
// Use new API
Notification.Builder builder = new Notification.Builder(this)
.setContentIntent(pending)
.setSmallIcon(R.drawable.notify)
.setContentTitle(getString(R.string.app_name));
notification = builder.getNotification();
}
return notification;
}
private String getDateTime(Date dt) {

View File

@@ -79,7 +79,7 @@ public class EntryEditActivityV4 extends EntryEditActivity {
scroll = (ScrollView) findViewById(R.id.entry_scroll);
ImageButton add = (ImageButton) findViewById(R.id.add_advanced);
View add = findViewById(R.id.add_advanced);
add.setVisibility(View.VISIBLE);
add.setOnClickListener(new View.OnClickListener() {
@@ -102,14 +102,14 @@ public class EntryEditActivityV4 extends EntryEditActivity {
}
});
ImageButton iconPicker = (ImageButton) findViewById(R.id.icon_button);
View iconPicker = findViewById(R.id.icon_button);
iconPicker.setVisibility(View.GONE);
View divider = (View) findViewById(R.id.divider_title);
View divider = findViewById(R.id.divider_title);
RelativeLayout.LayoutParams lp_div = (RelativeLayout.LayoutParams) divider.getLayoutParams();
lp_div.addRule(RelativeLayout.BELOW, R.id.entry_title);
View user_label = (View) findViewById(R.id.entry_user_name_label);
View user_label = findViewById(R.id.entry_user_name_label);
RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) user_label.getLayoutParams();
lp.addRule(RelativeLayout.BELOW, R.id.divider_title);
}

View File

@@ -140,7 +140,7 @@ public abstract class GroupActivity extends GroupBaseActivity {
setContentView(new GroupRootView(this));
} else if ( addEntryEnabled ) {
setContentView(new GroupAddEntryView(this));
Button addGroup = (Button) findViewById(R.id.add_group);
View addGroup = findViewById(R.id.add_group);
addGroup.setVisibility(View.GONE);
} else {
setContentView(new GroupViewOnlyView(this));
@@ -149,7 +149,7 @@ public abstract class GroupActivity extends GroupBaseActivity {
if ( addGroupEnabled ) {
// Add Group button
Button addGroup = (Button) findViewById(R.id.add_group);
View addGroup = findViewById(R.id.add_group);
addGroup.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
@@ -160,7 +160,7 @@ public abstract class GroupActivity extends GroupBaseActivity {
if ( addEntryEnabled ) {
// Add Entry button
Button addEntry = (Button) findViewById(R.id.add_entry);
View addEntry = findViewById(R.id.add_entry);
addEntry.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {

View File

@@ -55,7 +55,6 @@ public abstract class GroupBaseActivity extends LockCloseListActivity {
protected ListAdapter mAdapter;
public static final String KEY_ENTRY = "entry";
public static final String KEY_MODE = "mode";
private SharedPreferences prefs;

View File

@@ -30,6 +30,7 @@ import android.widget.Toast;
import com.android.keepass.R;
import com.keepassdroid.icons.Icons;
import com.keepassdroid.utils.Util;
public class GroupEditActivity extends Activity
{
@@ -48,6 +49,8 @@ public class GroupEditActivity extends Activity
super.onCreate(savedInstanceState);
setContentView(R.layout.group_edit);
setTitle(R.string.add_group_title);
Util.colorStatusBar(this);
ImageButton iconButton = (ImageButton) findViewById(R.id.icon_button);
iconButton.setOnClickListener(new View.OnClickListener()

View File

@@ -22,6 +22,7 @@ package com.keepassdroid;
import android.app.Activity;
import com.keepassdroid.timeout.TimeoutHelper;
import com.keepassdroid.utils.Util;
public abstract class LockingActivity extends Activity {
@@ -36,6 +37,8 @@ public abstract class LockingActivity extends Activity {
protected void onResume() {
super.onResume();
Util.colorStatusBar(this);
TimeoutHelper.resume(this);
}
}

View File

@@ -22,6 +22,7 @@ package com.keepassdroid;
import android.preference.PreferenceActivity;
import com.keepassdroid.timeout.TimeoutHelper;
import com.keepassdroid.utils.Util;
public abstract class LockingPreferenceActivity extends PreferenceActivity {
@@ -36,6 +37,8 @@ public abstract class LockingPreferenceActivity extends PreferenceActivity {
protected void onResume() {
super.onResume();
Util.colorStatusBar(this);
TimeoutHelper.resume(this);
}
}

View File

@@ -19,17 +19,14 @@
*/
package com.keepassdroid;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.ClipData;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;

View File

@@ -90,6 +90,8 @@ public class FileSelectActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Util.colorStatusBar(this);
fileHistory = App.getFileHistory();

View File

@@ -22,7 +22,9 @@ package com.keepassdroid.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.ref.WeakReference;
import com.android.keepass.R;
import com.keepassdroid.database.exception.SamsungClipboardException;
import android.app.Activity;
@@ -30,7 +32,10 @@ import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.text.ClipboardManager;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
public class Util {
@@ -91,6 +96,13 @@ public class Util {
}
}
public static void colorStatusBar(Activity activity) {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = activity.getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
window.setStatusBarColor(activity.getResources().getColor(R.color.green_dark));
}
}
}

View File

@@ -22,12 +22,30 @@ package com.keepassdroid.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.RotateAnimation;
import android.widget.RelativeLayout;
import com.android.keepass.R;
public class GroupAddEntryView extends RelativeLayout {
protected View addButton;
protected View addEntry;
protected boolean addEntryActivated;
protected View addGroup;
protected boolean addGroupActivated;
private boolean animInProgress;
private AddButtonAnimation viewButtonMenuAnimation;
private ViewMenuAnimation viewMenuAnimationAddEntry;
private ViewMenuAnimation viewMenuAnimationAddGroup;
public GroupAddEntryView(Context context) {
this(context, null);
}
@@ -38,11 +56,128 @@ public class GroupAddEntryView extends RelativeLayout {
inflate(context);
}
private void inflate(Context context) {
protected void inflate(Context context) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.group_add_entry, this);
addEntryActivated = true;
addGroupActivated = true;
addButton = findViewById(R.id.add_button);
addEntry = findViewById(R.id.add_entry);
addGroup = findViewById(R.id.add_group);
viewButtonMenuAnimation = new AddButtonAnimation(addButton);
viewMenuAnimationAddEntry = new ViewMenuAnimation(addEntry);
viewMenuAnimationAddGroup = new ViewMenuAnimation(addGroup);
addButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if(!animInProgress) {
viewButtonMenuAnimation.startAnimation();
if (addEntryActivated) {
viewMenuAnimationAddEntry.startAnimation();
}
if (addGroupActivated) {
viewMenuAnimationAddGroup.startAnimation();
}
}
}
});
}
private class AddButtonAnimation implements Animation.AnimationListener {
private View view;
private boolean isRotate;
private Animation rightAnim;
private Animation leftAnim;
AddButtonAnimation(View view) {
this.view = view;
this.isRotate = false;
rightAnim = new RotateAnimation(0f, 135f,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
rightAnim.setDuration(300);
rightAnim.setInterpolator(new AccelerateDecelerateInterpolator());
rightAnim.setFillAfter(true);
leftAnim = new RotateAnimation(135f, 0f,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
leftAnim.setDuration(300);
leftAnim.setInterpolator(new AccelerateDecelerateInterpolator());
leftAnim.setFillAfter(true);
}
@Override
public void onAnimationStart(Animation animation) {
animInProgress = true;
}
@Override
public void onAnimationEnd(Animation animation) {
animInProgress = false;
isRotate = !isRotate;
}
@Override
public void onAnimationRepeat(Animation animation) {}
void startAnimation() {
Animation animation;
if(!isRotate)
animation = rightAnim;
else
animation = leftAnim;
animation.setAnimationListener(this);
view.startAnimation(animation);
}
}
private class ViewMenuAnimation implements Animation.AnimationListener {
private View view;
private Animation animViewShow;
private Animation animViewHide;
ViewMenuAnimation(View view) {
this.view = view;
animViewShow = new AlphaAnimation(0.0f, 1.0f);
animViewShow.setDuration(300);
animViewHide = new AlphaAnimation(1.0f, 0.0f);
animViewHide.setDuration(300);
}
@Override
public void onAnimationStart(Animation animation) {}
@Override
public void onAnimationEnd(Animation animation) {
if(view.getVisibility() == VISIBLE)
view.setVisibility(GONE);
else
view.setVisibility(VISIBLE);
}
@Override
public void onAnimationRepeat(Animation animation) {}
void startAnimation() {
Animation animation;
if(view.getVisibility() == VISIBLE)
animation = animViewHide;
else
animation = animViewShow;
animation.setAnimationListener(this);
view.startAnimation(animation);
}
}
}

View File

@@ -21,32 +21,26 @@ package com.keepassdroid.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.view.View;
import com.android.keepass.R;
public class GroupRootView extends RelativeLayout {
public class GroupRootView extends GroupAddEntryView {
public GroupRootView(Context context) {
this(context, null);
}
public GroupRootView(Context context, AttributeSet attrs) {
super(context, attrs);
inflate(context);
}
private void inflate(Context context) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.group_add_entry, this);
Button addEntry = (Button) findViewById(R.id.add_entry);
addEntry.setVisibility(INVISIBLE);
@Override
protected void inflate(Context context) {
super.inflate(context);
addEntryActivated = false;
}
}

View File

@@ -21,13 +21,8 @@ package com.keepassdroid.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import com.android.keepass.R;
public class GroupViewOnlyView extends RelativeLayout {
public class GroupViewOnlyView extends GroupAddEntryView {
public GroupViewOnlyView(Context context) {
this(context, null);
@@ -38,27 +33,13 @@ public class GroupViewOnlyView extends RelativeLayout {
inflate(context);
}
private void inflate(Context context) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.group_add_entry, this);
@Override
protected void inflate(Context context) {
super.inflate(context);
// Hide the buttons
View addGroup = findViewById(R.id.add_group);
addGroup.setVisibility(INVISIBLE);
View addEntry = findViewById(R.id.add_entry);
addEntry.setVisibility(INVISIBLE);
View divider2 = findViewById(R.id.divider2);
divider2.setVisibility(INVISIBLE);
View list = findViewById(R.id.group_list);
LayoutParams lp = (RelativeLayout.LayoutParams) list.getLayoutParams();
lp.addRule(ALIGN_PARENT_BOTTOM, TRUE);
addButton.setVisibility(GONE);
}
}

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:color="@color/white"
tools:targetApi="lollipop">
<item>
<layer-list>
<item android:right="1dp" android:top="5dp">
<shape>
<corners android:radius="3dp" />
<solid android:color="#14000000" />
</shape>
</item>
<item android:bottom="2dp" android:left="2dp">
<shape>
<gradient android:angle="270"
android:endColor="#E2E2E2" android:startColor="#BABABA" />
<corners
android:radius="2dp" />
<padding
android:left="14dp"
android:right="14dp"
android:top="8dp"
android:bottom="12dp"/>
<solid android:color="@color/green"/>
</shape>
</item>
</layer-list>
</item>
</ripple>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:color="@color/white"
tools:targetApi="lollipop">
<item>
<layer-list>
<item android:right="1dp" android:top="5dp">
<shape>
<corners android:radius="3dp" />
<solid android:color="#14000000" />
</shape>
</item>
<item android:bottom="2dp" android:left="2dp">
<shape>
<gradient android:angle="270"
android:endColor="#E2E2E2" android:startColor="#BABABA" />
<corners
android:radius="8dp" />
<padding
android:left="14dp"
android:right="14dp"
android:top="4dp"
android:bottom="8dp"/>
<solid android:color="@color/green"/>
</shape>
</item>
</layer-list>
</item>
</ripple>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/white">
<item>
<shape android:shape="oval">
<padding
android:left="14dp"
android:right="14dp"
android:top="14dp"
android:bottom="14dp"/>
<solid android:color="@color/green"/>
</shape>
</item>
</ripple>

View File

@@ -1,30 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:color="@color/white"
tools:targetApi="lollipop">
<item>
<layer-list>
<item android:right="1dp" android:top="5dp">
<shape>
<corners android:radius="3dp" />
<solid android:color="#14000000" />
</shape>
</item>
<item android:bottom="2dp" android:left="2dp">
<shape>
<gradient android:angle="270"
android:endColor="#E2E2E2" android:startColor="#BABABA" />
<corners
android:radius="2dp" />
<padding
android:left="14dp"
android:right="14dp"
android:top="8dp"
android:bottom="12dp"/>
<solid android:color="@color/green"/>
</shape>
</item>
</layer-list>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:right="1dp" android:top="5dp">
<shape>
<corners android:radius="3dp" />
<solid android:color="#14000000" />
</shape>
</item>
</ripple>
<item android:bottom="2dp" android:left="2dp">
<shape>
<gradient android:angle="270"
android:endColor="#E2E2E2" android:startColor="#BABABA" />
<corners
android:radius="2dp" />
<padding
android:left="14dp"
android:right="14dp"
android:top="8dp"
android:bottom="12dp"/>
<solid android:color="@color/green"/>
</shape>
</item>
</layer-list>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:right="1dp" android:top="5dp">
<shape>
<corners android:radius="3dp" />
<solid android:color="#14000000" />
</shape>
</item>
<item android:bottom="2dp" android:left="2dp">
<shape>
<gradient android:angle="270"
android:endColor="#E2E2E2" android:startColor="#BABABA" />
<corners
android:radius="8dp" />
<padding
android:left="14dp"
android:right="14dp"
android:top="4dp"
android:bottom="8dp"/>
<solid android:color="@color/green"/>
</shape>
</item>
</layer-list>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android">
<padding
android:left="14dp"
android:right="14dp"
android:top="14dp"
android:bottom="14dp"/>
<solid android:color="@color/green"/>
</shape>

View File

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</vector>

View File

@@ -24,7 +24,7 @@
<TextView android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView
android:id="@+id/value"

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:id="@+id/entry_table"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
@@ -28,7 +28,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_user_name"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_user_name"
android:layout_width="fill_parent"
@@ -42,7 +42,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_url"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_url"
android:layout_width="fill_parent"
@@ -57,7 +57,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_password"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<com.keepassdroid.view.PasswordTextViewSelect android:id="@+id/entry_password"
android:layout_width="fill_parent"
@@ -73,7 +73,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_comment"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_comment"
android:layout_width="fill_parent"
@@ -92,7 +92,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_created"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_created"
android:layout_width="fill_parent"
@@ -105,7 +105,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_modified"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_modified"
android:layout_width="fill_parent"
@@ -118,7 +118,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_accessed"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_accessed"
android:layout_width="fill_parent"
@@ -131,7 +131,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_expires"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_expires"
android:layout_width="fill_parent"

View File

@@ -19,7 +19,7 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText android:id="@+id/rounds"

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button android:id="@+id/entry_save"
@@ -171,7 +171,7 @@
android:layout_below="@id/divider_comment"
android:orientation="vertical">
</LinearLayout>
<ImageButton android:id="@+id/add_advanced"
<ImageView android:id="@+id/add_advanced"
android:layout_width="30sp"
android:layout_height="30sp"
android:layout_below="@id/advanced_container"

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<com.keepassdroid.view.EntryEditSection xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/title"
@@ -27,7 +27,7 @@
android:singleLine="true"
android:inputType="text"
android:hint="@string/field_name"
style="@style/Small"
style="@style/TinyTextStyle"
/>
<CheckBox android:id="@+id/protection"
android:layout_width="wrap_content"

View File

@@ -18,23 +18,23 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1">
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1">
<TableRow android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
android:layout_height="wrap_content"
android:gravity="center_vertical">
<ImageView android:id="@+id/entry_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
<TextView
android:id="@+id/entry_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
style="@style/ElementTextLarge"/>
android:id="@+id/entry_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
style="@style/DefaultTextStyle"/>
<View/>
</TableRow>
</TableLayout>

View File

@@ -24,7 +24,7 @@
<TextView android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<com.keepassdroid.view.TextViewSelect
android:id="@+id/value"

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Title -->
@@ -27,21 +27,21 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="2dp"
style="@style/WhiteOnBlack">
style="@style/DefaultTextStyle">
<TextView android:id="@+id/entry_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:minHeight="32dp"
style="@style/ElementTextTitle"/>
style="@style/DefaultTextStyle"/>
<ImageView android:id="@+id/entry_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"
style="@style/WhiteOnBlack"/>
style="@style/DefaultTextStyle"/>
</LinearLayout>
<Button android:id="@+id/entry_edit"
android:text="@string/menu_edit"

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:id="@+id/entry_table"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
@@ -28,7 +28,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_user_name"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<com.keepassdroid.view.TextViewSelect android:id="@+id/entry_user_name"
android:layout_width="fill_parent"
@@ -41,7 +41,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_url"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<com.keepassdroid.view.TextViewSelect android:id="@+id/entry_url"
android:layout_width="fill_parent"
@@ -55,7 +55,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_password"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<com.keepassdroid.view.PasswordTextViewSelect android:id="@+id/entry_password"
android:layout_width="fill_parent"
@@ -71,7 +71,7 @@
android:layout_height="wrap_content"
android:text="@string/entry_comment"
android:autoLink="all"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<com.keepassdroid.view.TextViewSelect android:id="@+id/entry_comment"
android:layout_width="fill_parent"
@@ -89,7 +89,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_created"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_created"
android:layout_width="fill_parent"
@@ -102,7 +102,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_modified"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_modified"
android:layout_width="fill_parent"
@@ -115,7 +115,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_accessed"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_accessed"
android:layout_width="fill_parent"
@@ -128,7 +128,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_expires"
style="@style/WhiteOnDarkSmall"
style="@style/LabelTextStyle"
/>
<TextView android:id="@+id/entry_expires"
android:layout_width="fill_parent"

View File

@@ -18,55 +18,55 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:id="@+id/parent"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:layout_margin="@dimen/default_margin"
android:id="@+id/parent"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Title -->
<LinearLayout android:id="@+id/title_block"
android:layout_alignParentTop="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="2dp"
style="@style/WhiteOnBlack">
android:layout_alignParentTop="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="2dp"
style="@style/DefaultTextStyle">
<TextView android:id="@+id/entry_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:minHeight="32dp"
style="@style/ElementTextTitle"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:minHeight="32dp"
style="@style/DefaultTextStyle"/>
<ImageView android:id="@+id/entry_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"
style="@style/WhiteOnBlack"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"
style="@style/DefaultTextStyle"/>
</LinearLayout>
<Button android:id="@+id/entry_edit"
android:text="@string/menu_edit"
android:layout_width="100sp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"/>
android:text="@string/menu_edit"
android:layout_width="100sp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"/>
<ImageView android:id="@+id/entry_divider2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/entry_edit"
android:scaleType="fitXY"
android:src="@android:drawable/divider_horizontal_dark"/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/entry_edit"
android:scaleType="fitXY"
android:src="@android:drawable/divider_horizontal_dark"/>
<ScrollView android:id="@+id/entry_scroll"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@id/entry_divider2"
android:layout_below="@id/title_block"
android:fillViewport="true"
android:scrollbarStyle="insideOverlay"
android:padding="0sp">
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@id/entry_divider2"
android:layout_below="@id/title_block"
android:fillViewport="true"
android:scrollbarStyle="insideOverlay"
android:padding="0sp">
<com.keepassdroid.view.EntryContentsView android:id="@+id/entry_contents"
android:layout_height="wrap_content"
android:layout_width="fill_parent" />
android:layout_height="wrap_content"
android:layout_width="fill_parent" />
</ScrollView>
</RelativeLayout>

View File

@@ -18,7 +18,10 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<TextView android:id="@+id/file_filename" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="4sp"
style="@style/GroupText"/>
android:paddingTop="4dp"
android:paddingLeft="18dp"
android:paddingRight="18dp"
android:paddingBottom="4dp"
style="@style/DefaultTextStyle"/>

View File

@@ -17,21 +17,23 @@
You should have received a copy of the GNU General Public License
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/file_listtop"
android:layout_width="fill_parent"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.keepassdroid.view.FileNameView android:id="@+id/file_select"
android:layout_marginBottom="@dimen/default_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/file_listtop"
android:layout_marginTop="@dimen/default_margin"
android:layout_marginStart="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?android:attr/listSeparatorTextViewStyle"
android:text="@string/open_recent" />
<com.keepassdroid.view.FileNameView android:id="@+id/file_select"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
<ListView android:id="@+id/file_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@id/file_listtop"
android:layout_above="@id/file_select" />
</RelativeLayout>
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/label_warning"

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button android:id="@+id/accept_button"

View File

@@ -18,35 +18,47 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.keepassdroid.view.GroupHeaderView
android:id="@+id/group_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button android:id="@+id/add_group"
android:layout_margin="@dimen/button_margin"
<ListView android:id="@+id/group_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/group_header"/>
<ImageButton
android:id="@+id/add_button"
android:layout_width="56dp"
android:layout_height="56dp"
android:src="@drawable/ic_add_white_24dp"
android:layout_margin="24dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:background="@drawable/fab_background"
android:elevation="4dp"
tools:ignore="UnusedAttribute" />
<TextView android:id="@+id/add_entry"
android:layout_marginEnd="12dp"
android:layout_above="@+id/add_button"
android:layout_alignEnd="@+id/add_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_entry"
android:visibility="invisible"
android:background="@drawable/button_small_background"
tools:ignore="UnusedAttribute" />
<TextView android:id="@+id/add_group"
android:layout_marginBottom="24dp"
android:layout_marginRight="12dp"
android:layout_above="@+id/add_entry"
android:layout_alignEnd="@+id/add_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="@string/add_group"/>
<Button android:id="@+id/add_entry"
android:layout_margin="@dimen/button_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/add_group"
android:layout_alignParentBottom="true"
android:text="@string/add_entry"/>
<ImageView android:id="@+id/divider2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/add_entry"
android:scaleType="fitXY"
android:tint="@color/blue_highlight"
android:src="@android:drawable/divider_horizontal_dark"/>
<ListView android:id="@+id/group_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/divider2"
android:layout_below="@id/group_header"/>
android:text="@string/add_group"
android:visibility="invisible"
android:background="@drawable/button_small_background"
tools:ignore="UnusedAttribute" />
</RelativeLayout>

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageButton android:id="@+id/icon_button"

View File

@@ -18,7 +18,6 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.keepassdroid.view.GroupHeaderView

View File

@@ -18,37 +18,35 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_margin="@dimen/list_margin"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView android:id="@+id/read_only"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/read_only"
android:visibility="gone"
style="@style/DarkOnBlackSmall"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/read_only"
android:visibility="gone"
style="@style/WarningTextStyle" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="2sp"
style="@style/WhiteOnBlack">
style="@style/DefaultTextStyle">
<TextView android:id="@+id/group_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:text="@string/root"
style="@style/WhiteOnBlack"
/>
style="@style/DefaultTextStyle" />
<ImageView android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"
style="@style/WhiteOnBlack"
/>
style="@style/DefaultTextStyle" />
</LinearLayout>
</LinearLayout>

View File

@@ -18,29 +18,29 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1">
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1">
<TableRow android:layout_width="fill_parent"
android:gravity="center_vertical"
android:layout_height="wrap_content">
android:gravity="center_vertical"
android:layout_height="wrap_content">
<ImageView android:id="@+id/group_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
<TextView android:id="@+id/group_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="2dp"
android:paddingBottom="2dp"
style="@style/GroupTextLarge"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="2dp"
android:paddingBottom="2dp"
style="@style/DefaultTextStyle"/>
<View/>
<TextView android:id="@+id/group_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/GroupLabel"
android:text="@string/group"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/SecondaryText"
android:text="@string/group"/>
</TableRow>
</TableLayout>

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/filename_label"
@@ -32,7 +32,7 @@
android:scaleType="fitXY"
android:src="@android:drawable/divider_horizontal_dark"/>
<TextView android:id="@+id/filename"
style="@style/GroupText"
style="@style/DefaultTextStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/divider1"

View File

@@ -18,7 +18,7 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_margin="@dimen/activity_default_margin"
android:layout_margin="@dimen/default_margin"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText android:id="@+id/pass_password"

View File

@@ -29,20 +29,4 @@
<style name="ActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@color/green</item>
</style>
<style name="GroupTextSmall" parent="android:Theme.Holo">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">15sp</item>
</style>
<style name="GroupText" parent="android:Theme.Holo">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">20sp</item>
</style>
<style name="GroupTextLarge" parent="android:Theme.Holo">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">28sp</item>
</style>
<style name="DividerEntry">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
</style>
</resources>

View File

@@ -18,8 +18,9 @@
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<style name="KeepassoidStyle" parent="@android:style/Theme.Material">
<style name="KeepassoidStyle" parent="android:Theme.Material">
<item name="android:actionBarStyle">@style/ActionBarStyle</item>
<item name="android:statusBarColor">@color/green_dark</item>
<item name="android:windowBackground">@color/background</item>
@@ -29,20 +30,9 @@
<item name="android:colorPrimary">@color/green</item>
<item name="android:colorPrimaryDark">@color/green_dark</item>
<item name="android:colorAccent">@color/green</item>
<item name="android:navigationBarColor">@color/green_dark</item>
</style>
<style name="ActionBarStyle" parent="@android:style/Widget.Material.ActionBar">
<item name="android:background">@color/green</item>
</style>
<style name="GroupTextSmall" parent="android:Theme.Material">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">15sp</item>
</style>
<style name="GroupText" parent="android:Theme.Material">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">20sp</item>
</style>
<style name="GroupTextLarge" parent="android:Theme.Material">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">28sp</item>
</style>
</resources>

View File

@@ -23,9 +23,7 @@
<color name="green">#43a047</color>
<color name="green_dark">#388e3c</color>
<color name="blue_highlight">#0000dd</color>
<color name="group">#ffffff</color>
<color name="background">#303030</color>
<color name="icon_background">#555555</color>
<color name="icon_text">#000000</color>
<color name="group_header_background">#888888</color>
</resources>

View File

@@ -15,6 +15,8 @@
limitations under the License.
-->
<resources>
<dimen name="activity_default_margin">12dp</dimen>
<dimen name="list_margin">5dp</dimen>
<dimen name="default_margin">12dp</dimen>
<dimen name="button_margin">5dp</dimen>
<dimen name="fab_margin">24dp</dimen>
</resources>

View File

@@ -37,50 +37,34 @@
<item name="android:textColor">@color/white</item>
<item name="android:background">@drawable/button_background</item>
</style>
<style name="GroupTextSmall" parent="android:Theme">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">15sp</item>
</style>
<style name="GroupText" parent="android:Theme">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">20sp</item>
</style>
<style name="GroupTextLarge" parent="android:Theme">
<item name="@android:textColor">@color/group</item>
<item name="@android:textSize">28sp</item>
</style>
<style name="ElementTextSmall">
<item name="@android:textSize">15sp</item>
</style>
<style name="ElementText">
<item name="@android:textSize">20sp</item>
</style>
<style name="ElementTextLarge">
<item name="@android:textSize">28sp</item>
</style>
<style name="GroupLabel">
<item name="@android:textSize">20sp</item>
</style>
<style name="Small">
<style name="ElementTextTitle" parent="android:TextAppearance">
<item name="@android:textColor">@color/white</item>
</style>
<style name="TinyTextStyle">
<item name="@android:textSize">12sp</item>
</style>
<style name="WhiteOnBlack">
<item name="@android:textColor">@android:color/primary_text_dark</item>
<item name="@android:textSize">20sp</item>
</style>
<style name="WhiteOnBlackSmall" parent="WhiteOnBlack">
<item name="@android:textSize">12sp</item>
</style>
<style name="DarkOnBlackSmall" parent="WhiteOnBlackSmall">
<style name="SmallTextStyle" parent="android:TextAppearance">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">15sp</item>
</style>
<style name="DefaultTextStyle" parent="android:TextAppearance">
<item name="@android:textColor">@color/white</item>
<item name="@android:textSize">16sp</item>
</style>
<style name="SecondaryText">
<item name="@android:textSize">14sp</item>
</style>
<style name="WarningTextStyle" parent="android:TextAppearance">
<item name="@android:textColor">@android:color/secondary_text_dark</item>
</style>
<style name="WhiteOnDarkSmall" parent="WhiteOnBlack">
<style name="LabelTextStyle" parent="android:TextAppearance">
<item name="@android:textSize">12sp</item>
<!-- <item name="@android:background">#222222</item> -->
</style>
<style name="ElementTextTitle" parent="WhiteOnBlack">
<item name="@android:textColor">@color/white</item>
</style>
<style name="EntryItem">
<item name="@android:padding">5sp</item>
</style>