diff options
| author | Felix Bechstein <f@ub0r.de> | 2017-07-25 15:23:50 +0200 |
|---|---|---|
| committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2017-07-25 14:23:50 +0100 |
| commit | 5da9e67545644925902b04a11306289add29c033 (patch) | |
| tree | de8ec31c4fe216157b7680a4defdee86429a4122 /app/src/main/res/layout/encrypt_layout.xml | |
| parent | 5cba6c62d7b4628dfaf482dd883e333f93d323d4 (diff) | |
| download | HardenedPass-5da9e67545644925902b04a11306289add29c033.tar.gz HardenedPass-5da9e67545644925902b04a11306289add29c033.zip | |
Fix lint warnings (#319)
* Fix lint errors/warnings
Fix a lot of lint errors and warnings.
Most things are automatically applied fixes done with android studio:
* externalize strings
* remove unused code / classes / layouts / imports
* migrate some fields to local variables
* Remove dead code from comments
Removed code that is commented out long ago.
* remove unused resources
* colors
* strings
* drawables
* layouts
* menus
Diffstat (limited to 'app/src/main/res/layout/encrypt_layout.xml')
| -rw-r--r-- | app/src/main/res/layout/encrypt_layout.xml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/app/src/main/res/layout/encrypt_layout.xml b/app/src/main/res/layout/encrypt_layout.xml index 30ccfba4..ebb5e4dd 100644 --- a/app/src/main/res/layout/encrypt_layout.xml +++ b/app/src/main/res/layout/encrypt_layout.xml @@ -14,29 +14,31 @@ android:orientation="vertical"> <TextView + android:id="@+id/crypto_password_category" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textColor="@color/grey_500" - android:text="CATEGORY HERE" - android:id="@+id/crypto_password_category" android:layout_gravity="center_vertical" - android:textSize="18dp" + android:layout_marginLeft="@dimen/activity_horizontal_margin" + android:text="CATEGORY HERE" + android:textColor="@color/grey_500" android:textIsSelectable="false" - android:layout_marginLeft="@dimen/activity_horizontal_margin" /> + android:textSize="18dp" + tools:ignore="HardcodedText" /> <EditText - android:layout_gravity="center_vertical" + android:id="@+id/crypto_password_file_edit" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:id="@+id/crypto_password_file_edit" + android:layout_gravity="center_vertical" android:hint="@string/crypto_name_hint" android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium" + android:textColor="@color/accent" android:textSize="24dp" - android:textColor="@color/accent" /> + tools:ignore="TextFields" /> </LinearLayout> <ScrollView android:layout_width="fill_parent" - android:layout_height="fill_parent" + android:layout_height="0dp" android:layout_marginTop="@dimen/activity_vertical_margin" android:layout_marginBottom="@dimen/activity_vertical_margin" android:layout_weight="1"> @@ -65,11 +67,9 @@ <EditText android:id="@+id/crypto_password_edit" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="0dp" android:typeface="monospace" - android:layout_weight="1" - android:layout_toRightOf="@+id/textView2" - android:layout_toEndOf="@+id/textView2" /> + android:layout_weight="1" /> <Button android:layout_height="wrap_content" |
