Ruppe symbol showing in Android

package com.raja.customtoast;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;

public class Ruppe extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Typeface typeface = Typeface.createFromAsset(getAssets(), “Rupee.ttf”);
TextView textview = (TextView) findViewById(R.id.textView1);
textview.setTypeface(typeface);
textview.setText(“`”);
}
}

2) activity_main.xml:

<LinearLayout xmlns:android=http://schemas.android.com/apk/res/android&#8221;
    android:layout_width=“match_parent”
    android:layout_height=“match_parent”
    android:background=“#5F04B4”
    android:orientation=“vertical” >
    <TextView
        android:id=“@+id/textView1”
        android:layout_width=“match_parent”
        android:layout_height=“wrap_content”
        android:layout_marginTop=“10dp”
        android:gravity=“center”
        android:text=“Rupee”
        android:textColor=“#FFFFFF”
        android:textSize=“40dp”
        android:textStyle=“bold” />
</LinearLayout>
Paste in asserts
Advertisements

Tagged:

One thought on “Ruppe symbol showing in Android

  1. Link exchange is nothing else except it is just placing the other person’s
    weblog link on your page at appropriate place and other
    person will also do same in favor of you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: