mirror of https://github.com/Corewala/Buran
58 lines
2.6 KiB
XML
58 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/screen_margin"
|
|
android:layout_marginRight="@dimen/screen_margin"
|
|
android:layout_marginTop="@dimen/default_margin"
|
|
android:layout_marginBottom="@dimen/default_margin">
|
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
|
android:id="@+id/show_code_block"
|
|
android:textColor="@color/stroke"
|
|
android:layout_marginTop="@dimen/default_margin_small"
|
|
android:layout_marginBottom="@dimen/default_margin_small"
|
|
android:textSize="@dimen/large_text_size"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:padding="@dimen/accessibility_button_padding"
|
|
android:textAllCaps="false"
|
|
android:backgroundTint="@color/accessibility_button_background"
|
|
android:textAlignment="viewStart"
|
|
android:drawablePadding="4dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/show_code"
|
|
tools:text="Show code: Ascii art banner: Spacewalk - Updates from around geminispace"
|
|
/>
|
|
|
|
<HorizontalScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/show_code_block">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gemtext_text_monospace_textview"
|
|
android:textSize="@dimen/code_text_size"
|
|
app:lineHeight="@dimen/code_text_size"
|
|
app:fontFamily="@font/code_font"
|
|
android:fontFamily="@font/code_font"
|
|
android:typeface="monospace"
|
|
android:textColor="@color/stroke"
|
|
android:textIsSelectable="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="@dimen/default_margin"
|
|
android:paddingRight="@dimen/default_margin"
|
|
android:paddingTop="@dimen/default_margin"
|
|
android:paddingBottom="@dimen/default_margin"
|
|
android:isScrollContainer="true"
|
|
android:overScrollMode="ifContentScrolls"
|
|
android:scrollHorizontally="true"
|
|
android:scrollbarStyle="insideOverlay"
|
|
android:scrollbars="vertical|horizontal"/>
|
|
</HorizontalScrollView>
|
|
</RelativeLayout> |