taverna-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sagar15795 <...@git.apache.org>
Subject [GitHub] incubator-taverna-mobile pull request #78: Feat: User details in nav header ...
Date Sun, 03 Jun 2018 17:40:44 GMT
Github user sagar15795 commented on a diff in the pull request:

    https://github.com/apache/incubator-taverna-mobile/pull/78#discussion_r192596861
  
    --- Diff: app/src/main/java/org/apache/taverna/mobile/ui/favouriteworkflow/FavouriteWorkflowsActivity.java
---
    @@ -0,0 +1,60 @@
    +package org.apache.taverna.mobile.ui.favouriteworkflow;
    +
    +import android.support.annotation.Nullable;
    +import android.support.v7.app.ActionBar;
    +import android.support.v7.app.AppCompatActivity;
    +import android.os.Bundle;
    +import android.support.v7.widget.Toolbar;
    +import android.view.Menu;
    +import android.view.MenuItem;
    +
    +import org.apache.taverna.mobile.R;
    +import org.apache.taverna.mobile.utils.ActivityUtils;
    +
    +import butterknife.BindView;
    +import butterknife.ButterKnife;
    +
    +public class FavouriteWorkflowsActivity extends AppCompatActivity {
    +
    +    @BindView(R.id.toolbar)
    +    Toolbar mToolbar;
    +
    +    @Override
    +    protected void onCreate(@Nullable Bundle savedInstanceState) {
    +        super.onCreate(savedInstanceState);
    +        setContentView(R.layout.activity_favourite_workflows);
    +
    +        ButterKnife.bind(this);
    +
    +        setSupportActionBar(mToolbar);
    +        ActionBar actionbar = getSupportActionBar();
    +
    +        if (actionbar != null) {
    +            actionbar.setHomeButtonEnabled(true);
    +            actionbar.setDisplayHomeAsUpEnabled(true);
    +            actionbar.setTitle("Favourite Workflows");
    --- End diff --
    
    move `"Favourite Workflows"`to `string.xml`


---

Mime
View raw message