Эффект пишущей машинки в студии Android ⇐ Android
-
Anonymous
Эффект пишущей машинки в студии Android
Я новичок в изучении Java, Я пытаюсь добавить эффект пишущей машинки в свое приложение в студии Android. Я определил класс typeWriter для эффекта, но у меня все еще есть проблема с его использованием в моем приложении. в частности, чтобы использовать текст из других классов.
@Override protected void onCreate (Bundle saveInstanceState) { super.onCreate(saveInstanceState); setContentView(R.layout.game_screen); изображение = (ImageView) findViewById(R.id.IntroImage); текст = (TextView) findViewById(R.id.HelpAndDefine); button1 = (Кнопка) findViewById(R.id.button3); button2 = (Кнопка) findViewById(R.id.button5); button3 = (Кнопка) findViewById(R.id.button7); button1.setTransformationMethod(null); button2.setTransformationMethod(null); button3.setTransformationMethod(null); typeWriter txtView = findViewById(R.id.HelpAndDefine); txtView.setText(""); txtView.setCharacterDelays(150); txtView.animateText(""); история.startingPoint();
Я новичок в изучении Java, Я пытаюсь добавить эффект пишущей машинки в свое приложение в студии Android. Я определил класс typeWriter для эффекта, но у меня все еще есть проблема с его использованием в моем приложении. в частности, чтобы использовать текст из других классов.
@Override protected void onCreate (Bundle saveInstanceState) { super.onCreate(saveInstanceState); setContentView(R.layout.game_screen); изображение = (ImageView) findViewById(R.id.IntroImage); текст = (TextView) findViewById(R.id.HelpAndDefine); button1 = (Кнопка) findViewById(R.id.button3); button2 = (Кнопка) findViewById(R.id.button5); button3 = (Кнопка) findViewById(R.id.button7); button1.setTransformationMethod(null); button2.setTransformationMethod(null); button3.setTransformationMethod(null); typeWriter txtView = findViewById(R.id.HelpAndDefine); txtView.setText(""); txtView.setCharacterDelays(150); txtView.animateText(""); история.startingPoint();
Мобильная версия