Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import android.content.Context
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import androidx.appcompat.widget.AppCompatTextView
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.google.android.material.R
import com.google.android.material.appbar.AppBarLayout
Expand Down Expand Up @@ -42,6 +43,9 @@ internal sealed class StackHeaderAppBarLayout(
layoutParams = LayoutParams(MATCH_PARENT, WRAP_CONTENT)
}

// We need to manually manage the title to handle leading subview's positioning.
internal var managedTitleView: AppCompatTextView? = null

init {
addView(toolbar)
}
Expand Down
Loading
Loading