added go back arrow in about activity

This commit is contained in:
massimiliano 2018-09-14 15:42:30 +02:00
parent 99fa3b6e58
commit 13e7a9a572
5 changed files with 20 additions and 3 deletions

View file

@ -53,6 +53,13 @@ public class AboutActivity extends AppCompatActivity {
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
// Create the adapter that will return a fragment for each of the three
// primary sections of the activity.
mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());

View file

@ -98,14 +98,15 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
FrameLayout frameLayoutContainer = (FrameLayout) findViewById(R.id.framelayout_container);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
//ViewGroup viewLoading = (ViewGroup) findViewById(R.id.linearlayout_view_loading_container);
setupWebView(savedInstanceState, frameLayoutContainer);
firstStart = getSharedPreferences("org.disroot.disrootap", MODE_PRIVATE);//fisrt start
// enables the activity icon as a 'home' button. required if "android:targetSdkVersion" > 14
//getActionBar().setHomeButtonEnabled(true);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
final ScrollView dashboard = (ScrollView)findViewById(R.id.dashboard);
//progressbarLoading

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>
</vector>

View file

@ -6,7 +6,7 @@
<change>Floating mail icon makes you send mail to Disroot</change>
<change>Corrected some typos</change>
<change>ProgressBar shows actual progress</change>
<change></change>
<change>Added go bak arrow on the about activity</change>
<change></change>
</release>
<release version="0.0.3" versioncode="3" >