-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
2,005 additions
and
1,165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 0 additions & 109 deletions
109
...c/main/java/com/mansourappdevelopment/androidapp/kidsafe/AppCompatPreferenceActivity.java
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
.../src/main/java/com/mansourappdevelopment/androidapp/kidsafe/activities/AboutActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.mansourappdevelopment.androidapp.kidsafe.activities; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.view.View; | ||
import android.widget.FrameLayout; | ||
import android.widget.ImageButton; | ||
import android.widget.TextView; | ||
|
||
import com.mansourappdevelopment.androidapp.kidsafe.R; | ||
|
||
public class AboutActivity extends AppCompatActivity { | ||
private ImageButton btnBack; | ||
private ImageButton btnSettings; | ||
private TextView txtTitle; | ||
private FrameLayout toolbar; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_about); | ||
toolbar = (FrameLayout) findViewById(R.id.toolbar); | ||
btnBack = (ImageButton) findViewById(R.id.btnBack); | ||
btnBack.setImageDrawable(getResources().getDrawable(R.drawable.ic_arrow_back)); | ||
btnBack.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
onBackPressed(); | ||
} | ||
}); | ||
btnSettings = (ImageButton) findViewById(R.id.btnSettings); | ||
btnSettings.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(AboutActivity.this, SettingsActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
txtTitle = (TextView) findViewById(R.id.txtTitle); | ||
txtTitle.setText(getString(R.string.about)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.