react-native-readium 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +135 -0
- package/android/build.gradle +198 -0
- package/android/gradle.properties +3 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/reactnativereadium/ReadiumPackage.kt +17 -0
- package/android/src/main/java/com/reactnativereadium/ReadiumView.kt +84 -0
- package/android/src/main/java/com/reactnativereadium/ReadiumViewManager.kt +80 -0
- package/android/src/main/java/com/reactnativereadium/epub/UserSettings.kt +236 -0
- package/android/src/main/java/com/reactnativereadium/reader/BaseReaderFragment.kt +81 -0
- package/android/src/main/java/com/reactnativereadium/reader/EpubReaderFragment.kt +375 -0
- package/android/src/main/java/com/reactnativereadium/reader/ImageReaderFragment.kt +68 -0
- package/android/src/main/java/com/reactnativereadium/reader/PdfReaderFragment.kt +82 -0
- package/android/src/main/java/com/reactnativereadium/reader/ReaderService.kt +116 -0
- package/android/src/main/java/com/reactnativereadium/reader/ReaderViewModel.kt +120 -0
- package/android/src/main/java/com/reactnativereadium/reader/VisualReaderFragment.kt +78 -0
- package/android/src/main/java/com/reactnativereadium/search/SearchFragment.kt +100 -0
- package/android/src/main/java/com/reactnativereadium/search/SearchPagingSource.kt +44 -0
- package/android/src/main/java/com/reactnativereadium/search/SearchResultAdapter.kt +68 -0
- package/android/src/main/java/com/reactnativereadium/utils/ContentResolverUtil.kt +156 -0
- package/android/src/main/java/com/reactnativereadium/utils/Dimensions.kt +6 -0
- package/android/src/main/java/com/reactnativereadium/utils/EventChannel.kt +61 -0
- package/android/src/main/java/com/reactnativereadium/utils/FragmentFactory.kt +46 -0
- package/android/src/main/java/com/reactnativereadium/utils/R2DispatcherActivity.kt +45 -0
- package/android/src/main/java/com/reactnativereadium/utils/SectionDecoration.kt +98 -0
- package/android/src/main/java/com/reactnativereadium/utils/SingleClickListener.kt +32 -0
- package/android/src/main/java/com/reactnativereadium/utils/SystemUiManagement.kt +63 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Bitmap.kt +23 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Context.kt +16 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/File.kt +22 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/InputStream.kt +23 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Link.kt +6 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Metadata.kt +6 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/URL.kt +29 -0
- package/android/src/main/java/com/reactnativereadium/utils/extensions/Uri.kt +17 -0
- package/android/src/main/res/drawable/background_action_mode.xml +6 -0
- package/android/src/main/res/drawable/cnl.png +0 -0
- package/android/src/main/res/drawable/cover.png +0 -0
- package/android/src/main/res/drawable/ic_add_white_24dp.xml +9 -0
- package/android/src/main/res/drawable/ic_baseline_arrow_forward_24.xml +5 -0
- package/android/src/main/res/drawable/ic_baseline_bookmark_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_delete_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_edit_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_enhanced_encryption_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_fast_forward_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_fast_rewind_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_headphones_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_pause_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_play_arrow_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_search_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_skip_next_24.xml +10 -0
- package/android/src/main/res/drawable/ic_baseline_skip_previous_24.xml +10 -0
- package/android/src/main/res/drawable/ic_dashboard_black_24dp.xml +9 -0
- package/android/src/main/res/drawable/ic_fastforward_30.xml +7 -0
- package/android/src/main/res/drawable/ic_info_black_24dp.xml +9 -0
- package/android/src/main/res/drawable/ic_local_library_black_24dp.xml +9 -0
- package/android/src/main/res/drawable/ic_notch.xml +4 -0
- package/android/src/main/res/drawable/ic_outline_add_24.xml +10 -0
- package/android/src/main/res/drawable/ic_outline_format_align_justify_24.xml +10 -0
- package/android/src/main/res/drawable/ic_outline_format_align_left_24.xml +11 -0
- package/android/src/main/res/drawable/ic_outline_format_size_24.xml +10 -0
- package/android/src/main/res/drawable/ic_outline_light_mode_24.xml +10 -0
- package/android/src/main/res/drawable/ic_outline_menu_24.xml +10 -0
- package/android/src/main/res/drawable/ic_outline_remove_24.xml +10 -0
- package/android/src/main/res/drawable/ic_outline_wb_sunny_24.xml +10 -0
- package/android/src/main/res/drawable/ic_rewind_30.xml +7 -0
- package/android/src/main/res/drawable/icon_font_decrease.png +0 -0
- package/android/src/main/res/drawable/icon_font_increase.png +0 -0
- package/android/src/main/res/drawable/icon_overflow.png +0 -0
- package/android/src/main/res/drawable/rbtn_selector.xml +25 -0
- package/android/src/main/res/drawable/rbtn_textcolor_selector.xml +16 -0
- package/android/src/main/res/drawable/repfr.png +0 -0
- package/android/src/main/res/drawable/selector_blue.xml +42 -0
- package/android/src/main/res/drawable/selector_green.xml +42 -0
- package/android/src/main/res/drawable/selector_purple.xml +42 -0
- package/android/src/main/res/drawable/selector_red.xml +42 -0
- package/android/src/main/res/drawable/selector_yellow.xml +41 -0
- package/android/src/main/res/layout/activity_epub.xml +23 -0
- package/android/src/main/res/layout/activity_main.xml +32 -0
- package/android/src/main/res/layout/activity_reader.xml +6 -0
- package/android/src/main/res/layout/add_catalog_dialog.xml +25 -0
- package/android/src/main/res/layout/filter_row.xml +34 -0
- package/android/src/main/res/layout/filter_window.xml +24 -0
- package/android/src/main/res/layout/fragment_about.xml +150 -0
- package/android/src/main/res/layout/fragment_audiobook.xml +151 -0
- package/android/src/main/res/layout/fragment_bookshelf.xml +35 -0
- package/android/src/main/res/layout/fragment_catalog.xml +56 -0
- package/android/src/main/res/layout/fragment_catalog_feed_list.xml +27 -0
- package/android/src/main/res/layout/fragment_drm_management.xml +284 -0
- package/android/src/main/res/layout/fragment_listview.xml +24 -0
- package/android/src/main/res/layout/fragment_outline.xml +31 -0
- package/android/src/main/res/layout/fragment_publication_detail.xml +55 -0
- package/android/src/main/res/layout/fragment_reader.xml +6 -0
- package/android/src/main/res/layout/fragment_screen_reader.xml +143 -0
- package/android/src/main/res/layout/fragment_search.xml +39 -0
- package/android/src/main/res/layout/item_group_view.xml +22 -0
- package/android/src/main/res/layout/item_recycle_book.xml +55 -0
- package/android/src/main/res/layout/item_recycle_bookmark.xml +72 -0
- package/android/src/main/res/layout/item_recycle_button.xml +23 -0
- package/android/src/main/res/layout/item_recycle_catalog.xml +56 -0
- package/android/src/main/res/layout/item_recycle_highlight.xml +85 -0
- package/android/src/main/res/layout/item_recycle_horizontal.xml +45 -0
- package/android/src/main/res/layout/item_recycle_navigation.xml +34 -0
- package/android/src/main/res/layout/item_recycle_search.xml +14 -0
- package/android/src/main/res/layout/item_spinner_days.xml +19 -0
- package/android/src/main/res/layout/my_fragment.xml +13 -0
- package/android/src/main/res/layout/popup_delete.xml +29 -0
- package/android/src/main/res/layout/popup_note.xml +105 -0
- package/android/src/main/res/layout/popup_passphrase.xml +126 -0
- package/android/src/main/res/layout/popup_window_user_settings.xml +576 -0
- package/android/src/main/res/layout/section_header.xml +25 -0
- package/android/src/main/res/layout/view_action_mode.xml +100 -0
- package/android/src/main/res/layout/view_action_mode_reverse.xml +99 -0
- package/android/src/main/res/menu/bottom_nav_menu.xml +19 -0
- package/android/src/main/res/menu/menu_action_mode.xml +26 -0
- package/android/src/main/res/menu/menu_bookmark.xml +18 -0
- package/android/src/main/res/menu/menu_epub.xml +41 -0
- package/android/src/main/res/menu/menu_filter.xml +21 -0
- package/android/src/main/res/menu/menu_reader.xml +33 -0
- package/android/src/main/res/navigation/navigation.xml +46 -0
- package/android/src/main/res/values/arrays.xml +18 -0
- package/android/src/main/res/values/colors.xml +22 -0
- package/android/src/main/res/values/refs.xml +5 -0
- package/android/src/main/res/values/strings.xml +200 -0
- package/android/src/main/res/values/styles.xml +46 -0
- package/android/src/main/res/xml/network_security_config.xml +38 -0
- package/ios/App/AppModule.swift +62 -0
- package/ios/Common/Paths.swift +52 -0
- package/ios/Common/Publication.swift +15 -0
- package/ios/Common/Toolkit/Extensions/AnyPublisher.swift +14 -0
- package/ios/Common/Toolkit/Extensions/Future.swift +16 -0
- package/ios/Common/Toolkit/Extensions/HTTPClient.swift +65 -0
- package/ios/Common/Toolkit/Extensions/Locator.swift +14 -0
- package/ios/Common/Toolkit/Extensions/String.swift +16 -0
- package/ios/Common/Toolkit/Extensions/UIImage.swift +12 -0
- package/ios/Common/Toolkit/Extensions/UIViewController.swift +19 -0
- package/ios/Common/Toolkit/ScreenOrientation.swift +13 -0
- package/ios/Data/Bookmark.swift +23 -0
- package/ios/Reader/Common/ReaderViewController.swift +309 -0
- package/ios/Reader/EPUB/AssociatedColors.swift +27 -0
- package/ios/Reader/EPUB/EPUBModule.swift +38 -0
- package/ios/Reader/EPUB/EPUBViewController.swift +79 -0
- package/ios/Reader/ReaderError.swift +25 -0
- package/ios/Reader/ReaderFormatModule.swift +27 -0
- package/ios/Reader/ReaderModule.swift +84 -0
- package/ios/Reader/ReaderService.swift +126 -0
- package/ios/Readium-Bridging-Header.h +2 -0
- package/ios/Readium.xcodeproj/project.pbxproj +293 -0
- package/ios/ReadiumView.swift +156 -0
- package/ios/ReadiumViewManager.m +10 -0
- package/ios/ReadiumViewManager.swift +9 -0
- package/lib/commonjs/enums/Appearance.js +16 -0
- package/lib/commonjs/enums/Appearance.js.map +1 -0
- package/lib/commonjs/enums/ColumnCount.js +16 -0
- package/lib/commonjs/enums/ColumnCount.js.map +1 -0
- package/lib/commonjs/enums/FontFamily.js +21 -0
- package/lib/commonjs/enums/FontFamily.js.map +1 -0
- package/lib/commonjs/enums/TextAlignment.js +15 -0
- package/lib/commonjs/enums/TextAlignment.js.map +1 -0
- package/lib/commonjs/enums/index.js +58 -0
- package/lib/commonjs/enums/index.js.map +1 -0
- package/lib/commonjs/index.js +105 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/interfaces/Dimensions.js +2 -0
- package/lib/commonjs/interfaces/Dimensions.js.map +1 -0
- package/lib/commonjs/interfaces/File.js +6 -0
- package/lib/commonjs/interfaces/File.js.map +1 -0
- package/lib/commonjs/interfaces/Locator.js +2 -0
- package/lib/commonjs/interfaces/Locator.js.map +1 -0
- package/lib/commonjs/interfaces/Settings.js +71 -0
- package/lib/commonjs/interfaces/Settings.js.map +1 -0
- package/lib/commonjs/interfaces/index.js +58 -0
- package/lib/commonjs/interfaces/index.js.map +1 -0
- package/lib/commonjs/utils/index.js +30 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/module/enums/Appearance.js +9 -0
- package/lib/module/enums/Appearance.js.map +1 -0
- package/lib/module/enums/ColumnCount.js +9 -0
- package/lib/module/enums/ColumnCount.js.map +1 -0
- package/lib/module/enums/FontFamily.js +14 -0
- package/lib/module/enums/FontFamily.js.map +1 -0
- package/lib/module/enums/TextAlignment.js +8 -0
- package/lib/module/enums/TextAlignment.js.map +1 -0
- package/lib/module/enums/index.js +5 -0
- package/lib/module/enums/index.js.map +1 -0
- package/lib/module/index.js +61 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/interfaces/Dimensions.js +2 -0
- package/lib/module/interfaces/Dimensions.js.map +1 -0
- package/lib/module/interfaces/File.js +2 -0
- package/lib/module/interfaces/File.js.map +1 -0
- package/lib/module/interfaces/Locator.js +2 -0
- package/lib/module/interfaces/Locator.js.map +1 -0
- package/lib/module/interfaces/Settings.js +61 -0
- package/lib/module/interfaces/Settings.js.map +1 -0
- package/lib/module/interfaces/index.js +5 -0
- package/lib/module/interfaces/index.js.map +1 -0
- package/lib/module/utils/index.js +17 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/typescript/enums/Appearance.d.ts +11 -0
- package/lib/typescript/enums/ColumnCount.d.ts +5 -0
- package/lib/typescript/enums/FontFamily.d.ts +10 -0
- package/lib/typescript/enums/TextAlignment.d.ts +4 -0
- package/lib/typescript/enums/index.d.ts +4 -0
- package/lib/typescript/index.d.ts +17 -0
- package/lib/typescript/interfaces/Dimensions.d.ts +4 -0
- package/lib/typescript/interfaces/File.d.ts +11 -0
- package/lib/typescript/interfaces/Locator.d.ts +14 -0
- package/lib/typescript/interfaces/Settings.d.ts +40 -0
- package/lib/typescript/interfaces/index.d.ts +4 -0
- package/lib/typescript/utils/index.d.ts +10 -0
- package/package.json +160 -0
- package/react-native-readium.podspec +25 -0
- package/src/enums/Appearance.ts +14 -0
- package/src/enums/ColumnCount.ts +6 -0
- package/src/enums/FontFamily.ts +11 -0
- package/src/enums/TextAlignment.ts +5 -0
- package/src/enums/index.ts +4 -0
- package/src/index.tsx +78 -0
- package/src/interfaces/Dimensions.ts +4 -0
- package/src/interfaces/File.ts +14 -0
- package/src/interfaces/Locator.ts +14 -0
- package/src/interfaces/Settings.ts +85 -0
- package/src/interfaces/index.ts +4 -0
- package/src/utils/index.ts +18 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
~ Module: r2-testapp-kotlin
|
|
3
|
+
~ Developers: Aferdita Muriqi, Clément Baumann, Mostapha Idoubihi, Paul Stoica
|
|
4
|
+
~
|
|
5
|
+
~ Copyright (c) 2018. European Digital Reading Lab. All rights reserved.
|
|
6
|
+
~ Licensed to the Readium Foundation under one or more contributor license agreements.
|
|
7
|
+
~ Use of this source code is governed by a BSD-style license which is detailed in the
|
|
8
|
+
~ LICENSE file present in the project repository where this source code is maintained.
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
12
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
13
|
+
android:id="@+id/bookmark_item"
|
|
14
|
+
android:layout_width="match_parent"
|
|
15
|
+
android:layout_height="wrap_content"
|
|
16
|
+
android:orientation="vertical"
|
|
17
|
+
android:padding="10dp" >
|
|
18
|
+
|
|
19
|
+
<TextView
|
|
20
|
+
android:id="@+id/bookmark_chapter"
|
|
21
|
+
android:layout_width="0dp"
|
|
22
|
+
android:layout_height="wrap_content"
|
|
23
|
+
android:layout_marginEnd="8dp"
|
|
24
|
+
android:layout_marginStart="8dp"
|
|
25
|
+
android:layout_marginTop="4dp"
|
|
26
|
+
android:text="@string/chapter_page"
|
|
27
|
+
android:ellipsize="end"
|
|
28
|
+
android:maxLines="1"
|
|
29
|
+
app:layout_constraintEnd_toStartOf="@+id/overflow"
|
|
30
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
31
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
32
|
+
|
|
33
|
+
<TextView
|
|
34
|
+
android:id="@+id/bookmark_progression"
|
|
35
|
+
android:layout_width="0dp"
|
|
36
|
+
android:layout_height="wrap_content"
|
|
37
|
+
android:layout_marginEnd="8dp"
|
|
38
|
+
android:layout_marginStart="8dp"
|
|
39
|
+
android:layout_marginTop="4dp"
|
|
40
|
+
android:text="@string/progression"
|
|
41
|
+
app:layout_constraintEnd_toStartOf="@+id/overflow"
|
|
42
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
43
|
+
app:layout_constraintTop_toBottomOf="@+id/bookmark_chapter" />
|
|
44
|
+
|
|
45
|
+
<TextView
|
|
46
|
+
android:id="@+id/bookmark_timestamp"
|
|
47
|
+
android:layout_width="0dp"
|
|
48
|
+
android:layout_height="wrap_content"
|
|
49
|
+
android:layout_marginBottom="4dp"
|
|
50
|
+
android:layout_marginEnd="8dp"
|
|
51
|
+
android:layout_marginStart="8dp"
|
|
52
|
+
android:layout_marginTop="4dp"
|
|
53
|
+
android:text="@string/timestamp"
|
|
54
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
55
|
+
app:layout_constraintEnd_toStartOf="@+id/overflow"
|
|
56
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
57
|
+
app:layout_constraintTop_toBottomOf="@+id/bookmark_progression" />
|
|
58
|
+
|
|
59
|
+
<ImageView
|
|
60
|
+
android:id="@+id/overflow"
|
|
61
|
+
android:layout_width="30dp"
|
|
62
|
+
android:layout_height="0dp"
|
|
63
|
+
android:layout_marginBottom="8dp"
|
|
64
|
+
android:layout_marginEnd="8dp"
|
|
65
|
+
android:layout_marginTop="8dp"
|
|
66
|
+
android:contentDescription="@string/more_options"
|
|
67
|
+
android:src="@drawable/icon_overflow"
|
|
68
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
69
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
70
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
71
|
+
|
|
72
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
~ Module: r2-testapp-kotlin
|
|
3
|
+
~ Developers: Aferdita Muriqi, Clément Baumann
|
|
4
|
+
~
|
|
5
|
+
~ Copyright (c) 2018. European Digital Reading Lab. All rights reserved.
|
|
6
|
+
~ Licensed to the Readium Foundation under one or more contributor license agreements.
|
|
7
|
+
~ Use of this source code is governed by a BSD-style license which is detailed in the
|
|
8
|
+
~ LICENSE file present in the project repository where this source code is maintained.
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
13
|
+
android:id="@+id/catalog_LinearLayout"
|
|
14
|
+
android:layout_width="match_parent"
|
|
15
|
+
android:layout_height="wrap_content"
|
|
16
|
+
android:orientation="vertical">
|
|
17
|
+
|
|
18
|
+
<Button
|
|
19
|
+
android:id="@+id/catalogList_button"
|
|
20
|
+
android:layout_width="match_parent"
|
|
21
|
+
android:layout_height="match_parent" />
|
|
22
|
+
|
|
23
|
+
</LinearLayout>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
~ Module: r2-testapp-kotlin
|
|
3
|
+
~ Developers: Aferdita Muriqi, Clément Baumann
|
|
4
|
+
~
|
|
5
|
+
~ Copyright (c) 2018. European Digital Reading Lab. All rights reserved.
|
|
6
|
+
~ Licensed to the Readium Foundation under one or more contributor license agreements.
|
|
7
|
+
~ Use of this source code is governed by a BSD-style license which is detailed in the
|
|
8
|
+
~ LICENSE file present in the project repository where this source code is maintained.
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
12
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
13
|
+
android:id="@+id/catalogList_cardView"
|
|
14
|
+
android:layout_width="120dp"
|
|
15
|
+
android:layout_height="wrap_content"
|
|
16
|
+
android:layout_margin="5dp">
|
|
17
|
+
|
|
18
|
+
<LinearLayout
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="200dp"
|
|
21
|
+
android:orientation="vertical"
|
|
22
|
+
android:weightSum="4">
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<FrameLayout
|
|
26
|
+
android:layout_width="match_parent"
|
|
27
|
+
android:layout_height="match_parent"
|
|
28
|
+
tools:ignore="UselessParent">
|
|
29
|
+
|
|
30
|
+
<ImageView
|
|
31
|
+
android:id="@+id/catalogList_coverImage"
|
|
32
|
+
android:layout_width="match_parent"
|
|
33
|
+
android:layout_height="match_parent"
|
|
34
|
+
android:contentDescription="@string/cover_image" />
|
|
35
|
+
|
|
36
|
+
<LinearLayout
|
|
37
|
+
android:layout_width="match_parent"
|
|
38
|
+
android:layout_height="wrap_content"
|
|
39
|
+
android:layout_gravity="start|bottom"
|
|
40
|
+
android:background="@android:drawable/screen_background_dark_transparent"
|
|
41
|
+
android:orientation="vertical">
|
|
42
|
+
|
|
43
|
+
<TextView
|
|
44
|
+
android:id="@+id/catalogList_titleText"
|
|
45
|
+
android:layout_width="match_parent"
|
|
46
|
+
android:layout_height="wrap_content"
|
|
47
|
+
android:padding="16dp"
|
|
48
|
+
android:textColor="#FFFFFF"
|
|
49
|
+
android:textSize="12sp" />
|
|
50
|
+
</LinearLayout>
|
|
51
|
+
|
|
52
|
+
</FrameLayout>
|
|
53
|
+
|
|
54
|
+
</LinearLayout>
|
|
55
|
+
|
|
56
|
+
</androidx.cardview.widget.CardView>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
~ Module: r2-testapp-kotlin
|
|
3
|
+
~ Developers: Aferdita Muriqi, Clément Baumann, Mostapha Idoubihi, Paul Stoica
|
|
4
|
+
~
|
|
5
|
+
~ Copyright (c) 2018. European Digital Reading Lab. All rights reserved.
|
|
6
|
+
~ Licensed to the Readium Foundation under one or more contributor license agreements.
|
|
7
|
+
~ Use of this source code is governed by a BSD-style license which is detailed in the
|
|
8
|
+
~ LICENSE file present in the project repository where this source code is maintained.
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
12
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
13
|
+
android:id="@+id/bookmark_item"
|
|
14
|
+
android:layout_width="match_parent"
|
|
15
|
+
android:layout_height="wrap_content"
|
|
16
|
+
android:orientation="vertical"
|
|
17
|
+
android:padding="10dp" >
|
|
18
|
+
|
|
19
|
+
<TextView
|
|
20
|
+
android:id="@+id/highlight_chapter"
|
|
21
|
+
android:layout_width="0dp"
|
|
22
|
+
android:layout_height="wrap_content"
|
|
23
|
+
android:layout_marginStart="8dp"
|
|
24
|
+
android:layout_marginTop="4dp"
|
|
25
|
+
android:layout_marginEnd="10dp"
|
|
26
|
+
android:textSize="15sp"
|
|
27
|
+
android:ellipsize="end"
|
|
28
|
+
android:maxLines="1"
|
|
29
|
+
app:layout_constrainedWidth="true"
|
|
30
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
31
|
+
app:layout_constraintEnd_toStartOf="@id/highlight_time_stamp"
|
|
32
|
+
app:layout_constraintStart_toStartOf="parent"/>
|
|
33
|
+
|
|
34
|
+
<TextView
|
|
35
|
+
android:id="@+id/highlight_time_stamp"
|
|
36
|
+
android:layout_width="wrap_content"
|
|
37
|
+
android:layout_height="wrap_content"
|
|
38
|
+
android:layout_marginEnd="20dp"
|
|
39
|
+
android:layout_marginTop="4dp"
|
|
40
|
+
android:textSize="12sp"
|
|
41
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
42
|
+
app:layout_constraintEnd_toEndOf="parent"/>
|
|
43
|
+
|
|
44
|
+
<TextView
|
|
45
|
+
android:id="@+id/highlight_text"
|
|
46
|
+
android:layout_width="0dp"
|
|
47
|
+
android:layout_height="wrap_content"
|
|
48
|
+
android:layout_marginEnd="8dp"
|
|
49
|
+
android:text="@string/chapter_page"
|
|
50
|
+
android:maxLines="2"
|
|
51
|
+
android:layout_marginStart="15dp"
|
|
52
|
+
android:layout_marginTop="10dp"
|
|
53
|
+
android:ellipsize="end"
|
|
54
|
+
app:layout_goneMarginEnd="20dp"
|
|
55
|
+
app:layout_constraintEnd_toStartOf="@+id/highlight_time_stamp"
|
|
56
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
57
|
+
app:layout_constraintTop_toBottomOf="@id/highlight_chapter" />
|
|
58
|
+
|
|
59
|
+
<TextView
|
|
60
|
+
android:id="@+id/annotation"
|
|
61
|
+
android:layout_width="0dp"
|
|
62
|
+
android:layout_height="wrap_content"
|
|
63
|
+
android:layout_marginEnd="8dp"
|
|
64
|
+
android:layout_marginStart="15dp"
|
|
65
|
+
android:layout_marginTop="4dp"
|
|
66
|
+
android:maxLines="2"
|
|
67
|
+
android:textSize="16sp"
|
|
68
|
+
app:layout_constraintEnd_toStartOf="@+id/highlight_overflow"
|
|
69
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
70
|
+
app:layout_constraintTop_toBottomOf="@+id/highlight_text" />
|
|
71
|
+
|
|
72
|
+
<ImageView
|
|
73
|
+
android:id="@+id/highlight_overflow"
|
|
74
|
+
android:layout_width="30dp"
|
|
75
|
+
android:layout_height="0dp"
|
|
76
|
+
android:layout_marginBottom="8dp"
|
|
77
|
+
android:layout_marginEnd="8dp"
|
|
78
|
+
android:layout_marginTop="8dp"
|
|
79
|
+
android:contentDescription="@string/more_options"
|
|
80
|
+
android:src="@drawable/icon_overflow"
|
|
81
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
82
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
83
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
84
|
+
|
|
85
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="wrap_content"
|
|
7
|
+
android:orientation="vertical">
|
|
8
|
+
|
|
9
|
+
<LinearLayout
|
|
10
|
+
android:layout_width="match_parent"
|
|
11
|
+
android:layout_height="wrap_content">
|
|
12
|
+
|
|
13
|
+
<TextView
|
|
14
|
+
android:id="@+id/itemRecycle_headerTitle"
|
|
15
|
+
android:layout_width="0dp"
|
|
16
|
+
android:layout_height="match_parent"
|
|
17
|
+
android:layout_marginStart="16dp"
|
|
18
|
+
android:layout_marginEnd="16dp"
|
|
19
|
+
android:layout_weight="1"
|
|
20
|
+
android:gravity="center_vertical"
|
|
21
|
+
android:textAppearance="@style/TextAppearance.AppCompat.Title" />
|
|
22
|
+
|
|
23
|
+
<ImageButton
|
|
24
|
+
android:id="@+id/itemRecycle_moreButton"
|
|
25
|
+
android:layout_width="48dp"
|
|
26
|
+
android:layout_height="48dp"
|
|
27
|
+
android:background="@android:color/transparent"
|
|
28
|
+
android:contentDescription="@string/catalog_list_more"
|
|
29
|
+
android:src="@drawable/ic_baseline_arrow_forward_24"
|
|
30
|
+
android:layout_marginEnd="20dp"
|
|
31
|
+
android:visibility="invisible"
|
|
32
|
+
tools:ignore="RtlSymmetry" />
|
|
33
|
+
|
|
34
|
+
</LinearLayout>
|
|
35
|
+
|
|
36
|
+
<androidx.recyclerview.widget.RecyclerView
|
|
37
|
+
android:id="@+id/recyclerView"
|
|
38
|
+
android:layout_width="match_parent"
|
|
39
|
+
android:layout_height="wrap_content"
|
|
40
|
+
android:clipToPadding="false"
|
|
41
|
+
android:orientation="horizontal"
|
|
42
|
+
android:padding="4dp"
|
|
43
|
+
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
44
|
+
|
|
45
|
+
</LinearLayout>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
~ Module: r2-testapp-kotlin
|
|
4
|
+
~ Developers: Aferdita Muriqi, Paul Stoica
|
|
5
|
+
~
|
|
6
|
+
~ Copyright (c) 2018. European Digital Reading Lab. All rights reserved.
|
|
7
|
+
~ Licensed to the Readium Foundation under one or more contributor license agreements.
|
|
8
|
+
~ Use of this source code is governed by a BSD-style license which is detailed in the
|
|
9
|
+
~ LICENSE file present in the project repository where this source code is maintained.
|
|
10
|
+
-->
|
|
11
|
+
|
|
12
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
13
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
14
|
+
android:layout_height="wrap_content"
|
|
15
|
+
android:layout_width="match_parent">
|
|
16
|
+
|
|
17
|
+
<ImageView
|
|
18
|
+
android:id="@+id/indentation"
|
|
19
|
+
android:layout_width="0dp"
|
|
20
|
+
android:layout_height="wrap_content"
|
|
21
|
+
android:contentDescription="TODO"
|
|
22
|
+
tools:ignore="Suspicious0dp" />
|
|
23
|
+
|
|
24
|
+
<TextView
|
|
25
|
+
android:id="@+id/navigation_textView"
|
|
26
|
+
android:layout_width="match_parent"
|
|
27
|
+
android:layout_height="wrap_content"
|
|
28
|
+
android:gravity="center_vertical"
|
|
29
|
+
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
30
|
+
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
31
|
+
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
32
|
+
android:textAppearance="?android:attr/textAppearanceListItemSmall" />
|
|
33
|
+
|
|
34
|
+
</LinearLayout>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:orientation="horizontal" android:layout_width="match_parent"
|
|
4
|
+
android:layout_height="wrap_content"
|
|
5
|
+
android:padding="8dp">
|
|
6
|
+
|
|
7
|
+
<TextView
|
|
8
|
+
android:id="@+id/text"
|
|
9
|
+
android:layout_width="match_parent"
|
|
10
|
+
android:layout_height="wrap_content"
|
|
11
|
+
android:gravity="start|top"
|
|
12
|
+
android:textAlignment="textStart"/>
|
|
13
|
+
|
|
14
|
+
</LinearLayout>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
~ Module: r2-testapp-kotlin
|
|
4
|
+
~ Developers: Aferdita Muriqi, Paul Stoica
|
|
5
|
+
~
|
|
6
|
+
~ Copyright (c) 2018. European Digital Reading Lab. All rights reserved.
|
|
7
|
+
~ Licensed to the Readium Foundation under one or more contributor license agreements.
|
|
8
|
+
~ Use of this source code is governed by a BSD-style license which is detailed in the
|
|
9
|
+
~ LICENSE file present in the project repository where this source code is maintained.
|
|
10
|
+
-->
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
14
|
+
android:id="@+id/days_spinner"
|
|
15
|
+
style="?android:attr/spinnerDropDownItemStyle"
|
|
16
|
+
android:layout_width="match_parent"
|
|
17
|
+
android:layout_height="wrap_content"
|
|
18
|
+
android:textAlignment="textEnd"
|
|
19
|
+
android:textSize="9pt" />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="wrap_content"
|
|
6
|
+
tools:context=".MyFragment">
|
|
7
|
+
|
|
8
|
+
<TextView
|
|
9
|
+
android:layout_width="match_parent"
|
|
10
|
+
android:layout_height="match_parent"
|
|
11
|
+
android:text="FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR FOOO BAR " />
|
|
12
|
+
|
|
13
|
+
</FrameLayout>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
~ Module: r2-testapp-kotlin
|
|
5
|
+
~ Developers: Aferdita Muriqi, Clément Baumann
|
|
6
|
+
~
|
|
7
|
+
~ Copyright (c) 2018. European Digital Reading Lab. All rights reserved.
|
|
8
|
+
~ Licensed to the Readium Foundation under one or more contributor license agreements.
|
|
9
|
+
~ Use of this source code is governed by a BSD-style license which is detailed in the
|
|
10
|
+
~ LICENSE file present in the project repository where this source code is maintained.
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
14
|
+
android:layout_width="200dp"
|
|
15
|
+
android:layout_height="match_parent"
|
|
16
|
+
android:background="@android:color/background_light"
|
|
17
|
+
android:gravity="end"
|
|
18
|
+
android:orientation="horizontal"
|
|
19
|
+
android:padding="5dp">
|
|
20
|
+
|
|
21
|
+
<Button
|
|
22
|
+
android:id="@+id/delete"
|
|
23
|
+
android:layout_width="wrap_content"
|
|
24
|
+
android:layout_height="wrap_content"
|
|
25
|
+
android:text="@string/popup_delete_button" />
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</LinearLayout>
|
|
29
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:orientation="vertical" android:layout_width="match_parent"
|
|
4
|
+
android:layout_height="match_parent">
|
|
5
|
+
|
|
6
|
+
<LinearLayout
|
|
7
|
+
android:layout_width="match_parent"
|
|
8
|
+
android:layout_height="420dp"
|
|
9
|
+
android:orientation="vertical">
|
|
10
|
+
|
|
11
|
+
<TextView
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="42dp"
|
|
14
|
+
android:gravity="center"
|
|
15
|
+
android:lineSpacingExtra="4sp"
|
|
16
|
+
android:text="@string/note"
|
|
17
|
+
android:textColor="#212121"
|
|
18
|
+
android:textSize="16sp" />
|
|
19
|
+
|
|
20
|
+
<View
|
|
21
|
+
android:layout_width="match_parent"
|
|
22
|
+
android:layout_height="2dp"
|
|
23
|
+
android:background="#e7e7e7"/>
|
|
24
|
+
|
|
25
|
+
<LinearLayout
|
|
26
|
+
android:layout_width="match_parent"
|
|
27
|
+
android:layout_height="wrap_content"
|
|
28
|
+
android:orientation="horizontal"
|
|
29
|
+
android:paddingTop="22dp"
|
|
30
|
+
android:layout_marginBottom="20dp">
|
|
31
|
+
|
|
32
|
+
<View
|
|
33
|
+
android:id="@+id/sidemark"
|
|
34
|
+
android:layout_width="4dp"
|
|
35
|
+
android:layout_height="match_parent"
|
|
36
|
+
android:background="#acd8ff"
|
|
37
|
+
android:layout_marginStart="16dp"
|
|
38
|
+
android:layout_marginEnd="10dp"/>
|
|
39
|
+
|
|
40
|
+
<TextView
|
|
41
|
+
android:id="@+id/select_text"
|
|
42
|
+
android:layout_width="0dp"
|
|
43
|
+
android:layout_height="wrap_content"
|
|
44
|
+
android:layout_weight="1"
|
|
45
|
+
android:layout_marginEnd="30dp"
|
|
46
|
+
android:textSize="16sp"
|
|
47
|
+
android:textColor="#464646"
|
|
48
|
+
android:lineSpacingExtra="7sp"
|
|
49
|
+
android:maxLines="3"/>
|
|
50
|
+
|
|
51
|
+
</LinearLayout>
|
|
52
|
+
|
|
53
|
+
<EditText
|
|
54
|
+
android:id="@+id/note"
|
|
55
|
+
android:hint="@string/add_a_note"
|
|
56
|
+
android:layout_width="match_parent"
|
|
57
|
+
android:layout_height="0dp"
|
|
58
|
+
android:layout_weight="1"
|
|
59
|
+
android:background="@null"
|
|
60
|
+
android:textSize="15sp"
|
|
61
|
+
android:textColor="#191919"
|
|
62
|
+
android:lineSpacingExtra="8sp"
|
|
63
|
+
android:layout_marginLeft="30dp"
|
|
64
|
+
android:layout_marginRight="30dp"
|
|
65
|
+
android:layout_marginBottom="21dp"/>
|
|
66
|
+
|
|
67
|
+
<View
|
|
68
|
+
android:layout_width="match_parent"
|
|
69
|
+
android:layout_height="2dp"
|
|
70
|
+
android:background="#e7e7e7"/>
|
|
71
|
+
|
|
72
|
+
<LinearLayout
|
|
73
|
+
android:layout_width="match_parent"
|
|
74
|
+
android:layout_height="50dp"
|
|
75
|
+
android:orientation="horizontal">
|
|
76
|
+
|
|
77
|
+
<TextView
|
|
78
|
+
android:id="@+id/negative"
|
|
79
|
+
android:layout_width="0dp"
|
|
80
|
+
android:layout_height="match_parent"
|
|
81
|
+
android:layout_weight="1"
|
|
82
|
+
android:gravity="center"
|
|
83
|
+
android:text="Cancel"
|
|
84
|
+
android:textColor="#000000"
|
|
85
|
+
android:textSize="16sp" />
|
|
86
|
+
|
|
87
|
+
<View
|
|
88
|
+
android:layout_width="2dp"
|
|
89
|
+
android:layout_height="match_parent"
|
|
90
|
+
android:background="#e7e7e7"/>
|
|
91
|
+
|
|
92
|
+
<TextView
|
|
93
|
+
android:id="@+id/positive"
|
|
94
|
+
android:layout_width="0dp"
|
|
95
|
+
android:layout_height="match_parent"
|
|
96
|
+
android:layout_weight="1"
|
|
97
|
+
android:gravity="center"
|
|
98
|
+
android:text="Save"
|
|
99
|
+
android:textColor="#009688"
|
|
100
|
+
android:textSize="16sp" />
|
|
101
|
+
</LinearLayout>
|
|
102
|
+
|
|
103
|
+
</LinearLayout>
|
|
104
|
+
|
|
105
|
+
</LinearLayout>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="match_parent"
|
|
6
|
+
android:background="@android:color/background_light">
|
|
7
|
+
|
|
8
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
9
|
+
android:layout_width="match_parent"
|
|
10
|
+
android:layout_height="match_parent">
|
|
11
|
+
|
|
12
|
+
<Button
|
|
13
|
+
android:id="@+id/cancel_button"
|
|
14
|
+
android:layout_width="0dp"
|
|
15
|
+
android:layout_height="wrap_content"
|
|
16
|
+
android:layout_marginTop="8dp"
|
|
17
|
+
android:layout_marginEnd="8dp"
|
|
18
|
+
android:text="cancel"
|
|
19
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
20
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
21
|
+
|
|
22
|
+
<TextView
|
|
23
|
+
android:id="@+id/title"
|
|
24
|
+
android:layout_width="0dp"
|
|
25
|
+
android:layout_height="wrap_content"
|
|
26
|
+
android:layout_marginStart="12dp"
|
|
27
|
+
|
|
28
|
+
android:layout_marginTop="22dp"
|
|
29
|
+
android:layout_marginEnd="8dp"
|
|
30
|
+
android:text="title"
|
|
31
|
+
android:textSize="18sp"
|
|
32
|
+
android:textStyle="bold"
|
|
33
|
+
app:layout_constraintEnd_toStartOf="@+id/cancel_button"
|
|
34
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
35
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
36
|
+
|
|
37
|
+
<TextView
|
|
38
|
+
android:id="@+id/description"
|
|
39
|
+
android:layout_width="0dp"
|
|
40
|
+
android:layout_height="wrap_content"
|
|
41
|
+
android:layout_marginStart="12dp"
|
|
42
|
+
android:layout_marginTop="32dp"
|
|
43
|
+
android:layout_marginEnd="12dp"
|
|
44
|
+
android:text="description"
|
|
45
|
+
android:textSize="16sp"
|
|
46
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
47
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
48
|
+
app:layout_constraintTop_toBottomOf="@+id/title" />
|
|
49
|
+
|
|
50
|
+
<TextView
|
|
51
|
+
android:id="@+id/hint"
|
|
52
|
+
android:layout_width="0dp"
|
|
53
|
+
android:layout_height="wrap_content"
|
|
54
|
+
android:layout_marginStart="12dp"
|
|
55
|
+
android:layout_marginTop="32dp"
|
|
56
|
+
android:layout_marginEnd="12dp"
|
|
57
|
+
android:text="hint"
|
|
58
|
+
android:textSize="18sp"
|
|
59
|
+
android:textStyle="bold"
|
|
60
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
61
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
62
|
+
app:layout_constraintTop_toBottomOf="@+id/description" />
|
|
63
|
+
|
|
64
|
+
<com.google.android.material.textfield.TextInputLayout
|
|
65
|
+
android:id="@+id/passwordLayout"
|
|
66
|
+
android:layout_width="395dp"
|
|
67
|
+
android:layout_height="wrap_content"
|
|
68
|
+
android:layout_marginStart="8dp"
|
|
69
|
+
android:layout_marginTop="8dp"
|
|
70
|
+
android:layout_marginEnd="8dp"
|
|
71
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
72
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
73
|
+
app:layout_constraintTop_toBottomOf="@+id/hint">
|
|
74
|
+
|
|
75
|
+
<com.google.android.material.textfield.TextInputEditText
|
|
76
|
+
android:id="@+id/password"
|
|
77
|
+
android:layout_width="match_parent"
|
|
78
|
+
android:layout_height="wrap_content"
|
|
79
|
+
android:hint="passphrase" />
|
|
80
|
+
</com.google.android.material.textfield.TextInputLayout>
|
|
81
|
+
|
|
82
|
+
<Button
|
|
83
|
+
android:id="@+id/confirm_button"
|
|
84
|
+
android:layout_width="0dp"
|
|
85
|
+
android:layout_height="wrap_content"
|
|
86
|
+
android:layout_marginStart="8dp"
|
|
87
|
+
android:layout_marginTop="8dp"
|
|
88
|
+
android:layout_marginEnd="8dp"
|
|
89
|
+
android:text="Continue"
|
|
90
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
91
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
92
|
+
app:layout_constraintTop_toBottomOf="@+id/passwordLayout" />
|
|
93
|
+
|
|
94
|
+
<Button
|
|
95
|
+
android:id="@+id/forgot_link"
|
|
96
|
+
android:layout_width="0dp"
|
|
97
|
+
android:layout_height="20dp"
|
|
98
|
+
android:layout_marginStart="8dp"
|
|
99
|
+
android:layout_marginTop="16dp"
|
|
100
|
+
android:layout_marginEnd="8dp"
|
|
101
|
+
android:background="@android:color/transparent"
|
|
102
|
+
android:text="Forgot your passphrase?"
|
|
103
|
+
android:textAlignment="viewStart"
|
|
104
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
105
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
106
|
+
app:layout_constraintTop_toBottomOf="@+id/confirm_button" />
|
|
107
|
+
|
|
108
|
+
<Button
|
|
109
|
+
android:id="@+id/help_link"
|
|
110
|
+
android:layout_width="0dp"
|
|
111
|
+
android:layout_height="20dp"
|
|
112
|
+
android:layout_marginStart="8dp"
|
|
113
|
+
android:layout_marginTop="16dp"
|
|
114
|
+
android:layout_marginEnd="8dp"
|
|
115
|
+
android:background="@android:color/transparent"
|
|
116
|
+
android:text="Need more help?"
|
|
117
|
+
android:textAlignment="viewStart"
|
|
118
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
119
|
+
app:layout_constraintHorizontal_bias="0.0"
|
|
120
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
121
|
+
app:layout_constraintTop_toBottomOf="@+id/forgot_link" />
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
125
|
+
|
|
126
|
+
</ScrollView>
|