diff --git a/app/src/main/java/com/keepassdroid/EntryEditActivityV4.java b/app/src/main/java/com/keepassdroid/EntryEditActivityV4.java index 4c08b83b4..86dd5c4eb 100644 --- a/app/src/main/java/com/keepassdroid/EntryEditActivityV4.java +++ b/app/src/main/java/com/keepassdroid/EntryEditActivityV4.java @@ -104,14 +104,7 @@ public class EntryEditActivityV4 extends EntryEditActivity { View iconPicker = findViewById(R.id.icon_button); iconPicker.setVisibility(View.GONE); - - 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 = findViewById(R.id.entry_user_name_label); - RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) user_label.getLayoutParams(); - lp.addRule(RelativeLayout.BELOW, R.id.divider_title); + } @Override diff --git a/app/src/main/java/com/keepassdroid/view/EntryEditSection.java b/app/src/main/java/com/keepassdroid/view/EntryEditSection.java index 7ee6d50ce..767e6714a 100644 --- a/app/src/main/java/com/keepassdroid/view/EntryEditSection.java +++ b/app/src/main/java/com/keepassdroid/view/EntryEditSection.java @@ -21,15 +21,14 @@ package com.keepassdroid.view; import android.content.Context; import android.util.AttributeSet; -import android.view.LayoutInflater; import android.widget.CheckBox; -import android.widget.RelativeLayout; +import android.widget.LinearLayout; import android.widget.TextView; import com.android.keepass.R; import com.keepassdroid.database.security.ProtectedString; -public class EntryEditSection extends RelativeLayout { +public class EntryEditSection extends LinearLayout { public EntryEditSection(Context context) { super(context); @@ -43,28 +42,6 @@ public class EntryEditSection extends RelativeLayout { super(context, attrs, defStyle); } - /* - public EntryEditSection(Context context, AttributeSet attrs, String title, ProtectedString value) { - super(context, attrs); - - LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); - inflate(inflater, context, title, value); - - fillData(title, value); - } - */ - - /* - private int getLayout() { - return R.layout.entry_edit_section; - } - - protected void inflate(LayoutInflater inflater, Context context, - String title, ProtectedString value) { - - inflater.inflate(getLayout(), this); - */ - public void setData(String title, ProtectedString value) { setText(R.id.title, title); setText(R.id.value, value.toString()); diff --git a/app/src/main/res/layout-v11/entry_section.xml b/app/src/main/res/layout-v11/entry_section.xml deleted file mode 100644 index f8500bed7..000000000 --- a/app/src/main/res/layout-v11/entry_section.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - diff --git a/app/src/main/res/layout-v11/entry_view_contents.xml b/app/src/main/res/layout-v11/entry_view_contents.xml deleted file mode 100644 index f767a32c7..000000000 --- a/app/src/main/res/layout-v11/entry_view_contents.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/entry_edit.xml b/app/src/main/res/layout/entry_edit.xml index 7c9205611..68444b8d4 100644 --- a/app/src/main/res/layout/entry_edit.xml +++ b/app/src/main/res/layout/entry_edit.xml @@ -30,150 +30,148 @@ android:layout_height="wrap_content" android:layout_below="@+id/toolbar" android:fillViewport="true"> - + - - - - + + + + + + + + + + + - - - + + + + + - - - + + + + + - - - - + + + + + + + + + + + - - - + + + + + - - - + + + + + + + - + . --> - - - - - + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/entry_section.xml b/app/src/main/res/layout/entry_section.xml index 744ac0ca3..22c8600fa 100644 --- a/app/src/main/res/layout/entry_section.xml +++ b/app/src/main/res/layout/entry_section.xml @@ -24,14 +24,12 @@ - + style="@style/KeepassoidStyle.TextAppearance.LabelTextStyle" /> + diff --git a/app/src/main/res/layout/entry_view_contents.xml b/app/src/main/res/layout/entry_view_contents.xml index f3a9f90d1..37e35d362 100644 --- a/app/src/main/res/layout/entry_view_contents.xml +++ b/app/src/main/res/layout/entry_view_contents.xml @@ -19,119 +19,108 @@ --> + android:id="@+id/entry_table" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:orientation="vertical"> - - - + + + - - - + + + - - - + + + - - - + + + + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + - - - + + + - - - + + + - - - + + + - - + + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c7228b0c4..1dc494c26 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -101,14 +101,16 @@ - - - - +