Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Help screen functional. Custom action bar made.
- Loading branch information
rn.shruthi@gmail.com
authored and
rn.shruthi@gmail.com
committed
Oct 1, 2015
1 parent
d0068a3
commit 8fb9783
Showing
8 changed files
with
87 additions
and
30 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
32 changes: 32 additions & 0 deletions
32
src/main/java/com/contactshare/activities/HelpActivity.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,32 @@ | ||
package com.contactshare.activities; | ||
|
||
import android.app.ActionBar; | ||
import android.graphics.Typeface; | ||
import android.os.Bundle; | ||
import android.support.v7.app.ActionBarActivity; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
import com.contactshare.R; | ||
|
||
public class HelpActivity extends ActionBarActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_help_activity_one); | ||
Typeface mainTypeFace = Typeface.createFromAsset(getAssets(), "fonts/Sabrinahandfont.ttf"); | ||
|
||
ActionBar mActionBar = getActionBar(); | ||
mActionBar.setDisplayShowHomeEnabled(false); | ||
mActionBar.setDisplayShowTitleEnabled(false); | ||
LayoutInflater mInflater = LayoutInflater.from(this); | ||
View mCustomView = mInflater.inflate(R.layout.activity_action_bar, null); | ||
mCustomView.findViewById(R.id.imgHelp).setVisibility(View.GONE); | ||
TextView txtAppName = (TextView) mCustomView.findViewById(R.id.txtAppName); | ||
txtAppName.setTypeface(mainTypeFace); | ||
mActionBar.setCustomView(mCustomView); | ||
mActionBar.setDisplayShowCustomEnabled(true); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
src/main/java/com/contactshare/activities/HelpActivityOne.java
This file was deleted.
Oops, something went wrong.
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/ColorLockGreen" | ||
android:orientation="horizontal" | ||
> | ||
|
||
<ImageView | ||
android:id="@+id/imgIcon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:src="@drawable/launcher" /> | ||
|
||
<TextView | ||
android:id="@+id/txtAppName" | ||
android:layout_marginTop="10dp" | ||
android:layout_toRightOf="@id/imgIcon" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:textSize="25dp" | ||
android:textColor="@android:color/white" | ||
android:text="Contact Share" /> | ||
|
||
<ImageView | ||
android:id="@+id/imgHelp" | ||
android:layout_marginTop="10dp" | ||
android:layout_marginRight="15dp" | ||
android:layout_alignParentRight="true" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:src="@drawable/help" /> | ||
</RelativeLayout> |
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