Pages

Showing posts with label custom. Show all posts
Showing posts with label custom. Show all posts

Friday, September 9, 2016

Ultimate custom clock UCCW 1 2 9

Ultimate custom clock (UCCW) 1.2.9 apk
Tags: ultimate custom clock widget, ultimate custom clock skins, ultimate custom clock widget skins, ultimate custom clock widget xda, ultimate custom clock widget tutorial, ultimate custom clock tutorial, ultimate custom clock themes, ultimate custom clock widget weather icons, ultimate custom clock apk, ultimate custom clock weather icons


Your clock, your layout, your fonts, your skins. The ultimate tool for clocks.
Make your custom clock and more widget - the easy way.
For skins visit website link or search google images for UCCW skins.download now!

UCCW features a WYSIWYG (what you see is what you get) editor. The features are:
0) No hassle with xml. Simple editor.
1) Set fonts from sd-card. Fonts should be in sdcard/fonts folder.
2) Set custom backgrounds made in photoshop, gimp or paint from gallery or file browsers.
3) Set custom clock hands made in photoshop, gimp or paint.
4) Set how you want the items (day of the month, month, year, day of the week, hour, minute, etc) to appear in the clock.
5) use shapes.
5a) Interesting options like series clock, battery bar and battery circle.
6) weather info from google weather api.
7) Different weather images during night.
8) complex members like week bar and battery bar with two modes - solid and barcode..
8a) Notification of missed calls, text messages, and gmail.
9) Import/ Export your designs for easy sharing.
10) Widgets adjust irrespective of screen size. Simply resize widgets to your preferred size.
11) Set hotspots to launch app in the most flexible way.
12) New text format for Year, Month, Day of the month, day of the week, hour, minute and ampm items. Now user can choose their replacement text for the values of these members. Any language, any format can be set by just using a text file and appropriate fonts. The text file will contain replacement texts.

Permissions explanation:
write external storage - to export skins
accsess network state - for weather data
read contacts - for missed calls
read sms - for text messages
LOCATION - for weather
Read More..

Thursday, April 3, 2014

Creating a custom title bar In Android

This is a sample application which shows how to create a custom Title Bar in android. Last topic published on this forum is Create a Toggle Button.
Underlying Algorithm:
Basic description of algorithm in step by step form:
1.) Create a Project CustomTitleBar.
2.) Define a custom layout mytitle.xml in res/layout :
<?xml version="1.0" encoding="utf-8"?>
<TextView
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+id/myTitle"

 android:text="custom title bar"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:textColor="@color/titletextcolor"
 android:gravity ="center"/>
3.) Define colors.xml in res/values :
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="customTheme" parent="android:Theme">
    <item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item>
    </style>
</resources>
4.) Define themes.xml in res/values:
<?xml version="1.0" encoding="utf-8"?>
<resources>
   <style name="WindowTitleBackground">  
        <item name="android:background">@color/titlebackgroundcolor</item>    
    </style>
</resources>
5.) Define styles.xml in res/values:
<?xml version="1.0" encoding="utf-8"?>
<resources> 
    <color name="titlebackgroundcolor">#3232CD</color>
    <color name="titletextcolor">#FFFF00</color>
</resource>
6.) Put the following code in AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.app.CustomTitleBar"
     android:versionCode="1"
     android:versionName="1.0">
    <uses-sdk android:minSdkVersion="7" />
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".CustomTitleBar"android:theme="@style/customTheme"
                 android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>
7.) Run the application.
Steps to Create:
1.) Open Eclipse. Use the New Project Wizard and select Android Project Give the respective project name i.e. CustomTitleBar. Enter following information:
Project name: CustomTitleBar
Build Target: Android 2.1
Application name: CustomTitleBar
Package name: com.app.CustomTitleBar
Create Activity: CustomTitleBar
On Clicking Finish CustomTitleBar code structure is generated with the necessary Android Packages being imported along with CustomTitleBar.java. CustomTitleBar class will look like following:
package com.app.CustomTitleBar;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
public class CustomTitleBar extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
            requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
            setContentView(R.layout.main);
            getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);
    }
}
Output –The final output:
Read More..

Sunday, March 30, 2014

Custom Expandable List In Android

This example shows how to create custom expandable list in android.
Algorithm:
1.)  Create a new project by File-> New -> Android Project name it CustomExpandableList.
2.)  Run for output.

Steps:
1.) Create a project named CustomExpandableList and set the information as stated in the image.
Build Target: Android 4.0
Application Name: CustomExpandableList
Package Name: com. example. CustomExpandableList
Activity Name: CustomExpandableList
Min SDK Version: 14
2.) Open CustomExpandableList.java file and write following code there:
package com.example.CustomExpandableList;
import android.app.ExpandableListActivity;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Gravity;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseExpandableListAdapter;
import android.widget.ExpandableListAdapter;
import android.widget.ExpandableListView;
import android.widget.ExpandableListView.ExpandableListContextMenuInfo;
import android.widget.TextView;
import android.widget.Toast;
public class CustomExpandableList extends ExpandableListActivity {
    ExpandableListAdapter mAdapter;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Set up our adapter
        mAdapter = new MyExpandableListAdapter();
        setListAdapter(mAdapter);
        registerForContextMenu(getExpandableListView());
    }
    @Override
    public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
        menu.setHeaderTitle("Sample menu");
        menu.add(0, 0, 0, "Sample action");
    }
 
    @Override
    public boolean onContextItemSelected(MenuItem item) {
        ExpandableListContextMenuInfo info = (ExpandableListContextMenuInfo)item.getMenuInfo();
        String title = ((TextView) info.targetView).getText().toString();
     
        int type = ExpandableListView.getPackedPositionType(info.packedPosition);
        if (type == ExpandableListView.PACKED_POSITION_TYPE_CHILD) {
            int groupPos =ExpandableListView.getPackedPositionGroup(info.packedPosition);
            int childPos =ExpandableListView.getPackedPositionChild(info.packedPosition);
            Toast.makeText(this, title + ": Child " + childPos + " clicked in group " + groupPos,
                    Toast.LENGTH_SHORT).show();
            return true;
        } else if (type == ExpandableListView.PACKED_POSITION_TYPE_GROUP) {
            int groupPos =ExpandableListView.getPackedPositionGroup(info.packedPosition);
            Toast.makeText(this, title + ": Group " + groupPos + " clicked", Toast.LENGTH_SHORT).show();
            return true;
        }
     
        return false;
    }
    public class MyExpandableListAdapter extends BaseExpandableListAdapter {
        private String[] groups = { "Android Versions", "Android Phones" };
        private String[][] children = {
                { "IceCream Sandwitch", "Gingerboard", "Android 2.0", "Android 1.6" },
                { "Razr", "Sony Ericsson", "Galaxy Tab", "Galaxy" }
        };
     
        public Object getChild(int groupPosition, int childPosition) {
            return children[groupPosition][childPosition];
        }
        public long getChildId(int groupPosition, int childPosition) {
            return childPosition;
        }
        public int getChildrenCount(int groupPosition) {
            return children[groupPosition].length;
        }
        public TextView getGenericView() {
            AbsListView.LayoutParams lp = new AbsListView.LayoutParams(
                    ViewGroup.LayoutParams.MATCH_PARENT, 64);
            TextView textView = new TextView(CustomExpandableList.this);
            textView.setLayoutParams(lp);
            textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
            textView.setPadding(36, 0, 0, 0);
            return textView;
        }
     
        public View getChildView(int groupPosition, int childPosition, booleanisLastChild,
                View convertView, ViewGroup parent) {
            TextView textView = getGenericView();
            textView.setText(getChild(groupPosition, childPosition).toString());
            return textView;
        }
        public Object getGroup(int groupPosition) {
            return groups[groupPosition];
        }
        public int getGroupCount() {
            return groups.length;
        }
        public long getGroupId(int groupPosition) {
            return groupPosition;
        }
        public View getGroupView(int groupPosition, boolean isExpanded, ViewconvertView,
                ViewGroup parent) {
            TextView textView = getGenericView();
            textView.setText(getGroup(groupPosition).toString());
            return textView;
        }
        public boolean isChildSelectable(int groupPosition, int childPosition) {
            return true;
        }
        public boolean hasStableIds() {
            return true;
        }
    }
}
3.) Compile and build the project.
Output





Read More..