@sfenton/react-native-readium-with-cfi
Version:
A react-native wrapper for https://readium.org/ with CFI support
53 lines (42 loc) • 2 kB
text/xml
<!--
FIXME: this was imported from `kotlin-toolkit/readium/navigator/src/main/res/layout@v2.2.1`.
Not sure why it's not being imported from readium-navigator, but if its not here
the android build throws an error due to UserSettings.kt#updateViewCSS
~ Module: r2-navigator-kotlin
~ Developers: Aferdita Muriqi
~
~ Copyright (c) 2018. Readium Foundation. All rights reserved.
~ Use of this source code is governed by a BSD-style license which is detailed in the
~ LICENSE file present in the project repository where this source code is maintained.
-->
<org.readium.r2.navigator.epub.fxl.R2FXLLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/r2FXLLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:scrollbars="none">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center_horizontal"
android:orientation="horizontal"
tools:ignore="UselessParent">
<org.readium.r2.navigator.R2BasicWebView
android:id="@+id/webViewSingle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layerType="hardware" />
</LinearLayout>
</RelativeLayout>
</ScrollView>
</org.readium.r2.navigator.epub.fxl.R2FXLLayout>