Add toolbar back for LikeActivity
This commit is contained in:
parent
3dc9734180
commit
519f82f43d
|
@ -108,6 +108,9 @@ public class LikeActivity extends AppCompatActivity {
|
||||||
// setContentView(R.layout.activity_main);
|
// setContentView(R.layout.activity_main);
|
||||||
ActivityLikeBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_like);
|
ActivityLikeBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_like);
|
||||||
|
|
||||||
|
Toolbar toolbar = findViewById(R.id.toolbar);
|
||||||
|
setSupportActionBar(toolbar);
|
||||||
|
|
||||||
binding.setViewModel(postModel);
|
binding.setViewModel(postModel);
|
||||||
binding.setClient(client);
|
binding.setClient(client);
|
||||||
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
|
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
|
||||||
|
|
|
@ -20,9 +20,24 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context="eu.stuifzand.micropub.MainActivity">
|
tools:context="eu.stuifzand.micropub.MainActivity">
|
||||||
|
|
||||||
|
<android.support.design.widget.AppBarLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:theme="@style/AppTheme.AppBarOverlay">
|
||||||
|
|
||||||
|
<android.support.v7.widget.Toolbar
|
||||||
|
android:id="@+id/toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="?attr/actionBarSize"
|
||||||
|
android:background="?attr/colorPrimary"
|
||||||
|
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
||||||
|
|
||||||
|
</android.support.design.widget.AppBarLayout>
|
||||||
|
|
||||||
<android.support.constraint.ConstraintLayout
|
<android.support.constraint.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||||
|
|
||||||
<android.support.design.widget.TextInputLayout
|
<android.support.design.widget.TextInputLayout
|
||||||
android:id="@+id/editLikeOfTextLayout"
|
android:id="@+id/editLikeOfTextLayout"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user