zl程序教程

您现在的位置是:首页 >  其它

当前栏目

ttf设置文字字体

设置 文字 字体
2023-09-14 08:58:19 时间
    protected void onCreate(Bundle savedInstanceState) {           super.onCreate(savedInstanceState);           setContentView(R.layout.main);           init();       }       private void init(){           mTextView=(TextView) findViewById(R.id.textView);           Typeface typeface = Typeface.createFromAsset(getAssets(),"fonts/test.ttf");           mTextView.setTypeface(typeface);       }  
RelativeLayout 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"                TextView           android:id="@+id/textView"           android:layout_width="wrap_content"           android:layout_height="wrap_content"           android:text="9527"           android:textSize="22sp"           android:layout_centerInParent="true"        /    /RelativeLayout  
在学术论文中的图件(Scientific figures),优秀的图有四个特点:简单(Simple)、清晰(Clean)、易读(undisputedly easy to read)、美观。