public classToastextends Objectjava.lang.Object   ↳ android.widget.Toa การแปล - public classToastextends Objectjava.lang.Object   ↳ android.widget.Toa ไทย วิธีการพูด

public classToastextends Objectjava

public class
Toast
extends Object
java.lang.Object
   ↳ android.widget.Toast
Class Overview
A toast is a view containing a quick little message for the user. The toast class helps you create and show those.

When the view is shown to the user, appears as a floating view over the application. It will never receive focus. The user will probably be in the middle of typing something else. The idea is to be as unobtrusive as possible, while still showing the user the information you want them to see. Two examples are the volume control, and the brief message saying that your settings have been saved.

The easiest way to use this class is to call one of the static methods that constructs everything you need and returns a new Toast object.

Developer Guides

For information about creating Toast notifications, read the Toast Notifications developer guide.

Summary
Constants
int LENGTH_LONG Show the view or text notification for a long period of time.
int LENGTH_SHORT Show the view or text notification for a short period of time.
Public Constructors
Toast(Context context)
Construct an empty Toast object.
Public Methods
void cancel()
Close the view if it's showing, or don't show it if it isn't showing yet.
int getDuration()
Return the duration.
int getGravity()
Get the location at which the notification should appear on the screen.
float getHorizontalMargin()
Return the horizontal margin.
float getVerticalMargin()
Return the vertical margin.
View getView()
Return the view.
int getXOffset()
Return the X offset in pixels to apply to the gravity's location.
int getYOffset()
Return the Y offset in pixels to apply to the gravity's location.
static Toast makeText(Context context, int resId, int duration)
Make a standard toast that just contains a text view with the text from a resource.
static Toast makeText(Context context, CharSequence text, int duration)
Make a standard toast that just contains a text view.
void setDuration(int duration)
Set how long to show the view for.
void setGravity(int gravity, int xOffset, int yOffset)
Set the location at which the notification should appear on the screen.
void setMargin(float horizontalMargin, float verticalMargin)
Set the margins of the view.
void setText(int resId)
Update the text in a Toast that was previously created using one of the makeText() methods.
void setText(CharSequence s)
Update the text in a Toast that was previously created using one of the makeText() methods.
void setView(View view)
Set the view to show.
void show()
Show the view for the specified duration.
[Expand]
Inherited Methods
From class java.lang.Object
Constants
public static final int LENGTH_LONG

Added in API level 1
Show the view or text notification for a long period of time. This time could be user-definable.

See Also
setDuration(int)
Constant Value: 1 (0x00000001)
public static final int LENGTH_SHORT

Added in API level 1
Show the view or text notification for a short period of time. This time could be user-definable. This is the default.

See Also
setDuration(int)
Constant Value: 0 (0x00000000)
Public Constructors
public Toast (Context context)

Added in API level 1
Construct an empty Toast object. You must call setView(View) before you can call show().

Parameters
context The context to use. Usually your Application or Activity object.
Public Methods
public void cancel ()

Added in API level 1
Close the view if it's showing, or don't show it if it isn't showing yet. You do not normally have to call this. Normally view will disappear on its own after the appropriate duration.

public int getDuration ()

Added in API level 1
Return the duration.

See Also
setDuration(int)
public int getGravity ()

Added in API level 1
Get the location at which the notification should appear on the screen.

See Also
Gravity
getGravity()
public float getHorizontalMargin ()

Added in API level 1
Return the horizontal margin.

public float getVerticalMargin ()

Added in API level 1
Return the vertical margin.

public View getView ()

Added in API level 1
Return the view.

See Also
setView(View)
public int getXOffset ()

Added in API level 1
Return the X offset in pixels to apply to the gravity's location.

public int getYOffset ()

Added in API level 1
Return the Y offset in pixels to apply to the gravity's location.

public static Toast makeText (Context context, int resId, int duration)

Added in API level 1
Make a standard toast that just contains a text view with the text from a resource.

Parameters
context The context to use. Usually your Application or Activity object.
resId The resource id of the string resource to use. Can be formatted text.
duration How long to display the message. Either LENGTH_SHORT or LENGTH_LONG
Throws
if the resource can't be found.
Resources.NotFoundException
public static Toast makeText (Context context, CharSequence text, int duration)

Added in API level 1
Make a standard toast that just contains a text view.

Parameters
context The context to use. Usually your Application or Activity object.
text The text to show. Can be formatted text.
duration How long to display the message. Either LENGTH_SHORT or LENGTH_LONG
public void setDuration (int duration)

Added in API level 1
Set how long to show the view for.

See Also
LENGTH_SHORT
LENGTH_LONG
public void setGravity (int gravity, int xOffset, int yOffset)

Added in API level 1
Set the location at which the notification should appear on the screen.

See Also
Gravity
getGravity()
public void setMargin (float horizontalMargin, float verticalMargin)

Added in API level 1
Set the margins of the view.

Parameters
horizontalMargin The horizontal margin, in percentage of the container width, between the container's edges and the notification
verticalMargin The vertical margin, in percentage of the container height, between the container's edges and the notification
public void setText (int resId)

Added in API level 1
Update the text in a Toast that was previously created using one of the makeText() methods.

Parameters
resId The new text for the Toast.
public void setText (CharSequence s)

Added in API level 1
Update the text in a Toast that was previously created using one of the makeText() methods.

Parameters
s The new text for the Toast.
public void setView (View view)

Added in API level 1
Set the view to show.

See Also
getView()
public void show ()

Added in API level 1
Show the view for the specified duration.
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
คลาสาธารณะ
ขนมปังปิ้ง
ขยาย Object
java.lang.Object
↳ android.widget.Toast
Class ภาพรวม
ขนมปังมีมุมมองประกอบด้วยข้อความเล็กน้อยอย่างรวดเร็วสำหรับผู้ใช้ ชั้นขนมปังช่วยคุณสร้าง และแสดงผู้

เมื่อมุมมองจะแสดงผู้ใช้ ปรากฏเป็นมุมลอยผ่านแอพลิเคชัน มันจะไม่ได้รับความ ผู้ใช้คงจะกลางพิมพ์อย่างอื่น ความคิดจะถูกสิ่งรอบข้างเป็นที่สุด ในขณะที่ยังคง แสดงผู้ใช้ข้อมูลที่คุณต้องการให้ดู ตัวอย่างคือ ตัวควบคุมระดับเสียง และข้อความสั้น ๆ ที่บอกว่า ที่ตั้งค่าของคุณได้ด้วย

วิธีง่ายที่สุดใช้คลาสนี้จะเรียกวิธีการแบบคงที่สร้างทุกสิ่งที่คุณต้องการ และกลับเป็นใหม่ปังวัตถุอย่างใดอย่างหนึ่ง

แนะนำนักพัฒนา

สำหรับข้อมูลเกี่ยวกับการสร้างการแจ้งเตือน ขนมปังอ่านการแจ้งเตือนขนมปังพัฒนาคู่มือการ

สรุป
คง
int LENGTH_LONG แสดงมุมมองหรือข้อความแจ้งเตือนเป็นระยะเวลานานของเวลา
int LENGTH_SHORT แสดงมุมมองหรือข้อความแจ้งเตือนเป็นระยะเวลาสั้น ๆ ของเวลา
ตัวสร้างสาธารณะ
ขนมปัง (บริบทบริบท)
สร้างการว่างเปล่าขนมปังวัตถุ
วิธีการสาธารณะ
ยกเลิก cancel()
ปิดมุมมองจะแสดง หรือไม่ก็ถ้ามันไม่แสดงยัง
int () getDuration
ระยะเวลาได้
int () getGravity
รับสถานที่ที่ปรากฏการแจ้งเตือนบนหน้าจอ
ลอย(getHorizontalMargin)
แนวขอบได้
ลอย(getVerticalMargin)
แนวขอบได้
ดู(getView)
กลับดู
int getXOffset()
กลับตรงข้าม X เซลการใช้สถานของแรงโน้มถ่วง
int () getYOffset
กลับตรงข้าม Y เซลการใช้สถานของแรงโน้มถ่วง
makeText ขนมปังคง (บริบทบริบท จุด int, int ระยะเวลา)
ทำขนมปังแบบมาตรฐานที่ประกอบด้วยมุมมองข้อความกับข้อความจากทรัพยากรเพียง
makeText ขนมปังคง (บริบทบริบท CharSequence ข้อความ ระยะเวลา int)
ทำขนมปังแบบมาตรฐานที่ประกอบด้วยเพียงมุมมองข้อความ
โมฆะ setDuration (int ช่วง)
ชุดระยะการแสดงกันดู
โมฆะ setGravity (แรงโน้มถ่วง int, int xOffset, int yOffset)
ตั้งค่าตำแหน่งที่ปรากฏการแจ้งเตือนบนหน้าจอ
setMargin เป็นโมฆะ (horizontalMargin ลอย ลอย verticalMargin)
ตั้งค่าระยะขอบของมุมมอง
โมฆะ setText (int จุด)
อัพเดตข้อความในขนมปังที่ก่อนหน้านี้หนึ่งของ makeText() วิธี
โมฆะ setText (CharSequence s)
อัพเดตข้อความในขนมปังที่ก่อนหน้านี้หนึ่งของ makeText() วิธี
โมฆะ setView (วิว)
ตั้งมุมมองเพื่อแสดง
()ดูโมฆะ
ดูสำหรับการระบุระยะเวลาการ
[ขยาย]
วิธีสืบทอด
จากคลาส java.lang.Object
Constants
สุดท้าย int สาธารณะคง LENGTH_LONG

เพิ่มใน API ระดับ 1
แสดงมุมมองหรือข้อความแจ้งเตือนสำหรับรอบระยะเวลายาวนาน เวลานี้อาจเป็นผู้ใช้เองได้

ยัง
setDuration (int)
ค่าคง: 1 (0x00000001)
สุดท้าย int สาธารณะคง LENGTH_SHORT

เพิ่มใน API ระดับ 1
แสดงมุมมองหรือข้อความแจ้งเตือนในระยะเวลาสั้น ๆ ได้ เวลานี้อาจเป็นผู้ใช้เอง ต้น

ดู
setDuration (int)
ค่าคง: 0 (0x00000000)
ตัวสร้างสาธารณะ
ขนมปังสาธารณะ (บริบทบริบท)

เพิ่มใน API ระดับ 1
สร้างวัตถุขนมปังเปล่า คุณต้องโทร setView(View) ก่อนที่คุณสามารถเรียกดู().

พารามิเตอร์
บริบทบริบทการใช้งาน ปกติของโปรแกรมประยุกต์หรือกิจกรรมวัตถุ
วิธีการสาธารณะ
()ยกเลิกเป็นโมฆะสาธารณะ

เพิ่มใน API ระดับ 1
ปิดมุมมองจะแสดง หรือไม่แสดงถ้ามันไม่แสดงได้ ไม่ปกติได้เรียกนี้ ปกติดูจะหายไปในช่วงเวลาของตัวเองหลังจากงาน

int สาธารณะ getDuration ()

เพิ่มใน API ระดับ 1
ระยะเวลาได้

ยัง
setDuration (int)
int สาธารณะ getGravity ()

เพิ่มใน API ระดับ 1
รับสถานที่ที่ปรากฏการแจ้งเตือนบนหน้าจอ

ยัง
แรงโน้มถ่วง
(getGravity)
ลอยสาธารณะ getHorizontalMargin ()

เพิ่มใน API ระดับ 1
แนวขอบได้

ลอยสาธารณะ getVerticalMargin ()

เพิ่มใน API ระดับ 1
แนวขอบได้

() getView มุมมองสาธารณะ

เพิ่มใน API ระดับ 1
กลับดู

ยัง
setView (ดู)
int สาธารณะ getXOffset ()

เพิ่มใน API ระดับ 1
กลับ X ตรงข้ามเซลการใช้สถานของแรงโน้มถ่วง

int สาธารณะ getYOffset ()

เพิ่มใน API ระดับ 1
กลับตรงข้าม Y เซลการใช้สถานของแรงโน้มถ่วง

สาธารณะคงขนมปัง makeText (บริบทบริบท จุด int, int ระยะเวลา)

เพิ่มใน API ระดับ 1
ทำขนมปังแบบมาตรฐานที่ประกอบด้วยเพียงมุมมองข้อความกับข้อความจากทรัพยากร

พารามิเตอร์
บริบทบริบทการใช้ ปกติของโปรแกรมประยุกต์หรือกิจกรรมวัตถุ
รหัสทรัพยากรของทรัพยากรสายอักขระจะใช้จุด ได้จัดรูปแบบข้อความ
ระยะเวลาว่านานก่อนที่จะแสดงข้อความได้ LENGTH_SHORT หรือ LENGTH_LONG
พ่น
ถ้าไม่พบทรัพยากร.
Resources.NotFoundException
สาธารณะคงขนมปัง makeText (บริบทบริบท CharSequence ข้อความ ระยะเวลา int)

เพิ่มใน API ระดับ 1
ทำขนมปังแบบมาตรฐานที่ประกอบด้วยเพียงมุมมองข้อความ

พารามิเตอร์
บริบทบริบทการใช้ ปกติของโปรแกรมประยุกต์หรือกิจกรรมวัตถุ
ข้อความข้อความจะแสดงขึ้น ได้จัดรูปแบบข้อความ
ระยะเวลาว่านานก่อนที่จะแสดงข้อความได้ LENGTH_SHORT หรือ LENGTH_LONG
setDuration โมฆะสาธารณะ (ระยะเวลา int)

เพิ่มใน API ระดับ 1
ชุดระยะการแสดงกันดู

ยัง
LENGTH_SHORT
LENGTH_LONG
สาธารณะโมฆะ setGravity (แรงโน้มถ่วง int, int xOffset, int yOffset)

เพิ่มใน API ระดับ 1
ตั้งค่าตำแหน่งที่ปรากฏการแจ้งเตือนบนหน้าจอ

ยัง
แรงโน้มถ่วง
() getGravity
setMargin โมฆะสาธารณะ (horizontalMargin ลอย ลอย verticalMargin)

เพิ่มใน API ระดับ 1
ตั้งค่าระยะขอบของมุมมอง

พารามิเตอร์
horizontalMargin ขอบแนวนอน เปอร์เซ็นต์ของความกว้างคอนเทนเนอร์ ระหว่างขอบของภาชนะและการแจ้งเตือน
verticalMargin ขอบแนวตั้ง ในเปอร์เซ็นต์ของความสูงภาชนะ ระหว่างขอบของภาชนะและการแจ้งเตือน
setText โมฆะสาธารณะ (จุด int)

เพิ่มใน API ระดับ 1
อัพเดตข้อความในขนมปังที่ก่อนหน้านี้หนึ่งของ makeText() วิธี

พารามิเตอร์
จุดข้อความใหม่สำหรับขนมปัง
setText โมฆะสาธารณะ (CharSequence s)

เพิ่มใน API ระดับ 1
อัพเดตข้อความในขนมปังที่ก่อนหน้านี้หนึ่งของ makeText() วิธี

พารามิเตอร์
s ข้อความใหม่สำหรับขนมปัง
สาธารณะโมฆะ setView (วิว)

เพิ่มใน API ระดับ 1
ตั้งมุมมองเพื่อแสดง

ยัง
(getView)
()ดูสาธารณะโมฆะ

เพิ่มใน API ระดับ 1
ดูสำหรับระยะเวลา
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
public class
Toast
extends Object
java.lang.Object
   ↳ android.widget.Toast
Class Overview
A toast is a view containing a quick little message for the user. The toast class helps you create and show those.

When the view is shown to the user, appears as a floating view over the application. It will never receive focus. The user will probably be in the middle of typing something else. The idea is to be as unobtrusive as possible, while still showing the user the information you want them to see. Two examples are the volume control, and the brief message saying that your settings have been saved.

The easiest way to use this class is to call one of the static methods that constructs everything you need and returns a new Toast object.

Developer Guides

For information about creating Toast notifications, read the Toast Notifications developer guide.

Summary
Constants
int LENGTH_LONG Show the view or text notification for a long period of time.
int LENGTH_SHORT Show the view or text notification for a short period of time.
Public Constructors
Toast(Context context)
Construct an empty Toast object.
Public Methods
void cancel()
Close the view if it's showing, or don't show it if it isn't showing yet.
int getDuration()
Return the duration.
int getGravity()
Get the location at which the notification should appear on the screen.
float getHorizontalMargin()
Return the horizontal margin.
float getVerticalMargin()
Return the vertical margin.
View getView()
Return the view.
int getXOffset()
Return the X offset in pixels to apply to the gravity's location.
int getYOffset()
Return the Y offset in pixels to apply to the gravity's location.
static Toast makeText(Context context, int resId, int duration)
Make a standard toast that just contains a text view with the text from a resource.
static Toast makeText(Context context, CharSequence text, int duration)
Make a standard toast that just contains a text view.
void setDuration(int duration)
Set how long to show the view for.
void setGravity(int gravity, int xOffset, int yOffset)
Set the location at which the notification should appear on the screen.
void setMargin(float horizontalMargin, float verticalMargin)
Set the margins of the view.
void setText(int resId)
Update the text in a Toast that was previously created using one of the makeText() methods.
void setText(CharSequence s)
Update the text in a Toast that was previously created using one of the makeText() methods.
void setView(View view)
Set the view to show.
void show()
Show the view for the specified duration.
[Expand]
Inherited Methods
From class java.lang.Object
Constants
public static final int LENGTH_LONG

Added in API level 1
Show the view or text notification for a long period of time. This time could be user-definable.

See Also
setDuration(int)
Constant Value: 1 (0x00000001)
public static final int LENGTH_SHORT

Added in API level 1
Show the view or text notification for a short period of time. This time could be user-definable. This is the default.

See Also
setDuration(int)
Constant Value: 0 (0x00000000)
Public Constructors
public Toast (Context context)

Added in API level 1
Construct an empty Toast object. You must call setView(View) before you can call show().

Parameters
context The context to use. Usually your Application or Activity object.
Public Methods
public void cancel ()

Added in API level 1
Close the view if it's showing, or don't show it if it isn't showing yet. You do not normally have to call this. Normally view will disappear on its own after the appropriate duration.

public int getDuration ()

Added in API level 1
Return the duration.

See Also
setDuration(int)
public int getGravity ()

Added in API level 1
Get the location at which the notification should appear on the screen.

See Also
Gravity
getGravity()
public float getHorizontalMargin ()

Added in API level 1
Return the horizontal margin.

public float getVerticalMargin ()

Added in API level 1
Return the vertical margin.

public View getView ()

Added in API level 1
Return the view.

See Also
setView(View)
public int getXOffset ()

Added in API level 1
Return the X offset in pixels to apply to the gravity's location.

public int getYOffset ()

Added in API level 1
Return the Y offset in pixels to apply to the gravity's location.

public static Toast makeText (Context context, int resId, int duration)

Added in API level 1
Make a standard toast that just contains a text view with the text from a resource.

Parameters
context The context to use. Usually your Application or Activity object.
resId The resource id of the string resource to use. Can be formatted text.
duration How long to display the message. Either LENGTH_SHORT or LENGTH_LONG
Throws
if the resource can't be found.
Resources.NotFoundException
public static Toast makeText (Context context, CharSequence text, int duration)

Added in API level 1
Make a standard toast that just contains a text view.

Parameters
context The context to use. Usually your Application or Activity object.
text The text to show. Can be formatted text.
duration How long to display the message. Either LENGTH_SHORT or LENGTH_LONG
public void setDuration (int duration)

Added in API level 1
Set how long to show the view for.

See Also
LENGTH_SHORT
LENGTH_LONG
public void setGravity (int gravity, int xOffset, int yOffset)

Added in API level 1
Set the location at which the notification should appear on the screen.

See Also
Gravity
getGravity()
public void setMargin (float horizontalMargin, float verticalMargin)

Added in API level 1
Set the margins of the view.

Parameters
horizontalMargin The horizontal margin, in percentage of the container width, between the container's edges and the notification
verticalMargin The vertical margin, in percentage of the container height, between the container's edges and the notification
public void setText (int resId)

Added in API level 1
Update the text in a Toast that was previously created using one of the makeText() methods.

Parameters
resId The new text for the Toast.
public void setText (CharSequence s)

Added in API level 1
Update the text in a Toast that was previously created using one of the makeText() methods.

Parameters
s The new text for the Toast.
public void setView (View view)

Added in API level 1
Set the view to show.

See Also
getView()
public void show ()

Added in API level 1
Show the view for the specified duration.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
ชื่อคลาส
ปิ้ง
ขยายวัตถุ Java lang.object

   ↳ Android Widget . . ปิ้ง

อวยพรเป็นภาพรวมระดับมุมมองที่มีข้อความเล็ก ๆน้อย ๆได้อย่างรวดเร็วสำหรับผู้ใช้ ขนมปังปิ้งชั้นช่วยให้คุณสามารถสร้างและแสดงให้พวก

เมื่อเป็นภาพที่แสดงให้กับผู้ใช้ ปรากฏลอยเป็นมุมมองผ่านโปรแกรม มันก็จะไม่มีวันได้รับโฟกัส ผู้ใช้อาจจะอยู่ตรงกลางของพิมพ์อย่างอื่นความคิดคือการเป็นรุก เป็นไปได้ ในขณะที่ยังให้ผู้ใช้ข้อมูลที่คุณต้องการให้พวกเขาได้เห็น ตัวอย่างที่สองคือ การควบคุมระดับเสียงและย่อข้อความที่บอกว่าการตั้งค่าของคุณได้รับการบันทึกไว้ .

วิธีที่ง่ายที่สุดที่จะใช้ชั้นนี้คือการเรียกหนึ่งของคงที่วิธีการที่โครงสร้างทุกอย่างที่คุณต้องการ และส่งกลับวัตถุขนมปังใหม่


พัฒนามัคคุเทศก์สำหรับข้อมูลเกี่ยวกับการสร้างการแจ้งเตือนที่ปิ้งขนมปังแจ้งผู้พัฒนาคู่มืออ่าน



สรุปค่า int length_long แสดงมุมมองหรือข้อความแจ้งเตือนสำหรับระยะเวลานานของเวลา .
1 length_short แสดงมุมมอง หรือการแจ้งข้อความสำหรับช่วงเวลาสั้น ๆ .

อวยพรก่อสร้างสาธารณะ ( บริบทบริบท )
สร้างขนมปังปิ้ง ว่างเปล่าวัตถุ วิธีการ cancel()


โมฆะสาธารณะปิดมุมมองถ้ามันแสดงหรือไม่แสดงมันออกมา ถ้ามันไม่แสดงเลย getduration()

1 คืน ระยะเวลา getgravity()

! เอาสถานที่ที่การแจ้งเตือนจะปรากฏบนหน้าจอ gethorizontalmargin()

ลอยกลับขอบแนวนอน getverticalmargin()

ลอยกลับ
ขอบแนวตั้ง ดู getview()
กลับมาดู getxoffset()

!กลับออฟเซตในพิกเซลเพื่อใช้กับแรงโน้มถ่วงที่ตั้ง .
1 getyoffset()
กลับออฟเซตในพิกเซลเพื่อใช้กับแรงโน้มถ่วงที่ตั้ง .
maketext ปิ้งแบบคงที่ ( บริบทบริบท resid int , int ช่วงเวลา )
ให้มาตรฐานขนมปังที่เพิ่งมีมุมมองข้อความกับข้อความจากทรัพยากร
maketext ปิ้งแบบคงที่ ( บริบทบริบท charsequence ข้อความ Int เวลา )
สร้างมาตรฐานขนมปังที่เพิ่งมีมุมมองข้อความ setduration
เป็นโมฆะ ( ระยะเวลา int )
ตั้งนานเพื่อแสดงมุมมองสำหรับ setgravity
เป็นโมฆะ ( แรงโน้มถ่วง xoffset int int , int yoffset )
ตั้งสถานที่ที่การแจ้งเตือนจะปรากฏบนหน้าจอ setmargin
เป็นโมฆะ ( horizontalmargin verticalmargin ลอย ลอย )
ชุดขอบของมุมมอง settext เป็นโมฆะ ( int resid )

ปรับปรุงข้อความในขนมปังที่เคยสร้างขึ้นโดยใช้หนึ่งใน maketext() วิธี settext
เป็นโมฆะ ( charsequence S )
ปรับปรุงข้อความในขนมปังที่เคยสร้างขึ้นโดยใช้หนึ่งใน maketext() วิธี setview
เป็นโมฆะ ( มุมมอง )
ชุดมุมมองเพื่อแสดง show()
.
โมฆะแสดงมุมมองสำหรับ ระยะเวลาที่ระบุ .
[ ]

เป็นวิธีการขยายจากคลาสจาวา ค่าคงที่ lang.object

สาธารณะคงสุดท้าย int length_long

เพิ่มในระดับที่ 1
API แสดงมุมมอง หรือการแจ้งข้อความสำหรับระยะเวลาที่ยาวนานของเวลา ครั้งนี้อาจเป็นผู้ใช้กำหนดชี้แจงได้

ดู

setduration ( INT ) มีค่าคงที่ : 1 ( 0x00000001 )
สาธารณะคงสุดท้าย int length_short

เพิ่มในระดับที่ 1
API แสดงมุมมอง หรือการแจ้งข้อความสำหรับระยะเวลาอันสั้นของเวลา ครั้งนี้อาจเป็นผู้ใช้กำหนด . นี้เป็นค่าเริ่มต้น .

ดู

setduration ( INT ) มีค่าคงที่ : 0 ( 0x00000000 )

อวยพรประชาชนก่อสร้างสาธารณะ ( บริบทบริบท )

เพิ่มใน API ระดับ 1
ขนมปังเปล่าสร้างวัตถุ คุณจะต้องเรียก setview ( วิว ) ก่อนที่คุณจะสามารถเรียก show() ค่า
.

บริบทบริบทที่จะใช้ โดยปกติโปรแกรมประยุกต์ของคุณหรือกิจกรรมสาธารณะวิธีการวัตถุ

( )

เป็นโมฆะยกเลิก ในระดับ API 1
ปิดดูว่ามันแสดงหรือไม่แสดงมันออกมา ถ้ามันไม่แสดงเลย คุณไม่ปกติต้องสายนี้ ปกติดูจะหายไปเองตามระยะเวลาที่เหมาะสม getduration สาธารณะ int

( )

เพิ่มใน API ระดับ 1
กลับระยะเวลา

ดู
setduration ( INT )
( )

getgravity int สาธารณะเพิ่มในระดับ API 1
ได้รับตำแหน่งที่ควรจะปรากฏในประกาศ จอ



ดูแรงโน้มถ่วงgetgravity()
( )

gethorizontalmargin รัฐลอยตัวเพิ่มในระดับ API 1
กลับขอบแนวนอน ค่ะ

( )

getverticalmargin รัฐลอยตัวเพิ่มในระดับ API 1
กลับขอบแนวตั้ง มุมมองของประชาชน getview

( )

เพิ่มใน API ระดับ 1
กลับ


เห็นยังดู setview ( วิว )
( )

getxoffset สาธารณะ int เพิ่ม API ระดับ 1
กลับออฟเซตในพิกเซลเพื่อใช้กับแรงโน้มถ่วงที่ตั้ง .

สาธารณะ getyoffset ( int )

เพิ่มในระดับ API 1
กลับออฟเซตในพิกเซลเพื่อใช้กับแรงโน้มถ่วงสถานที่

คงที่สาธารณะ ( บริบทบริบท ขนมปัง maketext resid int , int ช่วงเวลา )

เพิ่มในระดับ API 1
สร้างมาตรฐานขนมปังที่เพิ่งมีมุมมองข้อความกับข้อความ จากทรัพยากร ค่า

บริบทบริบทที่จะใช้ โดยปกติโปรแกรมประยุกต์ของคุณหรือกิจกรรม
วัตถุ .resid ทรัพยากรสตริง ID ของทรัพยากรที่จะใช้ สามารถจัดรูปแบบข้อความ .
ระยะเวลานานเพื่อแสดงข้อความ ให้ length_short หรือ length_long

ถ้าทรัพยากรข้อผิดพลาดไม่พบ resources.notfoundexception

ขนมปัง maketext คงที่สาธารณะ ( บริบทบริบท charsequence ข้อความ Int เวลา )

เพิ่มในระดับ API 1
สร้างมาตรฐานปิ้งเพียงแค่มีดูค่า

ข้อความบริบทบริบทที่จะใช้ โดยปกติโปรแกรมประยุกต์ของคุณหรือกิจกรรมวัตถุ .
ข้อความข้อความที่จะแสดง สามารถจัดรูปแบบข้อความ .
ระยะเวลานานเพื่อแสดงข้อความ ให้ length_short หรือ length_long
setduration โมฆะสาธารณะ ( ระยะเวลา int )

เพิ่มในระดับ API 1
ตั้งนานเพื่อแสดงมุมมอง . . . . . .




ดู length_short length_long โมฆะสาธารณะ setgravity ( แรงโน้มถ่วง xoffset int int , int yoffset )

เพิ่มในระดับ API 1
ตั้งสถานที่ที่การแจ้งเตือนจะปรากฏบนหน้าจอ นอกจากนี้ยังเห็น




setmargin แรงโน้มถ่วง getgravity() โมฆะสาธารณะ ( ลอย horizontalmargin , ลอย verticalmargin )

เพิ่มในระดับ API 1
ชุดขอบดู ค่า

horizontalmargin ขอบแนวนอนในร้อยละ ของภาชนะบรรจุ ความกว้างระหว่างขอบของภาชนะบรรจุและการแจ้งเตือน
verticalmargin ขอบแนวตั้งในร้อยละของภาชนะที่ความสูงระหว่างขอบของภาชนะบรรจุและการแจ้งเตือน
โมฆะสาธารณะ settext ( int resid )

เพิ่มใน API ระดับ 1
ปรับปรุงข้อความในขนมปังที่เคยสร้างขึ้นโดยใช้หนึ่งในวิธีการ maketext()


resid พารามิเตอร์ใหม่ข้อความสำหรับขนมปัง .
settext โมฆะสาธารณะ ( charsequence S )

เพิ่มในระดับ API 1
ปรับปรุงข้อความในขนมปังที่เคยสร้างขึ้นโดยใช้หนึ่งในวิธีการ maketext() ค่า
.

s ข้อความใหม่สำหรับขนมปัง .
setview โมฆะสาธารณะ ( มุมมอง )

เพิ่มในระดับ API 1
ตั้งมุมมองให้

ดู
getview() โมฆะสาธารณะ ( )

แสดง ในระดับที่ 1

เพิ่ม API ให้มุมมองสำหรับระยะเวลาที่ระบุ
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2024 I Love Translation. All reserved.

E-mail: