CopyPastor

Detecting plagiarism made easy.

Score: 0.8178206071257591; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-05-12
by Krishna

Original Post

Original - Posted on 2013-04-11
by Adam



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Fragments don't inherit from View and thus don't have a set background method. but you can achieve like below example
fragment.getView().setBackgroundColor(Color.WHITE);
Fragments don't inherit from View and thus don't have a set background method.
Any easy fix is to just [grab the root view][1] of fragment and set its background
fragment.getView().setBackgroundColor(Color.WHITE);

[1]: http://developer.android.com/reference/android/app/Fragment.html#getView%28%29

        
Present in both answers; Present only in the new answer; Present only in the old answer;