Skip to content

Commit

Permalink
Removed placeholder floating action button
Browse files Browse the repository at this point in the history
  • Loading branch information
EJ authored and EJ committed Jul 21, 2018
1 parent 11b2b04 commit ef35765
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.arch.lifecycle.ViewModelProviders
import android.graphics.Color
import android.os.Bundle
import android.support.design.widget.NavigationView
import android.support.design.widget.Snackbar
import android.support.v4.view.GravityCompat
import android.support.v7.app.ActionBarDrawerToggle
import android.support.v7.app.AppCompatActivity
Expand Down Expand Up @@ -36,10 +35,10 @@ class HomeActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
setContentView(R.layout.activity_home)
setSupportActionBar(toolbar)

fab.setOnClickListener { view ->
Snackbar.make(view, "Not implemented.", Snackbar.LENGTH_LONG)
.setAction("Action", null).show()
}
// fab.setOnClickListener { view ->
// Snackbar.make(view, "Not implemented.", Snackbar.LENGTH_LONG)
// .setAction("Action", null).show()
// }

val toggle = ActionBarDrawerToggle(
this, drawer_layout, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close)
Expand Down
8 changes: 0 additions & 8 deletions app/src/main/res/layout/app_bar_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,4 @@

<include layout="@layout/content_home" />

<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" />

</android.support.design.widget.CoordinatorLayout>

0 comments on commit ef35765

Please sign in to comment.