Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
thamer alnajdat
Courses Plus Student 450 Pointscamera icon not showing in Ribbit APP
Hello
I have a problem that my camera icon not displayed in action bar please note that i am use android studio .
Url for the course : https://teamtreehouse.com/library/build-a-selfdestructing-message-android-app/capturing-photos-and-videos/adding-a-camera-button-in-the-action-bar#
Regards
aakarshrestha
6,509 Pointsaakarshrestha
6,509 PointsYou should add this code in your menu_main.xml file:
<item android:id="@+id/action_camera" android:title="@string/menu_camera_label" android:orderInCategory="100" android:icon="@drawable/ic_action_camera" app:showAsAction="always"/>
In the line android:icon="@drawable/ic_action_camera", make sure you have the camera icon saved in drawable folder.