Slide 16
Slide 16 text
wϘλϯͷઃఆͱɺPO1SFTTͰ4%-։ൃΩοτͷը໘͕λοϓ͞Εͨ߹ͷڍಈΛఆٛͰ͖·͢ɻ
GRAPHIC WITH TEXTBUTTONSʹϘλϯΛઃఆ͢Δ
͜ͷ෦
SoftButtonState softButton02State1 = new SoftButtonState("button02_state1", "button02_state1", null);
SoftButtonObject softButtonObject2 = new SoftButtonObject("softButtonObject02",
Collections.singletonList(softButton02State1), softButton02State1.getName(), null);
softButtonObject2.setOnEventListener(new SoftButtonObject.OnEventListener() {
@Override
public void onPress(SoftButtonObject softButtonObject, OnButtonPress onButtonPress) {
sdlManager.getScreenManager().beginTransaction();
//ը૾Λొ͢Δ
SdlArtwork artwork = new SdlArtwork("oldman.png", FileType.GRAPHIC_PNG, R.drawable.oldman, true);
sdlManager.getScreenManager().setPrimaryGraphic(artwork);
sdlManager.getScreenManager().commit(new CompletionListener() {
@Override
public void onComplete(boolean success) {
if (success) {
Log.i(TAG, "welcome show successful");
}
}
});
}
@Override
public void onEvent(SoftButtonObject softButtonObject, OnButtonEvent onButtonEvent) {
}
});
List buttons = Arrays.asList(softButtonObject1, softButtonObject2);
//ϘλϯΛొ͢Δ
sdlManager.getScreenManager().setSoftButtonObjects(buttons);
SdlService.javaͷ263ߦ
ը໘ͷλοϓΠϕϯτΛݕग़Ͱ͖Δ
αϯϓϧλοϓ͞ΕͨΒը૾Λมߋ͢Δ
λοϓͯ͠มߋ͢Δը૾