mirror of https://github.com/Corewala/Buran
Configuring full-width buttons
This commit is contained in:
parent
8e6ca8461a
commit
c535861c1e
|
@ -2,9 +2,10 @@
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/gemtext_text_link"
|
android:id="@+id/gemtext_text_link"
|
||||||
android:textColor="@color/stroke"
|
android:textColor="@color/stroke"
|
||||||
android:textSize="@dimen/default_text_size"
|
android:textSize="@dimen/default_text_size"
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
android:layout_marginLeft="@dimen/screen_margin"
|
android:layout_marginLeft="@dimen/screen_margin"
|
||||||
android:layout_marginRight="@dimen/screen_margin"
|
android:layout_marginRight="@dimen/screen_margin"
|
||||||
android:padding="@dimen/accessibility_button_padding"
|
android:padding="@dimen/accessibility_button_padding"
|
||||||
|
app:cornerRadius="@dimen/default_margin_big"
|
||||||
android:textAllCaps="false"
|
android:textAllCaps="false"
|
||||||
tools:text="an image"
|
tools:text="an image"
|
||||||
android:backgroundTint="@color/accessibility_button_background"
|
android:backgroundTint="@color/accessibility_button_background"
|
||||||
|
@ -22,16 +24,23 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.cardview.widget.CardView
|
||||||
android:id="@+id/gemtext_inline_image"
|
android:id="@+id/rounded_image_frame"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
|
app:cardCornerRadius="@dimen/default_margin_big"
|
||||||
android:layout_marginLeft="@dimen/screen_margin"
|
android:layout_marginLeft="@dimen/screen_margin"
|
||||||
android:layout_marginRight="@dimen/screen_margin"
|
android:layout_marginRight="@dimen/screen_margin"
|
||||||
android:layout_marginTop="@dimen/default_margin"
|
android:layout_marginTop="@dimen/default_margin"
|
||||||
android:layout_marginBottom="@dimen/default_margin"
|
android:layout_marginBottom="@dimen/default_margin"
|
||||||
android:background="#ffffff"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:adjustViewBounds="true"
|
android:layout_below="@+id/gemtext_text_link">
|
||||||
android:layout_below="@+id/gemtext_text_link"/>
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/gemtext_inline_image"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:adjustViewBounds="true"/>
|
||||||
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -3,9 +3,10 @@
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/gemtext_text_link"
|
android:id="@+id/gemtext_text_link"
|
||||||
android:textColor="@color/stroke"
|
android:textColor="@color/stroke"
|
||||||
android:layout_marginLeft="@dimen/screen_margin"
|
android:layout_marginLeft="@dimen/screen_margin"
|
||||||
|
@ -15,9 +16,11 @@
|
||||||
android:textSize="@dimen/default_text_size"
|
android:textSize="@dimen/default_text_size"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:textAllCaps="false"
|
|
||||||
android:textAlignment="viewStart"
|
android:textAlignment="viewStart"
|
||||||
android:padding="@dimen/accessibility_button_padding"
|
android:padding="@dimen/accessibility_button_padding"
|
||||||
|
app:cornerRadius="@dimen/default_margin_big"
|
||||||
|
android:textAllCaps="false"
|
||||||
|
tools:text="a link"
|
||||||
android:backgroundTint="@color/accessibility_button_background"
|
android:backgroundTint="@color/accessibility_button_background"
|
||||||
android:drawablePadding="4dp"
|
android:drawablePadding="4dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
<color name="header_background">#1d1d1d</color>
|
<color name="header_background">#1d1d1d</color>
|
||||||
<color name="navigation_bar_background">#1d1d1d</color>
|
<color name="navigation_bar_background">#1d1d1d</color>
|
||||||
<color name="stroke">#ffffff</color>
|
<color name="stroke">#ffffff</color>
|
||||||
<color name="accessibility_button_background">#3A3A3A</color>
|
<color name="accessibility_button_background">#26A69A</color>
|
||||||
</resources>
|
</resources>
|
|
@ -12,5 +12,5 @@
|
||||||
<color name="header_background">#ffffff</color>
|
<color name="header_background">#ffffff</color>
|
||||||
<color name="navigation_bar_background">#ffffff</color>
|
<color name="navigation_bar_background">#ffffff</color>
|
||||||
<color name="stroke">#000000</color>
|
<color name="stroke">#000000</color>
|
||||||
<color name="accessibility_button_background">#f9dede</color>
|
<color name="accessibility_button_background">#26A69A</color>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue