locked
@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox is not available in xamarin.android RRS feed

  • Question

  • User330065 posted

    i installed "Xamarin.Android.Support.Design" in my xamarin android project and trying to assign the style @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox

    to "TextInputLayout" control but the style is not available, any idea on this???

    Monday, January 21, 2019 2:28 PM

Answers

  • User359363 posted

    This latest changes are not included in Xamarin.Android.Support.Design 27.0.2 version, if you need use this style, update Xamarin.Android.Support.Design nuget package version to 28.0.0.1.

    eg:

    ```

        <android.support.design.widget.TextInputEditText
            android:id="@+id/cheese_description"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="start"
            android:hint="cheese_description" />
    
    </android.support.design.widget.TextInputLayout>
    

    ```

    Effect:

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, January 22, 2019 7:31 AM
  • User359363 posted

    @hanumas1361 , change your project Target Framework and Target Android Version to Android 9.0(API level 28):

    Then, clean the solution, delete bin and obj folder, restart VS and rebuild your project. :)

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, January 22, 2019 8:50 AM

All replies

  • User359363 posted

    This latest changes are not included in Xamarin.Android.Support.Design 27.0.2 version, if you need use this style, update Xamarin.Android.Support.Design nuget package version to 28.0.0.1.

    eg:

    ```

        <android.support.design.widget.TextInputEditText
            android:id="@+id/cheese_description"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="start"
            android:hint="cheese_description" />
    
    </android.support.design.widget.TextInputLayout>
    

    ```

    Effect:

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, January 22, 2019 7:31 AM
  • User330065 posted

    hi @YorkGo already i had "Xamarin.Android.Support.Design" nuget package with version 28.0.0.1in my project but the style is not coming

    Tuesday, January 22, 2019 8:06 AM
  • User359363 posted

    Could you please share your layout file?

    Tuesday, January 22, 2019 8:21 AM
  • User330065 posted

    Hi @YorkGo i tried with the code u have shared , with that also same result

    Tuesday, January 22, 2019 8:25 AM
  • User359363 posted

    @hanumas1361, That's wierd. Can you reproduce this issue in a blank project?

    Tuesday, January 22, 2019 8:32 AM
  • User330065 posted

    Hi @YorkGo with fresh project also same thing happening, i set minimum and target android versions to -APi level-27

    Tuesday, January 22, 2019 8:45 AM
  • User359363 posted

    @hanumas1361 , change your project Target Framework and Target Android Version to Android 9.0(API level 28):

    Then, clean the solution, delete bin and obj folder, restart VS and rebuild your project. :)

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, January 22, 2019 8:50 AM
  • User330065 posted

    Hi @YorkGo tried the same but no use, im having latest VS version and APK's but no luck

    Tuesday, January 22, 2019 9:24 AM
  • User359363 posted

    @hanumas1361, would you mind sharing a basic demo that can reproduce this issue?

    Tuesday, January 22, 2019 9:28 AM
  • User330065 posted

    Hi @YorkGo , thanks for the support, i have attached some sample project, please have a look.

    Tuesday, January 22, 2019 9:37 AM
  • User359363 posted

    @hanumas1361 , the App10.zip you provided, still using version 27.0.2.1 of "Xamarin.Android.Support.Design" nuget package.

    When I update it to 28.0.0.1, the issue resolved.

    Tuesday, January 22, 2019 9:49 AM
  • User330065 posted

    Hi @YorkGo thanks for the help, now im able to get the OutlinedBox style in my project

    Tuesday, January 22, 2019 1:27 PM