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”
xmlns:tools=“http://schemas.android.com/tools”
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
Tagged: Ruppe symbol showing in Android
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.