RandomTextView

Additional

Language
Java
Version
v1.0 (Oct 25, 2018)
Created
Oct 25, 2018
Updated
Oct 30, 2018 (Retired)
Owner
Baset Esmaeili (BasetEsmaeili)
Contributors
Baset Esmaeili (BasetEsmaeili)
Silvannaight
2
Activity
Badge
Generate
Download
Source code

RandomTextView

a Android library for pickup random text from list and show in textview

all TextView attributes work because the library extends TextView

How to Download

gradle

step 1: add below code in your root build.gradle at the end of repositories:

allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

step 2: add below code in build.gradle dependency of app module

dependencies {
         implementation 'com.github.BasetEsmaeili:RandomTextView:v1.0'
 }

How use this library

step 1:

XML

    <com.baset.randomtv.RandomTextView
        android:id="@+id/randomtv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textColor="#4dc164"
        android:textSize="19dp"/>

step 2:

initialize

kotlin

var myRandonView:RandomTextView=findViewById(R.id.randomtv)

java

RandomTextView myRandomView=findViewById(R.id.randomtv);

step 3:

Cuatomization

you can use two types of lists String[] or ArrayList

1- set texts list

myRandomView.setTextList(textList);

Licence

Copyright 2018 Baset Esmaeili

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.

Author

Baset Esmaeili

Email: baset.esmaili0@gmail.com

Telegram: https://telegram.me/ikurdish