Posts
Showing posts from December, 2016
how to make torch app in android
- Get link
- X
- Other Apps
activity_main.xml: <?xml version="1.0" encoding="utf-8"?> < RelativeLayout xmlns: android = " http://schemas.android.com/apk/res/android " android: id = " @+id/relativeLayout1 " android: layout_width = " fill_parent " android: layout_height = " fill_parent " > < Button android: id = " @+id/buttonFlashlight " android: layout_width = " wrap_content " android: layout_height = " wrap_content " android: layout_centerVertical = " true " android: layout_centerHorizontal = " true " android: text = " Torch " /> </ RelativeLayout > MainActivity.java: import android . app . Activity ; import android . content . Context ; import android . content . pm . PackageManager ; import android . hardware . Camera ; import android . hardware . Camera . Parameters ; import...
how to add text and image in listview by adapter android
- Get link
- X
- Other Apps
activity_main.xml: <?xml version="1.0" encoding="utf-8"?> < LinearLayout xmlns: android = " http://schemas.android.com/apk/res/android " android: layout_width = " wrap_content " android: layout_height = " wrap_content " android: padding = " 5dp " > < ImageView android: id = " @+id/logo " android: layout_width = " 50px " android: layout_height = " 50px " android: layout_marginLeft = " 5px " android: layout_marginRight = " 20px " android: layout_marginTop = " 5px " android: src = " @drawable/windowsmobile_logo " > </ ImageView > < TextView android: id = " @+id/label " android: layout_width = " wrap_content " android: layout_height = " wrap_content " android: text = ...
how to make android analog clock and digital clock
- Get link
- X
- Other Apps
activity_main.xml: <?xml version="1.0" encoding="utf-8"?> < LinearLayout xmlns: android = " http://schemas.android.com/apk/res/android " android: layout_width = " fill_parent " android: layout_height = " fill_parent " android: orientation = " vertical " > < TextView android: id = " @+id/textView1 " android: layout_width = " wrap_content " android: layout_height = " wrap_content " android: text = " Analog Clock " android: textAppearance = " ?android:attr/textAppearanceLarge " /> < AnalogClock android: id = " @+id/analogClock1 " android: layout_width = " wrap_content " android: layout_height = " wrap_content " /> < TextView android: id = " @+id/textView2 " android: layout_width = "...