get Activity Root View Id - Android User Interface

Android examples for User Interface:View Id

Description

get Activity Root View Id

Demo Code


//package com.java2s;
import android.support.annotation.IdRes;

public class Main {
    @IdRes//from  w w w.  jav  a  2 s. c  om
    public static int getActivityRootViewId() {
        return android.R.id.content;
    }
}

Related Tutorials