Kayıtlar

font etiketine sahip yayınlar gösteriliyor

Using Themes on Android Mobile Application

you can apply styles as themes on an activity level or application level. if you apply a theme on an activity level then all widgets within that activity will inherit from that theme. to do so, open the AndroidManifest.xml and go the <activity> tag and add the android:theme attribute:   <activity android:name=".StylesDemo" android:label="@string/app_name" android:theme="@style/BlueLabel">   to apply a theme on the application level so that the style will be applied to all activities within your application, open the AndroidManifest.xml and go the <application> tag and add the android:theme attribute:   <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/BlueLabel"> to set the theme of an activity programmatically call this line in the onCreate method   this.setTheme(R.style.BlueLabel);

Using Custom Fonts in Android Mobile Application

Place the TTF file in the ./assets directory (create it if it doesn’t exist yet). We’re going to use a basic layout file with a TextView, marked with an id of “custom_font” so we can access it in our code.   <? xml   version = "1.0"   encoding = "utf-8" ?>    < LinearLayout   xmlns:android = "http://schemas.android.com/apk/res/android"                   android:orientation = "vertical"                   android:layout_width = "fill_parent"                   android:layout_height = "fill_parent"             >            < TextView              ...