Android View Get getRandomView(int size)

Here you can find the source of getRandomView(int size)

Description

get Random View

Declaration

public static int getRandomView(int size) 

Method Source Code

//package com.java2s;

import java.util.Random;

public class Main {
    public static int getRandomView(int size) {
        Random rd = new Random();
        int randomInt = rd.nextInt(size);
        return randomInt;
    }/*  w  w  w. j  av a  2s  .c  o m*/
}

Related

  1. changeViewState(View view, MotionEvent event)
  2. findInParents(View view, Class parentClass)
  3. findUsingTag(View v, int resourceId)
  4. getname(Context mContext, View v)
  5. forceChildrenInvalidateRecursively(View view)