Android Widgets
Kamis, 03 Mei 2012
0
komentar
Since app widgets are a great way to embed information on the home screen and Due to these reasons, we are looking into displaying the information in our application using widgets for the android platform.
In order to create an application widget for android, the following are needed:
- AppWidgetProviderInfo.xml
- AppWidgetProvider class implementation
- View layout xml
Standard Widget Anatomy
The typical Android app widgets are made up of three components:- bounding box
- frame
- widget's graphical controls and other elements
Determining the size a widget
Each widget takes up a defined width and height. On phones the typical grid is a 4x4 and on tablets the grid is an 8x7. The following table helps with relative sizes for the # of cells relative to dp.App Widget Templates Pack
It is also a good idea to look at the widget design templates for styles when updating or creating a new widget. The package includes 9 background graphics, XML, and source Adobe Photoshop files.Comparison Factor
An app with a similar implementation of widgets for data monitoring to our current plans is called Onavo. In their application they provide 3 widgets for the home screen as shown below:- App Watch - to track data used by each app in a selected time frame
- Data Plan Used - notifies you of how much of your data plan is left this month using a progress bar
- Live Data Usage - monitors which apps have been using data in the last 30 min.
Our application on the other hand will focus on the biggest factor for users which is the 2nd widget above. The major use for our app widget will be to show the data usage in one pay cycle in an innovative and fun way that looks appealing on the home screen.
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Android Widgets
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidlifehacker4.blogspot.com/2012/05/android-widgets.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh Unknown
Rating Blog 5 dari 5
0 komentar:
Posting Komentar