remove fake shadow view and replace with elevation in AccountActivity

main
Conny Duck 6 years ago
parent 3e2dc9f79b
commit ee8dc7831f
  1. 2
      app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt
  2. 12
      app/src/main/res/layout/activity_account.xml

@ -23,7 +23,6 @@ import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.graphics.PorterDuff
import android.os.Build
import android.os.Bundle
import android.preference.PreferenceManager
import android.support.annotation.AttrRes
@ -360,7 +359,6 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasSupportF
accountStatuses.hide()
accountTabLayout.hide()
accountFragmentViewPager.hide()
accountTabBottomShadow.hide()
}
val numberFormat = NumberFormat.getNumberInstance()

@ -10,7 +10,8 @@
<android.support.design.widget.AppBarLayout
android:id="@+id/accountAppBarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:elevation="@dimen/actionbar_elevation">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsingToolbar"
@ -281,15 +282,6 @@
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<View
android:id="@+id/accountTabBottomShadow"
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@drawable/material_drawer_shadow_bottom"
android:visibility="visible"
app:layout_anchor="@id/accountTabLayout"
app:layout_anchorGravity="bottom" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/accountFloatingActionButton"
android:layout_width="wrap_content"

Loading…
Cancel
Save