Browse Source

more appbar fixes

pull/51/head
Thodoris1999 6 years ago
parent
commit
37722c0ab4
  1. 14
      app/src/main/java/gr/thmmy/mthmmy/activities/CreateContentActivity.java
  2. 3
      app/src/main/res/layout/activity_create_content.xml

14
app/src/main/java/gr/thmmy/mthmmy/activities/CreateContentActivity.java

@ -4,14 +4,13 @@ import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.inputmethod.InputConnection;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.Toolbar;
import gr.thmmy.mthmmy.R;
import gr.thmmy.mthmmy.base.BaseApplication;
import gr.thmmy.mthmmy.editorview.EditorView;
import gr.thmmy.mthmmy.editorview.EmojiKeyboard;
import me.zhanghai.android.materialprogressbar.MaterialProgressBar;
@ -32,8 +31,15 @@ public class CreateContentActivity extends AppCompatActivity implements EmojiKey
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_create_content);
TextView toolbarTitle = findViewById(R.id.toolbar_title);
toolbarTitle.setText(R.string.new_topic_toolbar);
//Initialize toolbar
Toolbar toolbar = findViewById(R.id.toolbar);
toolbar.setTitle("Create topic");
setSupportActionBar(toolbar);
if (getSupportActionBar() != null) {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
}
((TextView) findViewById(R.id.toolbar_title)).setText("Create topic");
progressBar = findViewById(R.id.progressBar);

3
app/src/main/res/layout/activity_create_content.xml

@ -51,7 +51,8 @@
android:id="@+id/main_content_editorview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/subject_input" />
android:layout_below="@id/subject_input"
app:hint="topic message"/>
<gr.thmmy.mthmmy.editorview.EmojiKeyboard
android:id="@+id/emoji_keyboard"

Loading…
Cancel
Save