Pages

Showing posts with label go. Show all posts
Showing posts with label go. Show all posts

Saturday, May 14, 2016

Android Text Controls

Text controls include:

1. TextView.

2. EditText

3. AutoCompleteEditText

4. MultiCompleteTextView

TextView
The TextView represent an un-editable text. It resembles the Label control in C# or ASP.NET but it has an interesting feature which is the ability to highlight the text if its is an URL, an e-mail or a phone number so that when the user clicks on the textview the default intent whether it is the web browser or the dialer launches
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>
<TextView
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_text="Visit Http://www.android-pro.blogspot.com"
android_autoLink="web"
android_id="@+id/txtURL"
/>

<TextView
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_text="Dial 1 650-253-0000"
android_autoLink="all"
/>
</LinearLayout>


you can see that the TextViews containing URLs or Phone numbers are highlighted, and when the user presses on them the default intent (the browser or the dialer launches)


this is done by using the property android:autoLink which can have the values:
web, email ,phone, map
or
All
this can be achieved from code by using the following code:
TextView txtURL=(TextView)findViewById(R.id.txtURL);
Linkify.addLinks(txtURL, Linkify.ALL);

EditText
The EditText is a subclass of the TextView it is like the TextBox in C#. it enables users to edit text.


We can use the autoText property to make the EditText to correct the common spelling mistakes.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:autoText="true"

/>
</LinearLayout>



We can use the capitalize property to make the text capitalized like this:
<LinearLayout 
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>

<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:capitalize="characters"

/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:capitalize="none"
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:capitalize="words"
/>
</LinearLayout>



we can use the password property to make the control accepts phone numbers input:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>

<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:password="true"

/>

</LinearLayout>



We can enforce the Control to wrap all the text in a single line by setting android:singleLine property to true.

AutoCompleteTextView
The autoCompleteTextView is an EditText with auto complete functionality. The auto complete functionality can be achieved by attaching an Adapter with the auto complete values to the control like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>

<AutoCompleteTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/act"

/>

</LinearLayout>



Then attach the adapter from the code like this:
AutoCompleteTextView act=(AutoCompleteTextView)findViewById(R.id.act);
ArrayAdapter arr=new ArrayAdapter(this,android.R.layout.simple_dropdown_item_1line,new String []{"Hello","Hi","Alloha"});
act.setAdapter(arr);

in a search program for example you can obtain the auto complete words from a web service and populate the adapter with these words.

MultiAutoCompleteTextView

The AutoCompleteTextView can suggest auto complete for the entire text in the control, meaning that if you type more than one word it would try to match the whole sentence not the single words.
The MultiAutoCompleteTextView works the same way as the AutoCompleteTextView except you can add a Tokenizer that parses the text and allows you to suggest where to start suggesting words like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>

<MultiAutoCompleteTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/act"

/>

</LinearLayout>


then from code:
MultiAutoCompleteTextView mact=(MultiAutoCompleteTextView)findViewById(R.id.act);
ArrayAdapter arr=new ArrayAdapter(this,android.R.layout.simple_dropdown_item_1line,new String []{"Hello","Hi","Alloha"});
mact.setAdapter(arr);
mact.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());

The tokenizer tells the control to start suggesting for words separated by a comma.
Read More..

Friday, February 19, 2016

GO Launcher Theme Wallpaper 2 011 for Android Terbaru 2016

Read More..

Monday, February 8, 2016

Download GO Launcher EX Prime 5 09 Build 346 pro Full

Introducing the latest version of GO Launcher EX Prime + key file
Prime Features Unlocked
The official version is published in Google Play

With the HD version of GO Launcher 1.19

One of the interesting features of the Android operating system, it is interesting Personalize. For example, you can use the main menu or Home screen of your Android phone with your taste perfectly matching your makeup. Very high level of applications that allow you to customize your phone can be pointed to the launcher. Launcher full range of tools at your disposal that can help change the graphics and even create dissension in your Android phone. One of the best, and perhaps we can dare say the best launcher for Android smartphones so far produced very popular Launcher GO Launcher EX Prime is now called Go Dev.
GO Launcher EX Prime
By GO Launcher EX Prime features and amenities are provided below:
** Increase Home screen pages
** Option in the menu or applications folder
** Ability to remove the software to prevent the display of icons in the menu
** Exclusive widgets that can use different themes:
** (Task Manager, Contacts, Messages, Calendar, Search, All, Facebook, email, switches, Notes)
** Take advantage of the dock loading dock and also help customize the images in the gallery
** Exclusive lock screen that can use different themes
** Exclusive Software Change font launcher without having to root the phone
** Ability to hide status bar
** Take advantage of the Christmas menu
** Ability to remove applications quickly and easily
** Ability to rotate the screen to the main screen and the menu
** Online using a variety of themes and beautiful
** Ability to remove the icons and rename them
** Set the matrix size of icons in the menu
** 16 different effects to transition between pages
** 15 stunning effects in the menus
** 5 beautiful effect at the time of entry and exit from the application menu.
** Ability to hide the 3rd tab on the top menu
** Ability icons with your favorite pictures
** New user interface on the display theme
** Can Fix widget icon and move the home to prevent unwanted
** Ability to determine the size of icons and widgets on the Home screen and the menu pages
** Display a grid when moving icons
* Ability to change the size of icons in the menu label and the Home Screen Pages
** A quick search in the software by entering the name of the desired software
* Full support for tablet 7 to 10-inch
** Editable applications and folders with icons icon gallery
Add list widgets and apps and themes:
Classic Theme GO Launcher EX 1.7
GO Bookmark Widget 1.3
GO Clock Widget 1.5
GO Contact Widget 1.8
GO Contacts 1.46
GO Contacts EX 2.08
GO Default Search Widget 1.2
GO Launcher EX Notification 2.2
GO Launcher EX UI3.0 theme 2.02
GO Locker 1.65
GO Media Manager 1.1
GO Note Widget 2.0
GO Power Master 3.11
GO Switch Widget 1.61
GO TwiWidget 2.2
Love Theme GO Launcher EX 1.6
Plate Theme 4 GO Launcher EX 2.0
This is a fantastic launcher Android phones we recommend to all holders.
Changes in this version GO Launcher EX Prime 5.09:
What’s New
Please light up all to help us serve you better!
(Improve) New App Drawer, cleaner, more elegant and easier to use.
(New feature) Holding App Icon brings more functions, easy to hide icon and view app info.
(Improve) Improve the usability on folder editing.
(Improve) Bug fixed


Thanks : http://apkhouse.com <<< Visit :)
Read More..