Google TV 오버레이를 만들고 있습니다.Google TV 맞춤 토스트
Styles.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="Invisible" parent="@android:style/Theme">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
를이 테마를 사용하여 내가 가진 사용자 정의 토스트를 표시 할 수없는 경우 : 방송이 응용 프로그램을 통해 볼 수 있도록 다음과 같이 나는 투명 테마를 만들었습니다 나는이 테마를 사용할 때이 표시되지 않습니다
View layout = inflater.inflate(R.layout.toast,
(ViewGroup) findViewById(R.id.custom_toast_layout_id));
// Toast...
Toast toast = new Toast(getApplicationContext());
toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
toast.setDuration(Toast.LENGTH_LONG);
toast.setView(layout);
toast.show();
을 만 표준 축배를 표시합니다 : 그림 사용
Toast.makeText(this, "This game is over. Start a new game.", Toast.LENGTH_SHORT).show();
토스트는 화면 가운데에 그림을 표시하기 때문에 복잡 할 필요가 없습니다.
도움을 주시면 감사하겠습니다.