GradientDrawable.SetStroke 메서드

정의

오버로드

Name Description
SetStroke(Int32, Color, Single, Single)

그리기 가능 항목의 스트로크 너비와 색을 설정합니다.

SetStroke(Int32, ColorStateList, Single, Single)

그리기 가능 항목의 스트로크 너비 및 색 상태 목록을 설정합니다.

SetStroke(Int32, ColorStateList)

그리기 가능 항목의 스트로크 너비 및 색 상태 목록을 설정합니다.

SetStroke(Int32, Color)

그리기 가능 항목의 스트로크 너비와 색을 설정합니다.

SetStroke(Int32, Color, Single, Single)

그리기 가능 항목의 스트로크 너비와 색을 설정합니다.

[Android.Runtime.Register("setStroke", "(IIFF)V", "GetSetStroke_IIFFHandler")]
public virtual void SetStroke(int width, Android.Graphics.Color color, float dashWidth, float dashGap);
[<Android.Runtime.Register("setStroke", "(IIFF)V", "GetSetStroke_IIFFHandler")>]
abstract member SetStroke : int * Android.Graphics.Color * single * single -> unit
override this.SetStroke : int * Android.Graphics.Color * single * single -> unit

매개 변수

width
Int32

스트로크의 너비(픽셀)

color
Color

스트로크의 색

dashWidth
Single

대시를 사용하지 않도록 설정하려면 0으로 설정된 대시의 길이(픽셀)입니다.

dashGap
Single

대시 사이의 픽셀 간격

특성

설명

그리기 가능 항목의 스트로크 너비와 색을 설정합니다. 너비가 0이면 스트로크가 그려지지 않습니다. 이 메서드를 사용하여 스트로크를 대시할 수도 있습니다.

<strong>Note</strong>: 이 속성을 변경하면 리소스에서 로드된 드로블의 모든 인스턴스에 영향을 줍니다. 이 속성을 변경하기 전에 호출 #mutate() 하는 것이 좋습니다.

에 대한 android.graphics.drawable.GradientDrawable.setStroke(int, int, float, float)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

추가 정보

  • <xref:Android.Graphics.Drawables.GradientDrawable.SetStroke(System.Int32%2c+Android.Graphics.Color)>

적용 대상

SetStroke(Int32, ColorStateList, Single, Single)

그리기 가능 항목의 스트로크 너비 및 색 상태 목록을 설정합니다.

[Android.Runtime.Register("setStroke", "(ILandroid/content/res/ColorStateList;FF)V", "GetSetStroke_ILandroid_content_res_ColorStateList_FFHandler")]
public virtual void SetStroke(int width, Android.Content.Res.ColorStateList? colorStateList, float dashWidth, float dashGap);
[<Android.Runtime.Register("setStroke", "(ILandroid/content/res/ColorStateList;FF)V", "GetSetStroke_ILandroid_content_res_ColorStateList_FFHandler")>]
abstract member SetStroke : int * Android.Content.Res.ColorStateList * single * single -> unit
override this.SetStroke : int * Android.Content.Res.ColorStateList * single * single -> unit

매개 변수

width
Int32

스트로크의 너비(픽셀)

colorStateList
ColorStateList

스트로크의 색 상태 목록

dashWidth
Single

대시를 사용하지 않도록 설정하려면 0으로 설정된 대시의 길이(픽셀)입니다.

dashGap
Single

대시 사이의 픽셀 간격

특성

설명

그리기 가능 항목의 스트로크 너비 및 색 상태 목록을 설정합니다. 너비가 0이면 스트로크가 그려지지 않습니다. 이 메서드를 사용하여 스트로크를 대시할 수도 있습니다.

<strong>Note</strong>: 이 속성을 변경하면 리소스에서 로드된 드로블의 모든 인스턴스에 영향을 줍니다. 이 속성을 변경하기 전에 호출 #mutate() 하는 것이 좋습니다.

에 대한 android.graphics.drawable.GradientDrawable.setStroke(int, android.content.res.ColorStateList, float, float)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

추가 정보

  • <xref:Android.Graphics.Drawables.GradientDrawable.SetStroke(System.Int32%2c+Android.Content.Res.ColorStateList)>

적용 대상

SetStroke(Int32, ColorStateList)

그리기 가능 항목의 스트로크 너비 및 색 상태 목록을 설정합니다.

[Android.Runtime.Register("setStroke", "(ILandroid/content/res/ColorStateList;)V", "GetSetStroke_ILandroid_content_res_ColorStateList_Handler")]
public virtual void SetStroke(int width, Android.Content.Res.ColorStateList? colorStateList);
[<Android.Runtime.Register("setStroke", "(ILandroid/content/res/ColorStateList;)V", "GetSetStroke_ILandroid_content_res_ColorStateList_Handler")>]
abstract member SetStroke : int * Android.Content.Res.ColorStateList -> unit
override this.SetStroke : int * Android.Content.Res.ColorStateList -> unit

매개 변수

width
Int32

스트로크의 너비(픽셀)

colorStateList
ColorStateList

스트로크의 색 상태 목록

특성

설명

그리기 가능 항목의 스트로크 너비 및 색 상태 목록을 설정합니다. 너비가 0이면 스트로크가 그려지지 않습니다.

<strong>Note</strong>: 이 속성을 변경하면 리소스에서 로드된 드로블의 모든 인스턴스에 영향을 줍니다. 이 속성을 변경하기 전에 호출 #mutate() 하는 것이 좋습니다.

에 대한 android.graphics.drawable.GradientDrawable.setStroke(int, android.content.res.ColorStateList)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

추가 정보

  • <xref:Android.Graphics.Drawables.GradientDrawable.SetStroke(System.Int32%2c+Android.Content.Res.ColorStateList%2c+Android.Content.Res.ColorStateList%2c+Android.Content.Res.ColorStateList)>

적용 대상

SetStroke(Int32, Color)

그리기 가능 항목의 스트로크 너비와 색을 설정합니다.

[Android.Runtime.Register("setStroke", "(II)V", "GetSetStroke_IIHandler")]
public virtual void SetStroke(int width, Android.Graphics.Color color);
[<Android.Runtime.Register("setStroke", "(II)V", "GetSetStroke_IIHandler")>]
abstract member SetStroke : int * Android.Graphics.Color -> unit
override this.SetStroke : int * Android.Graphics.Color -> unit

매개 변수

width
Int32

스트로크의 너비(픽셀)

color
Color

스트로크의 색

특성

설명

그리기 가능 항목의 스트로크 너비와 색을 설정합니다. 너비가 0이면 스트로크가 그려지지 않습니다.

<strong>Note</strong>: 이 속성을 변경하면 리소스에서 로드된 드로블의 모든 인스턴스에 영향을 줍니다. 이 속성을 변경하기 전에 호출 #mutate() 하는 것이 좋습니다.

에 대한 android.graphics.drawable.GradientDrawable.setStroke(int, int)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

추가 정보

  • <xref:Android.Graphics.Drawables.GradientDrawable.SetStroke(System.Int32%2c+Android.Graphics.Color%2c+Android.Graphics.Color%2c+Android.Graphics.Color)>

적용 대상