Skip to main content

Posts

Showing posts from 2013

Custom Android SeekBar Developement

Before starting coding for Custom SeekBar,You must have good concept of following topics. 1. Layer List 2. Animation List 3. Selector   Layer List :A LayerDrawable is a drawable object that manages an array of other drawables. Each drawable in the list is drawn in the order of the list—the last drawable in the list is drawn on top. <layer-list xmlns:android= "http://schemas.android.com/apk/res/android" > <item android:id= "@android:id/background" android:drawable= "@drawable/seekbar_total" /> <item android:id= "@android:id/secondaryProgress" > <clip android:drawable= "@drawable/seekbar_buffer" /> </item> <item android:id= "@android:id/progress" > <clip android:drawable= "@drawable/seekbar_played" /> </item> </layer-list> Animation List: A AnimationDrawable is a drawable object that is used to create fram

Android Different Layout For Portrait and Landscape Mode

A problem that we face mostly while developing Android application for Multiple screen i.e designing layout such that it suits for multiple screen.In particular situation we need to design two layout, one for portrait and another for landscape.This tutorial going to focus about this. For designing different layout for portrait and landscape  mode,you need to create folder in resource named layout-land and put layout name same as then name of layout inside layout folder.Now design layout inside layout-land for landscape mode and inside layout folder for portrait mode. Write some code in AndroidManifest.xml <activity android:configchanges="uiMode"  android:label="@string/app_name"  android:name=".SplashScreen"  android:screenorientation="sensor"> Good luck