0

Customizing Checkboxes Layout In Android

res -> drawable -> custom_checkbox_design.xml custom_checkbox_design.xml [code language=”css”] <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_checked="true" android:drawable="@drawable/checkedbox" /> <item android:state_checked="false" android:drawable="@drawable/uncheckedbox" /> </selector> [/code] main.xml [code language=”css”] <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/layoutcondition" android:gravity="center_horizontal" android:orientation="horizontal" > <CheckBox android:id="@+id/checkBox1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:paddingLeft="5dip"… Continue Reading

0

Android Switching Activity With Animation

When you start an activity or finish the current activity the transition between the activities can be animated using the method overridePendingTransition. You have to give the resource Id of the animation resource to use for the incoming activity and… Continue Reading