Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

[MaterialButton] Stroke color is not set according to the material guidelines. #237

Open
@TAnckaerts

Description

@TAnckaerts

Steps to Reproduce

  1. Create a 'android.support.design.button.MaterialButton'
  2. set style to 'Widget.MaterialComponents.Button.OutlinedButton'
  3. run the application
<android.support.design.button.MaterialButton               android:id="@+id/secondaryButton"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:text="goto RecyclerView"        app:layout_constraintLeft_toLeftOf="parent"        app:layout_constraintRight_toRightOf="parent"        app:layout_constraintBottom_toTopOf="@id/nextPageButton"        local:MvxBind="Click NavigateCommand"/>

Following snippet generates a grey stroke.
[DEFAULT STYLE]

<resources>    <!--Supported from Android API 21+-->  <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">    <item name="colorPrimary">@color/colorPrimary</item>    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>    <item name="colorAccent">@color/colorAccent</item>  </style>  <style name="borderedButton" parent="Widget.MaterialComponents.Button.OutlinedButton">  </style></resources>

Following snippet generates a colored stroke as according to the material io guidelines

<resources>    <!--Supported from Android API 21+-->  <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">    <item name="colorPrimary">@color/colorPrimary</item>    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>    <item name="colorAccent">@color/colorAccent</item>  </style>  <style name="borderedButton" parent="Widget.MaterialComponents.Button.OutlinedButton">    <item name="strokeColor">@color/colorAccent</item>  </style></resources>

Expected Behavior

I expect [DEFAULT STYLE] to generate a stroke color using the accent color. The text and the stroke should have the same color.
image

Actual Behavior

image

Version Information

pixel 2 - Emulator
Android 9.0 - API 28
Xamarin.Android.Support.Design 28.0.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp