Pages

Saturday, February 27, 2016

iPhone Like Tab bar in Android

In a previous post we saw how to use the TabHost to create tabs in Android applications. Also we noticed that the Tabs in Android appear at the top of the activity.
but what if we want to give the tabs the look of the iPhone Tab Bar ?

this is possible by wrapping the TabWidget and the FrameLayout in a RelativeLayout container and adding android:layout_alignParentBottom="true" attribute to the TabWidget just like this:
<?xml version="1.0" encoding="utf-8"?>


<TabHost android_layout_width="fill_parent"
android_layout_height="fill_parent"
android_id="@android:id/tabhost"

>
<RelativeLayout
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>
<TabWidget
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_id="@android:id/tabs"
android_layout_alignParentBottom="true"
/>
<FrameLayout
android_layout_width="fill_parent"
android_layout_height="fill_parent"
android_id="@android:id/tabcontent"
>

</FrameLayout>
</RelativeLayout>
</TabHost>




Read More..

AirDroid Aplikasi Sebagai Penghubung HP Android Ke PC

Read More..

Friday, February 26, 2016

Android UI – Inflate from XML Dynamic UI Creation


We have seen that we can declare User Interface in Android through XML or we can even create the UI Programmatically. Now, we will see how we can mix the two and use it for building dynamic User Interfaces. One example of such a case would be when on a particular action of the user on one of the UI elements, you need more UI elements to appear on the same screen. How do we achieve this?
You can do it in two ways:
1.       The dynamic part of the UI can be created programmatically. However we saw in my earlier tutorial that it is not a very good way to mix UI and code.  So, we can
2.       Define the dynamic UI too as an XML and use XML inflation to include it into the existing UI.
We will see how to do the 2ndway, which probably is a good practice too.
As always, again a very simple example. Assume I have a very simple linear layout. In that I want to include a button. I can do it as part of the mail XML itself. However, assume that this button is supposed to be reused in many activities and hence I have defined it as a separate XML. How do I include it into the main XML?
So, here is the main.xml
<?xml version="1.0"encoding="utf-8"?>
<LinearLayout >="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/layout1"
    >
</LinearLayout>
Here is the buttons.xml that is also created in the res/layout folder:
<?xml version="1.0"encoding="utf-8"?>

<Button >="http://schemas.android.com/apk/res/android"
        android:id="@+id/button_small_left"
 style="?android:attr/buttonStyleSmall"
        android:text="Press to close"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>
And here is the Activity’s onCreate(…) method of the InflateView class:
    public voidonCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        final LayoutInflater  inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        Button b = (Button)inflater.inflate(R.layout.buttons,
                null);
       
        lLayout = (LinearLayout)findViewById(R.id.layout1);
        lLayout.addView(b);
First 3 lines must be familiar. In the 4thline, I am getting a handle to the LayoutInflater through the getSystemService(…) method.  This inflater has a method inflate to which I pass the buttons.xml by passing the parameter R.layout.buttons. Then, I try to append this button to the Linear Layout that already exists and is set as the view in line 2 setContentView(R.layout.main). How to append? I get a handle to the LinearLayoutlLayout and add the new button to it in the last line!
That simple to inflate an XML and append it to an existing view!
However, I have gone ahead and added another bit to this program as shown below:
        b.setOnClickListener(new OnClickListener() {
           
            public void onClick(View v) {
                  //restrict to adding only 1 textview child element
                  if (lLayout.getChildAt(2) == null)
                  {
                  TextView tv = (TextView)inflater.inflate(R.layout.text, null);
                  lLayout.addView(tv);
                  }
            }
        });
On the click of this dynamically added button, I am showing how we can add more to the UI dynamically through inflation. Assume, on the click of the button, you want to show some new text. This TextView is defined in another XML called text.xml which is also in the res/layout folder.
So, I am inflating from this XML and appending it to the LinearLayout view. So, a lot can be achieved for dynamic UI through inflation.

You can download the complete sample code here.
Read More..

Piano Melody Pro Full

• Learn to play your favorite songs on the piano by playing back the melody
• 300 songs to learn from different eras and genres.
• Highly configurable piano (multitouch, glissando, highlighting, note labels)
• Resizable piano suitable for all devices and tablets.
• No advertising

*****Features*****
Set the size of the keys on the piano. The larger the keys, the more accurate to get the right notes, the smaller the keys you can see all 3 octaves on screen.
Full support for all phones and all tablets.
Focus on parts of the song to play back and learn the licks.
Multitouch and Glissando.
Pressure Sensitive. Control the volume depending on how hard you strike the notes.
Authentic digitised grand piano sounds.
Highlight notes on/off to play by ear.
Show/Hide note names.
Slow down / speed up the song.
Turn up / down volume of song play, which is ideal for play along mode.
Immersions Ultimate Density Control Haptic Feedback.
No advertising.
****Become a Better Musician*****
Develop your ability to play by ear.
Start with a few notes and build up until youve mastered the song. 
Suitable for all ages (kids to adults) and for all abilities (beginner to advanced).
*****Song List*****
The song list is varied containing all genres such as Rock, Classical, The Latest Pop, Film Theme Tunes, TV Theme Tunes, 60s, 70s, 80s, 90s, Naughties, Modern, Alternative, Indie, Latin and more. Includes:
A-Team, Abba, ACDC, Adele, Aerosmith, AHa, Alice Cooper, Andrew Lloyd Webber, Axel F, Beethoven, Ben E King, Beyonce, Bizet, Black Sabbath, Blur, Blink 182, Bob Dylan, Bob Marley, Boomtown Rats, Bruno Mars, Carter Burwell, Christiani Perri, Claire de Lune, Coldplay, Cream, David Guetta, Deep Purple, Def Leppard, Deee-Lite, Depeche Mode, Dire Straits, Dirty Dancing, Doctor Who, Doctor Zhivago, Donna Summers, Ed Sheeran, Elastica, Elton John, Elvis, EMF, Eminem, Eric Clapton, Erik Satie, Evanescence, Final Fantasy, Fleetwood Mac, Free, Gangnam Style, Gary Jules, Gary Newman, Guantanamera, Green Day, Grieg, Guns N Roses, Haley Westenra, Hallelujah, Happy Birthday, Happy Mondays, Harry Potter, Heart and Soul, Herbie Hancock, Inspiral Carpets, Iron Maiden, James Bond, James, Jason Mraz, Jaws, Jean Michelle Jarre, Jethro Tull, Jimi Hendrix, Jingle Bells, Joe Satriana, John Denver, Justin Bieber, Kasabian, L7, Lady Gaga, Led Zeppelin, Lenny Kravitz, Legend of Zelda, Les Miserables, Lynyrd Skynyrd, Mancini, MASH, Match of the Day, Metallica, Michael Bublé, Michael Jackson, Misirlou, Mission Impossible, Mozart, Muse, My Chemica Romance, Nirvana, Nyan Cat, Oasis, Ocean Colour Scene, One Direction, Owl City, Ozzy Osbourne, Patzy Cline, Peter Gunn Tune, Petula Clark, Pink Floyd, Pirates of the Caribbean, Pretty Woman, Primal Scream
...and lots more
*****Details*****
Songs capture the main melody / chorus / intro / verse and contain upto 400 notes.
Uses standard note tabs where lower case are the white notes and upper case the black notes. For example, "C4" is either C#4 or Db4 and "c4" is middle C.

Whats New
Better scrolling
More Songs:
David Guetta - Play Hard
Einaudi - I Giorni
Hans Zimmer - Gladiator Theme
Jessie J - Price Tag
Mascagni - Intermazzo (Raging Bull)
Nyman - The Heart Asks Pleasure First
Simon and Garfunkle - Bridge over Troubled Water
Silvestri - Forrest Gump Theme
The Smiths - What Difference Does It Make
Thomas Newman - American Beauty Theme
Tiersen - Amelie Theme

Read Here: How to Install APK

Requirements: Android 2.2+
File Size: 3 MB
Download Link: Mediafire
Read More..

Find debug keystore and SHA1 in Android Studio


This video show how to find debug.keystore and SHA1 in Android Studio:


Read More..

Queens Arrow Archery Mod Charge Android Game Moded


Salam blogger :) 
haloo teman2 pencinta game modss.. bentar lagi sahur nih, pada puasa ga hari ini :D. sambil nunggu sahur mending share game2 mod deh yuk. oke kali ini ane mau share game santai, hehe. untuk nyantai aja. game nya tentang manah memanah. char di game ini imut" haha. oke langsung aja cek it deh.. :D 

Details Game: 
Name      : Queens Arrow ( Archery )
Genre      : sport ,casual 
Platform  : Android 
Requires  : Android 4.0  and up

Modification on Game: 
- Mod Charge (mod to 99,999,999)

Review Modif:

Screenshoot:


Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk & Play
5. Enjoyyy 

|DOWNLOAD|
Queens Arrow ( Archery ) - Mod Charge[Android Game : Moded]

|Download Original game|
On Playstore

#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..

World Warships Combat Mod Money Android Game Moded


Salam Blogger :)
Duh dri kmren mau bgt update blog, tpi kecapean mulu + byk gme2 request yg pending -_-. Oke utk kali ini game yg satu ini dulu. kmren kan saya udh share versi pesawat tempurnya nah sekarang versi kapal lautnya. Multiplayernya masih coming soon sih gan, tp nnti akan di update klo udh bsa multiplayer. game ini tentang peperangan menggunakan kapal laut, di setiap kapal mempunya amunisi dan senjata yg berbeda2. oke langsung saja cek it.

Details Game: 
Name      : World Warships Combat 
Genre      : Action
Platform  : Android 
Requires  : Android 4.0  and up

Modification on Game: 
- MOD Money


Review Modif:

Screenshoot:



Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk & Play
5. Enjoyyy 



|DOWNLOAD|
World Warships Combat - Mod Money[Android Game : Moded]


|Download Original game|
On Playstore



#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :) 
Read More..