MaterialTextField setting background to Transparent not working
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- android
- 領域
- mobile-dev
調査の方向性
指定された Xamarin.Forms とライブラリのバージョンを使用して、Android 上で報告された XAML を MaterialTextField および BackgroundColor="Transparent" とともに再現します。まず MaterialTextField の Android レンダリングと背景処理を追跡します。フィールドが透明のままになり、その動作が回帰テストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
🐛 Bug Report
When setting the BackgroundColor to Transparent on a MaterialTextField the BackgroundColor is still filled with the default color, ignoring the Transparent property on Android. This is tested with a MaterialTextField inside a Grid with a Background image on Android. The Background image is a <Image> component with a rowspan of the total grid rows, and Aspect set to AspectFill. It is not (yet) tested on iOS.
I also tested it without the background image and it results in the same (the Transparent property being ignored).
Expected behavior
The Filled color should be transparent of the MaterialTextField and not default back to the #DCDCDC value.
Screenshots

XAML Code
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="PCS2.APP.Views.Login.LoginPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:customControls="clr-namespace:PCS2.APP.CustomComponents;assembly=PCS2.APP"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False"
Shell.PresentationMode="ModalAnimated"
Shell.TabBarIsVisible="False"
mc:Ignorable="d">
<ContentPage.Content>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="70" />
<RowDefinition Height="70" />
<RowDefinition Height="70" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Image
x:Name="PCSBackground"
Grid.Row="0"
Grid.RowSpan="6"
Aspect="AspectFill" />
<Image
x:Name="PCSLogo"
Grid.Row="1"
Aspect="AspectFit"
HeightRequest="70" />
<material:MaterialTextField
Grid.Row="2"
Margin="{StaticResource EntryMargin}"
AlwaysShowUnderline="True"
BackgroundColor="Transparent"
InputType="Email"
Placeholder="E-mail of gebruikersnaam"
Text="{Binding Email}" />
<material:MaterialTextField
Grid.Row="3"
Margin="{StaticResource EntryMargin}"
AlwaysShowUnderline="True"
BackgroundColor="Transparent"
InputType="Password"
Placeholder="Wachtwoord"
Text="{Binding Password}" />
<material:MaterialButton
Grid.Row="4"
Margin="30,16,30,80"
BackgroundColor="#3880ff"
Command="{Binding ExecuteLogin}"
Text="Inloggen" />
</Grid>
</ContentPage.Content>
</ContentPage>
Configuration
Version: 1.7.4
Platform:
- 📱 iOS
- 🤖 Android
- 🏁 WPF
- 🌎 UWP
- 🍎 MacOS
- 📺 tvOS
- 🐒 Xamarin.Forms
Additional information
- Using Xamarin.Forms 4.8.0.1364
- Using Xamarin.Essentials 1.5.3.2
- Targeting framework: Android 10.0 (API Level 29 - Q)
Additional used libraries:
- Splat 9.5.37
- 主要言語
- C#
- スター
- 633
- フォーク
- 150
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Baseflow/XF-Material-Library のほかの issue
-
.Net Maui Supportオープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
Baseflow/XF-Material-Library#458 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
Baseflow/XF-Material-Library#457 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Baseflow/XF-Material-Library#456 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Baseflow/XF-Material-Library#454 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 58/100
Baseflow/XF-Material-Library#453 ·
Baseflow/XF-Material-Library の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
builtbybel/CrapFixer#112 ·
-
area-ai untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
dotnet/extensions#7790 ·
メンテナーはふだん 1 日以内に返信
-
Beginner Friendly T: Bugfix
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
space-wizards/space-station-14#46220 ·
メンテナーはふだん 1 日以内に返信
-
P2 testing
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/runtime#134766 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信