Android

How to make EditText not editable but scrollable

Posted on

EditText not Editable but Scrollable When we need to show long text like Terms and conditions in EditText. We need to allow scrolling and it should not be editable. For this I tried in XML set EditText attributes to show vertical scrollbars android:scrollbars=”vertical” And then to make EditText not editable i tried different ways like android:inputType=”none” not worked, and […]

Android

Html tags in Text not working in TextView

Posted on

Here I try to explain the details why Html tags in Text not working in TextView. At times you may need to display text with Bold and normal style in TextView like this,  …(You may skip to solution ) Welcome, to your favorite music app store.    So, you’ll define a string in string.xml file as follows <string name=”welcome_text”><b>Welcome,</b> […]

Android

Simple Weekview calendar implemented using GridView

Posted on

Simple Weekview calendar implemented using GridView. I tried to search for a simple Weekview calendar, which display 7 week days. But not able to find a simple one. So i implemented simple weekview calendar which just displays 7 week days with left right buttons to load prev/next week days. Screenshot Simple Weekview calendar implemented using GridView. Download […]

Android

Flash or Pulse Animation for a Button Android

Posted on

At times we may require to get user’s attention to click on a Button, to view some important information in app. For this purpose Flash or Pulse animation helps us very well. Below are code snippets to implement these animations. Implementing Flash animation We can use AnimationDrawable class, to add frames of two different colours, which […]

Android

Unable to resolve superclass of Activity

Posted on

Unable to resolve superclass When you added Android Support library to your project in Eclipse ADT, to implement classes like FragmentActivity, ViewPager etc At times you may see this error which results in app crash due to Unable to resolve superclass, Unable to resolve superclass of Lin/AppPath/MainActivity; (9) 05-16 14:10:11.705: W/dalvikvm(6534): Link of class ‘Lin/AppPath/MainActivity;’ […]

Android

Display AlertDialog with Multiple Options

Posted on

AlertDialog with Multiple Options Hi Guys, At times you may require to show multiple options in a dialog on Acitivty. So user can select any one option. here is the simple code to display with AlertDialog with Multiple Options CharSequence options[] = new CharSequence[] {“Call”, “SMS”, “Email”}; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(false); builder.setTitle(“Select your option:”); […]

Android

Logcat data Clearing too Fast- ADT Eclipse

Posted on

While running app on latest android devices, from ADT Eclipse, you may find difficulty in viewing LogCat data. As lots of other background services of different apps are running, logcat clearing out in a glimpse. At this kind of situation, To view LogCat data you have to change a ADT Eclipse setting as shown below.. Goto […]