-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate preferences to AndroidX, separate one large settings fragment…
… into many smaller ones to get rid of "ToolbarPreference" workaround
- Loading branch information
Showing
25 changed files
with
1,415 additions
and
1,741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/keepass2android-appSdkStyle/Resources/layout/database_kdf_settings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
This file is part of Keepass2Android, Copyright 2013 Philipp Crocoll. This file is based on Keepassdroid, Copyright Brian Pellin. | ||
Keepass2Android is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 2 of the License, or | ||
(at your option) any later version. | ||
Keepass2Android is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Keepass2Android. 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"> | ||
<EditText android:id="@+id/rounds" | ||
android:hint="@string/rounds_hint" | ||
android:layout_height="wrap_content" | ||
android:layout_width="fill_parent" | ||
android:inputType="number"/> | ||
<TextView android:id="@+id/rounds_explaination" | ||
android:layout_height="wrap_content" | ||
android:layout_width="wrap_content" | ||
android:layout_below="@id/rounds"/> | ||
</RelativeLayout> |
23 changes: 8 additions & 15 deletions
23
src/keepass2android-appSdkStyle/Resources/layout/preference.axml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<FrameLayout | ||
android:id="@+id/settings" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/bgColorLight" | ||
android:orientation="vertical"> | ||
<include | ||
android:id="@+id/mytoolbar" | ||
layout="@layout/toolbar" /> | ||
<fragment | ||
android:name="keepass2android.SettingsFragment" | ||
android:id="@+id/settings_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_below="@id/mytoolbar" /> | ||
</RelativeLayout> | ||
android:layout_height="match_parent" /> | ||
</LinearLayout> |
Oops, something went wrong.