From Android studio 2.2 Preview, Google-provided Android code samples based on the currently highlighted symbol in your project. To use the feature, highlight a Variables, Types and Methods in your code then Right Click to show a context menu for Find Sample Code.
[http://android-developers.blogspot.in/2016/05/android-studio-22-preview-new-ui.html][1]
When I tried this future I am getting Samples are currently unavailable for Fragment,AppCompatActivity,Toolbar, FloatingActionButton.
Do we need to download samples or enable it from settings, how can I get this future ?
You need to download samples from the SDK Manager.
Check the following link for reference. http://www.tutorialspoint.com/android/android_sdk_manager.htm
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.