Kayıtlar

ui design etiketine sahip yayınlar gösteriliyor

Adding ellipsis (three dots) for long text in html div using CSS

width : 250px ;/*should be specified*/ white-space : nowrap ; overflow : hidden ; text-overflow : ellipsis ; All the following are required for the design.The text is now in a single straight line.

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              ...

How To Design For Multiple Screen Sizes

Resim
Creating Three Sets of Graphics Because of the aforementioned screen resolution/size issue, Android recommends creating three sets of graphics for: Hi Density Screens Medium Density Screens Low Density Screens This will keep your design from getting crunked up when it’s displayed on various screen sizes. The grid below shows the various screen sizes and resolutions you use for your Photoshop files: I know it’s a lot. But if you’re creating your design using vector shape layers, the re-sizing process shouldn’t be too painful. The key is to design for the smallest screen first, and then size up for larger screens.

Visual separator in RelativeView

So far , i have tried to add separator inside the TableLayout using the below code: <View android:id ="@+id/view_separator" android:background ="#FFFFFF" android:layout_centerVertical ="true" android:layout_width = "fill_parent" android:layout_height ="2dip" android:layout_alignParentTop ="true"/>   It may helps you, just try it.