Techbirds | Knowledge Hub | Page 37

In addition to run loops, threads and operations, Snow Leopard adds Grand Central Dispatch (GCD), a very lightweight way to represent units of work and the style of concurrency they need, and have the system figure out how to schedule them. It shouldn’t surprise you in the least to learn that NSOperation, on Snow Leopard,

Read More →

740 total views, no views today

1. Create a layout that include a listView and any other view widgets you want in your preference page. 2. Now Create a preferences xml file,

Read More →

769 total views, no views today

Requirements To implement a Tabs & ViewPager, using fragments on devices running Android 2.1 or higher, you’ll need to include the Android Compatibility library.  In my example, I’m using Compatibility library v4. Step-by-step Define the Tab ViewPager layout Define the PagerAdapter Define the Tab FragmentActivity The Code Complete Source code The Tab ViewPager layout The Tab ViewPager layout (tabs_viewpager_layout.xml) declares a TabHost and

Read More →

1,540 total views, no views today

Requirements To implement a Tabbed, using fragments on devices running Android 2.1 or higher, you’ll need to include theAndroid Compatibility library.  In my example, I’m using Compatibility library v4 Step-by-Step Define TabHost layout Define Tab fragment layouts Define Tab fragments Define main fragment activity The Code Define the TabHost layout The tabbed UI layout consists of

Read More →

871 total views, no views today

Here I am going to show that how on a click of a button my page changes after a complete rotation. Steps : 1. on click of button add this method : private void animatedStartActivity() {              final Intent intent = new Intent(getApplicationContext(),Activity2.class);              intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);              ActivitySwitcher.animationOut(findViewById(R.id.container),getWindowManager(),new                ActivitySwitcher.AnimationFinishedListener() {                                          @Override                                           public void onAnimationFinished()

Read More →

515 total views, no views today