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 trialTalwinder Singh
826 PointsTitle not appearing
My app's title "Interactive story" is not appearing at the top and also their appears some message icon in bottom right corner.
1 Answer
Kyle Baker
8,211 PointsThat message icon is a float button so to get rid of that you just get rid of the xml and java for the float button. Look in activity_main.xml at the bottom and get rid of this
<android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" app:srcCompat="@android:drawable/ic_dialog_email"/>
Then in MainActivity.java in the onCreate method, get rid of this
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) .setAction("Action", null).show(); } });
As for your other question, I would like to see your activity_main.xml, AndroidManifest.xml and your styles.xml in order to attempt to answer. :)
kelvin gwaruka
931 Pointskelvin gwaruka
931 PointsThanks Kyle, successfully removed my button which was bothering me a bit.
Kyle Baker
8,211 PointsKyle Baker
8,211 PointsGlad to help Kelvin :)