Merge branch 'feature/Entry_Edit_BottomBar' into develop

This commit is contained in:
J-Jamet committed 2020-03-14 10:36:52 +01:00
commit d140b453b2
34 files changed
+380 -352

No files matched your search

@@ -26,9 +26,10 @@ import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.ScrollView
import androidx.appcompat.widget.ActionMenuView
import androidx.appcompat.widget.Toolbar
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.widget.NestedScrollView
import com.kunzisoft.keepass.R
import com.kunzisoft.keepass.activities.dialogs.GeneratePasswordDialogFragment
import com.kunzisoft.keepass.activities.dialogs.IconPickerDialogFragment
@@ -70,8 +71,9 @@ class EntryEditActivity : LockingActivity(),
// Views
private var coordinatorLayout: CoordinatorLayout? = null
private var scrollView: ScrollView? = null
private var scrollView: NestedScrollView? = null
private var entryEditContentsView: EntryEditContentsView? = null
private var entryEditAddToolBar: ActionMenuView? = null
private var saveView: View? = null
// Education
@@ -167,17 +169,49 @@ class EntryEditActivity : LockingActivity(),
// Add listener to the icon
entryEditContentsView?.setOnIconViewClickListener { IconPickerDialogFragment.launch(this@EntryEditActivity) }
// Generate password button
entryEditContentsView?.setOnPasswordGeneratorClickListener { openPasswordGenerator() }
// Bottom Bar
entryEditAddToolBar = findViewById(R.id.entry_edit_bottom_bar)
entryEditAddToolBar?.apply {
menuInflater.inflate(R.menu.entry_edit, menu)
menu.findItem(R.id.menu_add_field).apply {
val allowCustomField = mNewEntry?.allowCustomFields() == true
isEnabled = allowCustomField
isVisible = allowCustomField
}
menu.findItem(R.id.menu_add_otp).apply {
val allowOTP = mDatabase?.allowOTP == true
isEnabled = allowOTP
isVisible = allowOTP
}
setOnMenuItemClickListener { item ->
when (item.itemId) {
R.id.menu_generate_password -> {
openPasswordGenerator()
true
}
R.id.menu_add_field -> {
addNewCustomField()
true
}
R.id.menu_add_otp -> {
// Retrieve the current otpElement if exists
// and open the dialog to set up the OTP
SetOTPDialogFragment.build(mEntry?.getOtpElement()?.otpModel)
.show(supportFragmentManager, "addOTPDialog")
true
}
else -> true
}
}
}
// Save button
saveView = findViewById(R.id.entry_edit_save)
saveView?.setOnClickListener { saveEntry() }
entryEditContentsView?.allowCustomField(mNewEntry?.allowCustomFields() == true) {
addNewCustomField()
}
// Verify the education views
entryEditActivityEducation = EntryEditActivityEducation(this)
@@ -307,8 +341,6 @@ class EntryEditActivity : LockingActivity(),
// Save database not needed here
menu.findItem(R.id.menu_save_database)?.isVisible = false
MenuUtil.contributionMenuInflater(inflater, menu)
if (mDatabase?.allowOTP == true)
inflater.inflate(R.menu.entry_otp, menu)
entryEditActivityEducation?.let {
Handler().post { performedNextEducation(it) }
@@ -318,8 +350,8 @@ class EntryEditActivity : LockingActivity(),
}
private fun performedNextEducation(entryEditActivityEducation: EntryEditActivityEducation) {
val passwordView = entryEditContentsView?.generatePasswordView
val addNewFieldView = entryEditContentsView?.addNewFieldButton
val passwordView: View? = null// TODO entryEditContentsView?.generatePasswordView
val addNewFieldView: View? = null // TODO entryEditContentsView?.addNewFieldButton
val generatePasswordEducationPerformed = passwordView != null
&& entryEditActivityEducation.checkAndPerformedGeneratePasswordEducation(
@@ -356,13 +388,6 @@ class EntryEditActivity : LockingActivity(),
MenuUtil.onContributionItemSelected(this)
return true
}
R.id.menu_add_otp -> {
// Retrieve the current otpElement if exists
// and open the dialog to set up the OTP
SetOTPDialogFragment.build(mEntry?.getOtpElement()?.otpModel)
.show(supportFragmentManager, "addOTPDialog")
return true
}
android.R.id.home -> finish()
}
@@ -24,7 +24,6 @@ import android.graphics.Color
import com.google.android.material.textfield.TextInputLayout
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.ImageView
@@ -52,10 +51,8 @@ class EntryEditContentsView @JvmOverloads constructor(context: Context,
private val entryPasswordLayoutView: TextInputLayout
private val entryPasswordView: EditText
private val entryConfirmationPasswordView: EditText
val generatePasswordView: View
private val entryCommentView: EditText
private val entryExtraFieldsContainer: ViewGroup
val addNewFieldButton: View
private var iconColor: Int = 0
@@ -71,10 +68,8 @@ class EntryEditContentsView @JvmOverloads constructor(context: Context,
entryPasswordLayoutView = findViewById(R.id.entry_edit_container_password)
entryPasswordView = findViewById(R.id.entry_edit_password)
entryConfirmationPasswordView = findViewById(R.id.entry_edit_confirmation_password)
generatePasswordView = findViewById(R.id.entry_edit_generate_button)
entryCommentView = findViewById(R.id.entry_edit_notes)
entryExtraFieldsContainer = findViewById(R.id.entry_edit_advanced_container)
addNewFieldButton = findViewById(R.id.entry_edit_add_new_field)
// Retrieve the textColor to tint the icon
val taIconColor = context.theme.obtainStyledAttributes(intArrayOf(android.R.attr.textColor))
@@ -141,10 +136,6 @@ class EntryEditContentsView @JvmOverloads constructor(context: Context,
}
}
fun setOnPasswordGeneratorClickListener(clickListener: () -> Unit) {
generatePasswordView.setOnClickListener { clickListener.invoke() }
}
var notes: String
get() {
return entryCommentView.text.toString()
@@ -155,18 +146,6 @@ class EntryEditContentsView @JvmOverloads constructor(context: Context,
entryCommentView.applyFontVisibility()
}
fun allowCustomField(allow: Boolean, action: () -> Unit) {
addNewFieldButton.apply {
if (allow) {
visibility = View.VISIBLE
setOnClickListener { action.invoke() }
} else {
visibility = View.GONE
setOnClickListener(null)
}
}
}
val customFields: MutableList<Field>
get() {
val customFieldsArray = ArrayList<Field>()
@@ -1,12 +0,0 @@
<?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>
<shape>
<stroke android:color="?attr/colorAccent" android:width="1dp"/>
<solid android:color="@color/transparent"/>
</shape>
</item>
</ripple>
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<stroke android:color="@color/grey" android:width="1dp"/>
<solid android:color="@color/transparent"/>
</shape>
</item>
</layer-list>
@@ -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="#FFFFFF"
android:pathData="M16.5,6v11.5c0,2.21 -1.79,4 -4,4s-4,-1.79 -4,-4V5c0,-1.38 1.12,-2.5 2.5,-2.5s2.5,1.12 2.5,2.5v10.5c0,0.55 -0.45,1 -1,1s-1,-0.45 -1,-1V6H10v9.5c0,1.38 1.12,2.5 2.5,2.5s2.5,-1.12 2.5,-2.5V5c0,-2.21 -1.79,-4 -4,-4S7,2.79 7,5v12.5c0,3.04 2.46,5.5 5.5,5.5s5.5,-2.46 5.5,-5.5V6h-1.5z"/>
</vector>
+61 -34
View File
@@ -17,36 +17,63 @@
You should have received a copy of the GNU General Public License
along with KeePassDX. If not, see <http://www.gnu.org/licenses/>.
-->
<androidx.coordinatorlayout.widget.CoordinatorLayout
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/entry_edit_coordinator_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:importantForAutofill="noExcludeDescendants"
tools:targetApi="o" >
<androidx.constraintlayout.widget.ConstraintLayout
<include
android:id="@+id/toolbar"
layout="@layout/toolbar_default"
android:elevation="0dp"
app:layout_constraintTop_toTopOf="parent"/>
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/entry_edit_coordinator_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintBottom_toBottomOf="parent">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar_default"
app:layout_constraintTop_toTopOf="parent"/>
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="?attr/colorPrimaryDark">
<ScrollView
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/toolbar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="enterAlways|enterAlwaysCollapsed|scroll|snap">
<androidx.appcompat.widget.Toolbar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:theme="?attr/toolbarAppearance"
android:popupTheme="?attr/toolbarPopupAppearance">
<androidx.appcompat.widget.ActionMenuView
android:id="@+id/entry_edit_bottom_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="parallax"/>
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:id="@+id/entry_edit_scroll"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:fillViewport="true"
android:scrollbars="none">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbarStyle="insideOverlay"
android:scrollbars="none"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
@@ -56,24 +83,24 @@
android:id="@+id/entry_edit_contents"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintWidth_percent="@dimen/content_percent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_percent="@dimen/content_percent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/entry_edit_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:src="@drawable/ic_save_white_24dp"
android:contentDescription="@string/content_description_entry_save"
android:layout_margin="16dp"
app:useCompatPadding="true"
style="@style/KeepassDXStyle.Fab"/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/entry_edit_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_anchor="@+id/toolbar_layout"
app:layout_anchorGravity="bottom|end"
android:src="@drawable/ic_save_white_24dp"
android:contentDescription="@string/content_description_entry_save"
app:useCompatPadding="true"
style="@style/KeepassDXStyle.Fab"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -25,168 +25,150 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:padding="@dimen/default_margin"
android:orientation="vertical"
<androidx.cardview.widget.CardView
android:id="@+id/entry_edit_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/default_margin"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/entry_edit_icon_button"
android:layout_width="wrap_content"
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:src="@drawable/ic_blank_32dp"
android:contentDescription="@string/content_description_entry_icon"
android:layout_gravity="center"/>
<!-- Title -->
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/entry_edit_container_title"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_title"/>
</com.google.android.material.textfield.TextInputLayout>
<!-- Username -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_user_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_user_name"/>
</com.google.android.material.textfield.TextInputLayout>
<!-- Password -->
<RelativeLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/entry_edit_container_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:passwordToggleEnabled="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/entry_edit_generate_button"
android:layout_toStartOf="@+id/entry_edit_generate_button">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_password"/>
</com.google.android.material.textfield.TextInputLayout>
<!-- Confirm Password -->
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/entry_edit_container_confirmation_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
app:passwordToggleEnabled="true"
android:contentDescription="@string/content_description_repeat_toggle_password_visibility"
android:layout_toLeftOf="@+id/entry_edit_generate_button"
android:layout_toStartOf="@+id/entry_edit_generate_button"
android:layout_below="@+id/entry_edit_container_password">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_confirmation_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_confpassword"/>
</com.google.android.material.textfield.TextInputLayout>
android:layout_margin="@dimen/default_margin">
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/entry_edit_generate_button"
android:layout_width="48dp"
android:layout_height="48dp"
android:padding="12dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_margin="8dp"
android:src="@drawable/ic_key_white_24dp"
android:contentDescription="@string/content_description_password_generator"
android:tint="?attr/colorAccent"/>
</RelativeLayout>
<!-- URL -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_url"
android:layout_width="match_parent"
android:id="@+id/entry_edit_icon_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textUri"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_url"/>
</com.google.android.material.textfield.TextInputLayout>
android:layout_margin="4dp"
android:src="@drawable/ic_blank_32dp"
android:contentDescription="@string/content_description_entry_icon"
android:layout_gravity="center"/>
<!-- Comment -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_notes"
<!-- Title -->
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/entry_edit_container_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:maxLines="20"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:inputType="textMultiLine"
android:hint="@string/entry_notes"/>
</com.google.android.material.textfield.TextInputLayout>
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/entry_edit_advanced_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_title"/>
</com.google.android.material.textfield.TextInputLayout>
<!-- Username -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_user_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_user_name"/>
</com.google.android.material.textfield.TextInputLayout>
<!-- Password -->
<RelativeLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/entry_edit_container_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:passwordToggleEnabled="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_password"/>
</com.google.android.material.textfield.TextInputLayout>
<!-- Confirm Password -->
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/entry_edit_container_confirmation_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
app:passwordToggleEnabled="true"
android:contentDescription="@string/content_description_repeat_toggle_password_visibility"
android:layout_below="@+id/entry_edit_container_password">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_confirmation_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_confpassword"/>
</com.google.android.material.textfield.TextInputLayout>
</RelativeLayout>
<!-- URL -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textUri"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:maxLines="1"
android:hint="@string/entry_url"/>
</com.google.android.material.textfield.TextInputLayout>
<!-- Comment -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/entry_edit_notes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:maxLines="20"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:inputType="textMultiLine"
android:hint="@string/entry_notes"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/entry_edit_add_new_field"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_add_white_24dp"
android:contentDescription="@string/content_description_add_field"
android:tint="?attr/colorAccent"
android:scaleType="centerCrop"/>
<LinearLayout
android:id="@+id/entry_edit_advanced_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="@dimen/default_margin"
android:paddingBottom="@dimen/default_margin"
app:layout_constraintTop_toBottomOf="@+id/entry_edit_container">
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -17,76 +17,85 @@
You should have received a copy of the GNU General Public License
along with KeePassDX. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/default_margin"
android:importantForAutofill="noExcludeDescendants"
android:background="@drawable/background_stroke_element"
tools:targetApi="o">
android:layout_marginEnd="@dimen/default_margin"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_marginBottom="@dimen/default_margin">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/title_container"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="12dp"
android:paddingLeft="12dp"
android:paddingStart="12dp"
android:paddingRight="12dp"
android:paddingEnd="12dp">
android:importantForAutofill="noExcludeDescendants"
tools:targetApi="o">
<EditText
android:id="@+id/entry_new_field_label"
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/title_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/field_name"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:inputType="text"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
android:paddingTop="12dp"
android:paddingLeft="@dimen/default_margin"
android:paddingStart="@dimen/default_margin"
android:paddingRight="@dimen/default_margin"
android:paddingEnd="@dimen/default_margin">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/entry_new_field_delete"
android:layout_width="48dp"
android:layout_height="48dp"
android:padding="12dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:src="@drawable/ic_close_white_24dp"
android:contentDescription="@string/content_description_remove_field"
android:tint="?attr/colorAccent" />
<EditText
android:id="@+id/entry_new_field_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/field_name"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:inputType="text"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/protection"
style="@style/KeepassDXStyle.TextAppearance.Default"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:layout_below="@+id/value_container"
android:layout_centerHorizontal="true"
android:text="@string/protection" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/entry_new_field_delete"
android:layout_width="48dp"
android:layout_height="48dp"
android:padding="12dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:src="@drawable/ic_close_white_24dp"
android:contentDescription="@string/content_description_remove_field"
android:tint="?attr/colorAccent" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/value_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="12dp"
android:paddingStart="12dp"
android:paddingRight="12dp"
android:paddingEnd="12dp"
android:layout_below="@+id/title_container">
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/protection"
style="@style/KeepassDXStyle.TextAppearance.Default"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:layout_below="@+id/value_container"
android:layout_centerHorizontal="true"
android:text="@string/protection" />
<EditText
android:id="@+id/entry_new_field_value"
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/value_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:hint="@string/field_value" />
</com.google.android.material.textfield.TextInputLayout>
android:paddingLeft="@dimen/default_margin"
android:paddingStart="@dimen/default_margin"
android:paddingRight="@dimen/default_margin"
android:paddingEnd="@dimen/default_margin"
android:layout_below="@+id/title_container">
</RelativeLayout>
<EditText
android:id="@+id/entry_new_field_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:importantForAccessibility="no"
android:importantForAutofill="no"
android:hint="@string/field_value" />
</com.google.android.material.textfield.TextInputLayout>
</RelativeLayout>
</androidx.cardview.widget.CardView>
@@ -19,9 +19,26 @@
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/menu_generate_password"
android:icon="@drawable/ic_key_white_24dp"
android:title="@string/entry_password_generator"
android:orderInCategory="91"
app:showAsAction="always" />
<item android:id="@+id/menu_add_field"
android:icon="@drawable/ic_add_white_24dp"
android:title="@string/entry_add_field"
android:orderInCategory="92"
app:showAsAction="always" />
<!--
<item android:id="@+id/menu_add_attachment"
android:icon="@drawable/ic_attach_file_white_24dp"
android:title="@string/entry_add_attachment"
android:orderInCategory="93"
app:showAsAction="ifRoom" />
-->
<item android:id="@+id/menu_add_otp"
android:icon="@drawable/ic_av_timer_white_24dp"
android:title="@string/entry_setup_otp"
android:orderInCategory="91"
android:orderInCategory="94"
app:showAsAction="ifRoom" />
</menu>
+2 -2
View File
@@ -259,7 +259,7 @@
<string name="content_description_add_entry">إضافة إدخال</string>
<string name="content_description_add_group">إضافة مجموعة</string>
<string name="content_description_file_information">معلومات الملف</string>
<string name="content_description_password_generator">مولد كلمة السر</string>
<string name="entry_password_generator">مولد كلمة السر</string>
<string name="content_description_background">الخلفية</string>
<string name="rounds">دورات التحويل</string>
<string name="rounds_explanation">توفر الدورات الاضافية ضد هجوم توليد التركيبات ،لكنها تبطئ التحميل والحفظ.</string>
@@ -273,7 +273,7 @@
<string name="content_description_entry_icon">ايقونة المدخل</string>
<string name="content_description_entry_save">حفظ المدخل</string>
<string name="content_description_password_length">طول كلمة السر</string>
<string name="content_description_add_field">أضف حقل</string>
<string name="entry_add_field">أضف حقل</string>
<string name="content_description_remove_field">أزل حقل</string>
<string name="error_move_entry_here">لا يمكنك نقل مدخل هنا.</string>
<string name="error_copy_entry_here">لا يمكنك نسخ مدخل هنا.</string>
+2 -2
View File
@@ -362,9 +362,9 @@
<string name="content_description_repeat_toggle_password_visibility">Přepni ukázání hesla</string>
<string name="content_description_entry_icon">Ikona záznamu</string>
<string name="content_description_entry_save">Uložit záznam</string>
<string name="content_description_password_generator">Generátor hesel</string>
<string name="entry_password_generator">Generátor hesel</string>
<string name="content_description_password_length">Délka hesla</string>
<string name="content_description_add_field">Přidej pole</string>
<string name="entry_add_field">Přidej pole</string>
<string name="content_description_remove_field">Odebrat pole</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Sem záznam přesunout nelze.</string>
+2 -2
View File
@@ -361,9 +361,9 @@
<string name="content_description_repeat_toggle_password_visibility">Gentag for at skifte synlighed for adgangskode</string>
<string name="content_description_entry_icon">Indtastningsikon</string>
<string name="content_description_entry_save">Gem indtastning</string>
<string name="content_description_password_generator">Adgangskodegenerator</string>
<string name="entry_password_generator">Adgangskodegenerator</string>
<string name="content_description_password_length">Længde på adgangskode</string>
<string name="content_description_add_field">Tilføj felt</string>
<string name="entry_add_field">Tilføj felt</string>
<string name="content_description_remove_field">Fjern felt</string>
<string name="entry_UUID">UUID</string>
<string name="list_groups_show_number_entries_title">Vis antal poster</string>
+2 -2
View File
@@ -358,9 +358,9 @@
<string name="content_description_file_information">Datei-Informationen</string>
<string name="content_description_entry_icon">Symbol für den Eintrag</string>
<string name="content_description_entry_save">Eintrag speichern</string>
<string name="content_description_password_generator">Passwort-Generator</string>
<string name="entry_password_generator">Passwort-Generator</string>
<string name="content_description_password_length">Passwortlänge</string>
<string name="content_description_add_field">Feld hinzufügen</string>
<string name="entry_add_field">Feld hinzufügen</string>
<string name="content_description_remove_field">Feld entfernen</string>
<string name="entry_UUID">UUID</string>
<string name="list_groups_show_number_entries_title">Anzahl der Einträge anzeigen</string>
+2 -2
View File
@@ -341,9 +341,9 @@
<string name="content_description_repeat_toggle_password_visibility">Επανάληψη της ορατότητας του κωδικού πρόσβασης</string>
<string name="content_description_entry_icon">Εικονίδιο καταχώρησης</string>
<string name="content_description_entry_save">Αποθήκευση καταχώρησης</string>
<string name="content_description_password_generator">Γεννήτρια κωδικού πρόσβασης</string>
<string name="entry_password_generator">Γεννήτρια κωδικού πρόσβασης</string>
<string name="content_description_password_length">Μήκος κωδικού πρόσβασης</string>
<string name="content_description_add_field">Προσθήκη πεδίου</string>
<string name="entry_add_field">Προσθήκη πεδίου</string>
<string name="content_description_remove_field">Αφαίρεση πεδίου</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Δεν μπορείτε να μετακινήσετε μια καταχώρηση εδώ.</string>
+2 -2
View File
@@ -354,9 +354,9 @@
<string name="content_description_password_checkbox">Casilla de contraseña</string>
<string name="content_description_keyfile_checkbox">Casilla de archivo de clave</string>
<string name="content_description_entry_icon">Icono de entrada</string>
<string name="content_description_password_generator">Generador de contraseñas</string>
<string name="entry_password_generator">Generador de contraseñas</string>
<string name="content_description_password_length">Longitud de contraseña</string>
<string name="content_description_add_field">Añadir campo</string>
<string name="entry_add_field">Añadir campo</string>
<string name="content_description_remove_field">Quitar campo</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">No puede desplazar entradas aquí.</string>
+2 -2
View File
@@ -367,9 +367,9 @@
<string name="content_description_add_group">Ajouter un groupe</string>
<string name="content_description_entry_icon">Icône de l’entrée</string>
<string name="content_description_entry_save">Enregistrer l’entrée</string>
<string name="content_description_password_generator">Générateur de mots de passe</string>
<string name="entry_password_generator">Générateur de mots de passe</string>
<string name="content_description_password_length">Longueur de mot de passe</string>
<string name="content_description_add_field">Ajouter un champ</string>
<string name="entry_add_field">Ajouter un champ</string>
<string name="content_description_remove_field">Supprimer un champ</string>
<string name="entry_UUID">UUID</string>
<string name="list_groups_show_number_entries_title">Afficher le nombre d’entrées</string>
+2 -2
View File
@@ -69,9 +69,9 @@
<string name="content_description_repeat_toggle_password_visibility">पासवर्ड दृश्यता टॉगल दोहराएं</string>
<string name="content_description_entry_icon">प्रवेश आइकन</string>
<string name="content_description_entry_save">प्रविष्टि सहेजें</string>
<string name="content_description_password_generator">पासवर्ड जनरेटर</string>
<string name="entry_password_generator">पासवर्ड जनरेटर</string>
<string name="content_description_password_length">पासवर्ड की लंबाई</string>
<string name="content_description_add_field">फ़ील्ड जोड़ें</string>
<string name="entry_add_field">फ़ील्ड जोड़ें</string>
<string name="content_description_remove_field">फ़ील्ड निकालें</string>
<string name="entry_UUID">UUID</string>
<string name="file_manager_install_description">"डेटाबेस फाइल को बनाने खोलने और सेव करने के लिए आपके फोन में फाइल मैनेजर ऐप होना चाहिए जोकि दिए गए एक्शन को सपोर्ट कर सके ACTION_CREATE_DOCUMENT और ACTION_OPEN_DOCUMENT"</string>
+2 -2
View File
@@ -31,9 +31,9 @@
<string name="content_description_file_information">Informacije o datoteci</string>
<string name="content_description_entry_icon">Ikona unosa</string>
<string name="content_description_entry_save">Spremi unos</string>
<string name="content_description_password_generator">Generator lozinke</string>
<string name="entry_password_generator">Generator lozinke</string>
<string name="content_description_password_length">Duljina lozinke</string>
<string name="content_description_add_field">Dodaj polje</string>
<string name="entry_add_field">Dodaj polje</string>
<string name="content_description_remove_field">Ukloni polje</string>
<string name="content_description_update_from_list">Ažuriraj</string>
<string name="content_description_remove_from_list">Ukloni</string>
+2 -2
View File
@@ -365,9 +365,9 @@
<string name="content_description_keyfile_checkbox">Casella di controllo Keyfile</string>
<string name="content_description_repeat_toggle_password_visibility">Ripeti attivare / disattivare la visibilità della password</string>
<string name="content_description_entry_icon">Icona</string>
<string name="content_description_password_generator">Generatore di password</string>
<string name="entry_password_generator">Generatore di password</string>
<string name="content_description_password_length">Lunghezza della password</string>
<string name="content_description_add_field">Aggiungi un campo</string>
<string name="entry_add_field">Aggiungi un campo</string>
<string name="content_description_remove_field">Rimuovi un campo</string>
<string name="error_move_entry_here">Non è possibile spostare una voce qui.</string>
<string name="error_copy_entry_here">Non è possibile copiare una voce qui.</string>
+2 -2
View File
@@ -194,9 +194,9 @@
<string name="content_description_file_information">ファイル情報</string>
<string name="content_description_entry_icon">エントリーのアイコン</string>
<string name="content_description_entry_save">エントリーの保存</string>
<string name="content_description_password_generator">パスワード生成</string>
<string name="entry_password_generator">パスワード生成</string>
<string name="content_description_password_length">パスワードの長さ</string>
<string name="content_description_add_field">フィールドの追加</string>
<string name="entry_add_field">フィールドの追加</string>
<string name="content_description_remove_field">フィールドの削除</string>
<string name="error_move_entry_here">エントリーを移動できませんでした。</string>
<string name="error_copy_entry_here">エントリーをコピーできませんでした。</string>
+2 -2
View File
@@ -163,9 +163,9 @@
<string name="content_description_password_checkbox">비밀번호 체크박스</string>
<string name="content_description_keyfile_checkbox">내용_설명_키파일_체크박스</string>
<string name="content_description_repeat_toggle_password_visibility">토글 비밀번호 가시성 반복</string>
<string name="content_description_password_generator">비밀번호 생성</string>
<string name="entry_password_generator">비밀번호 생성</string>
<string name="content_description_password_length">비밀번호 길이</string>
<string name="content_description_add_field">필드 추가</string>
<string name="entry_add_field">필드 추가</string>
<string name="content_description_remove_field">필드 제거</string>
<string name="error_move_entry_here">항목을 여기로 옮길 수 없습니다.</string>
<string name="error_copy_entry_here">항목을 여기로 복사할 수 없습니다.</string>
+2 -2
View File
@@ -341,9 +341,9 @@
<string name="content_description_add_entry">Legg til oppføring</string>
<string name="content_description_add_group">Legg til gruppe</string>
<string name="content_description_file_information">Filinfo</string>
<string name="content_description_password_generator">Passordgenerator</string>
<string name="entry_password_generator">Passordgenerator</string>
<string name="content_description_password_length">Passordslengde</string>
<string name="content_description_add_field">Legg til felt</string>
<string name="entry_add_field">Legg til felt</string>
<string name="content_description_remove_field">Fjern felt</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Du kan ikke flytte en oppføring hit.</string>
+2 -2
View File
@@ -368,9 +368,9 @@
<string name="content_description_repeat_toggle_password_visibility">Weergave van het wachtwoord wisselen</string>
<string name="content_description_entry_icon">Item-icoon</string>
<string name="content_description_entry_save">Item opslaan</string>
<string name="content_description_password_generator">Wachtwoordgenerator</string>
<string name="entry_password_generator">Wachtwoordgenerator</string>
<string name="content_description_password_length">Wachtwoordlengte</string>
<string name="content_description_add_field">Veld toevoegen</string>
<string name="entry_add_field">Veld toevoegen</string>
<string name="content_description_remove_field">Veld verwijderen</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Je kan hier geen item plaatsen.</string>
+2 -2
View File
@@ -355,9 +355,9 @@
<string name="content_description_file_information">Informacje o pliku</string>
<string name="content_description_entry_icon">Ikona wpisu</string>
<string name="content_description_entry_save">Zapisz wpis</string>
<string name="content_description_password_generator">Generator haseł</string>
<string name="entry_password_generator">Generator haseł</string>
<string name="content_description_password_length">Długość hasła</string>
<string name="content_description_add_field">Dodaj pole</string>
<string name="entry_add_field">Dodaj pole</string>
<string name="content_description_remove_field">Usuń pole</string>
<string name="error_copy_entry_here">Nie możesz tutaj skopiować wpisu.</string>
<string name="list_groups_show_number_entries_title">Pokaż liczbę wpisów</string>
+2 -2
View File
@@ -359,9 +359,9 @@
<string name="content_description_add_group">Adicionar grupo</string>
<string name="content_description_file_information">Informações do arquivo</string>
<string name="content_description_entry_icon">Ícone da entrada</string>
<string name="content_description_password_generator">Gerador de senhas</string>
<string name="entry_password_generator">Gerador de senhas</string>
<string name="content_description_password_length">Comprimento da senha</string>
<string name="content_description_add_field">Adicionar campo</string>
<string name="entry_add_field">Adicionar campo</string>
<string name="content_description_remove_field">Remover campo</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Você não pode mover uma entrada para cá.</string>
+2 -2
View File
@@ -358,9 +358,9 @@
<string name="content_description_repeat_toggle_password_visibility">Repetir alternar a visibilidade da palavra-passe</string>
<string name="content_description_entry_icon">Ícone da entrada</string>
<string name="content_description_entry_save">Gravação de entrada</string>
<string name="content_description_password_generator">Gerador de palavras-passe</string>
<string name="entry_password_generator">Gerador de palavras-passe</string>
<string name="content_description_password_length">Comprimento da palavra-passe</string>
<string name="content_description_add_field">Adicionar campo</string>
<string name="entry_add_field">Adicionar campo</string>
<string name="content_description_remove_field">Remover campo</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Você não pode mover uma entrada para cá.</string>
+2 -2
View File
@@ -37,9 +37,9 @@
<string name="content_description_repeat_toggle_password_visibility">Repetați pentru a comuta vizibilitatea parolei</string>
<string name="content_description_entry_icon">Pictograma de intrare</string>
<string name="content_description_entry_save">Salvați intrarea</string>
<string name="content_description_password_generator">Generator de parole</string>
<string name="entry_password_generator">Generator de parole</string>
<string name="content_description_password_length">Lungimea parolei</string>
<string name="content_description_add_field">Adăugați câmp</string>
<string name="entry_add_field">Adăugați câmp</string>
<string name="content_description_remove_field">Elimina câmp</string>
<string name="content_description_update_from_list">Actualizați</string>
<string name="content_description_remove_from_list">Elimina</string>
+2 -2
View File
@@ -361,9 +361,9 @@
<string name="content_description_repeat_toggle_password_visibility">Повтор переключения видимости пароля</string>
<string name="content_description_entry_icon">Значок записи</string>
<string name="content_description_entry_save">Сохранение записи</string>
<string name="content_description_password_generator">Генератор паролей</string>
<string name="entry_password_generator">Генератор паролей</string>
<string name="content_description_password_length">Длина пароля</string>
<string name="content_description_add_field">Добавить поле</string>
<string name="entry_add_field">Добавить поле</string>
<string name="content_description_remove_field">Удалить поле</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Вы не можете переместить запись сюда.</string>
+1 -1
View File
@@ -157,7 +157,7 @@
<string name="content_description_open_file">Otvoriť súbor</string>
<string name="content_description_file_information">Informácie o súbore</string>
<string name="content_description_entry_save">Uložiť záznam</string>
<string name="content_description_password_generator">Generátor hesla</string>
<string name="entry_password_generator">Generátor hesla</string>
<string name="content_description_password_length">Dĺžka hesla</string>
<string name="content_description_background">Pozadie</string>
<string name="security">Bezpečnosť</string>
+2 -2
View File
@@ -173,9 +173,9 @@
<string name="content_description_repeat_toggle_password_visibility">Repetera växla lösenordssynlighet</string>
<string name="content_description_entry_icon">Post-ikon</string>
<string name="content_description_entry_save">Spara post</string>
<string name="content_description_password_generator">Lösenordsgenerator</string>
<string name="entry_password_generator">Lösenordsgenerator</string>
<string name="content_description_password_length">Lösenords längd</string>
<string name="content_description_add_field">Lägg till fält</string>
<string name="entry_add_field">Lägg till fält</string>
<string name="content_description_remove_field">Ta bort fält</string>
<string name="content_description_background">Bakgrund</string>
<string name="content_description_update_from_list">Uppdatera</string>
+2 -2
View File
@@ -336,9 +336,9 @@
<string name="content_description_password_checkbox">Parola onay kutusu</string>
<string name="content_description_keyfile_checkbox">Anahtar dosyası onay kutusu</string>
<string name="content_description_entry_icon">Giriş simgesi</string>
<string name="content_description_password_generator">Parola üreteci</string>
<string name="entry_password_generator">Parola üreteci</string>
<string name="content_description_password_length">Parola uzunluğu</string>
<string name="content_description_add_field">Alan ekle</string>
<string name="entry_add_field">Alan ekle</string>
<string name="content_description_remove_field">Alanı kaldır</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">Buraya bir girişi taşıyamazsınız.</string>
+2 -2
View File
@@ -364,9 +364,9 @@
<string name="content_description_repeat_toggle_password_visibility">重复切换密码可见性</string>
<string name="content_description_entry_icon">条目图标</string>
<string name="content_description_entry_save">保存条目</string>
<string name="content_description_password_generator">密码生成器</string>
<string name="entry_password_generator">密码生成器</string>
<string name="content_description_password_length">密码长度</string>
<string name="content_description_add_field">添加字段</string>
<string name="entry_add_field">添加字段</string>
<string name="content_description_remove_field">删除字段</string>
<string name="entry_UUID">UUID</string>
<string name="error_move_entry_here">无法移动条目到此处。</string>
+2 -2
View File
@@ -166,7 +166,7 @@
<string name="key_derivation_function">金鑰推算函數</string>
<string name="edit_entry">編輯入口</string>
<string name="content_description_open_file">開啟檔案</string>
<string name="content_description_password_generator">密碼產生器</string>
<string name="entry_password_generator">密碼產生器</string>
<string name="entry_UUID">UUID</string>
<string name="content_description_background">背景</string>
<string name="content_description_update_from_list">更新</string>
@@ -187,7 +187,7 @@
<string name="content_description_entry_icon">條目圖示</string>
<string name="content_description_entry_save">條目保存</string>
<string name="content_description_password_length">密碼長度</string>
<string name="content_description_add_field">添加欄位</string>
<string name="entry_add_field">添加欄位</string>
<string name="content_description_remove_field">刪除欄位</string>
<string name="master_key">主密鑰</string>
<string name="menu_master_key_settings">主密鑰設定</string>
+3 -2
View File
@@ -58,9 +58,10 @@
<string name="content_description_repeat_toggle_password_visibility">Repeat toggle password visibility</string>
<string name="content_description_entry_icon">Entry icon</string>
<string name="content_description_entry_save">Save entry</string>
<string name="content_description_password_generator">Password generator</string>
<string name="entry_password_generator">Password generator</string>
<string name="content_description_password_length">Password length</string>
<string name="content_description_add_field">Add field</string>
<string name="entry_add_field">Add field</string>
<string name="entry_add_attachment">Add attachment</string>
<string name="content_description_remove_field">Remove field</string>
<string name="content_description_update_from_list">Update</string>
<string name="content_description_remove_from_list">Remove</string>