pull/32/head
GKF 6 years ago
parent 8ec1a848c8
commit 1b860a4057
  1. 2
      app/src/main/java/io/legado/app/ui/widget/TitleBar.kt

@ -14,6 +14,7 @@ import androidx.appcompat.widget.Toolbar
import androidx.core.graphics.drawable.DrawableCompat
import com.google.android.material.appbar.AppBarLayout
import io.legado.app.R
import io.legado.app.lib.theme.ThemeStore
import io.legado.app.utils.getStatusBarHeight
import org.jetbrains.anko.bottomPadding
import org.jetbrains.anko.topPadding
@ -40,6 +41,7 @@ class TitleBar(context: Context, attrs: AttributeSet?) : AppBarLayout(context, a
init {
inflate(context, R.layout.view_titlebar, this)
setBackgroundColor(ThemeStore.primaryColor(context))
toolbar = findViewById(R.id.toolbar)
val a = context.obtainStyledAttributes(
attrs, R.styleable.TitleBar,

Loading…
Cancel
Save