Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.91 KB

README.md

File metadata and controls

73 lines (52 loc) · 1.91 KB

LiveTextView

Android Library to display text while it is being spoken

Download API

Getting Started

Follow one of these steps to import Live-Text-View into your project:

The X.X.X stands for the current version, which can be found at the top

Gradle

implementation 'com.jeffg.live_text_view:live-text-view:X.X.X'

Maven

<dependency>
  <groupId>com.jeffg.live_text_view</groupId>
  <artifactId>live-text-view</artifactId>
  <version>X.X.X</version>
  <type>pom</type>
</dependency>

Ivy

<dependency org='com.jeffg.live_text_view' name='live-text-view' rev='X.X.X'>
  <artifact name='live-text-view' ext='pom' />
</dependency>

Implementing into your project

Add XML

<com.jeffg.live_text_view.LiveTextView
      android:id="@+id/liveTextView"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>

Initialise LiveTextView

LiveTextView liveTextView = (LiveTextView) findViewById(R.id.liveTextView);
liveTextView.setText(Text);
liveTextView.start();

License

Copyright 2018 Jeff Gugelmann

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.