Category Archives: Android

Parallax Header for ListView

I was looking the other day for a cool parallax effect to add to my application, and after researching some ways to do it, I come up with a simple way that can be added to any project with a couple of lines.

The idea is to put the header that you want to add the parallax effect inside a FrameLayout and behind the ListView, then add a transparent header to your ListView that has the same height as you other header. You will need to implement OnScrollListener on your ListView

And that’s pretty much everything you need

Here is a step by step on how to do it

First, your XML layout (main.xml)

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/header"
        android:layout_width="match_parent"
        android:layout_height=“200dp” >
      <!-- YOUR HEADER -->
    </FrameLayout>

    <ListView
        android:id="@+id/items"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:cacheColorHint="@android:color/transparent"
        android:divider=“@null”
        android:dividerHeight=“0dp"
        android:scrollbars="none" />

</FrameLayout>

Second your transparent header XML layout (empty_header.xml)

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:background="@android:color/transparent" />

Then your fragment (ParallaxListFragment.java)

public class ParallaxListFragment extends Fragment implements OnScrollListener {

	private View view;
	private ListView listView;
	private View parallaxHeader;
	private View header;

	public static ParallaxListFragment newInstance() {
		return new ParallaxListFragment();
	}


	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.main, container, false);
		parallaxHeader = view.findViewById(R.id.header);
		listView = (ListView) view.findViewById(R.id.items);
		header = inflater.inflate(R.layout.empty_header, listView, false);
		listView.addHeaderView(header, null, false);
		listView.setOnScrollListener(this);
		return view;
	}

	@Override
	public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
        // TODO These lines control the parallax effect, change the number "2" for different speeds
		LayoutParams params = (LayoutParams) parallaxHeader.getLayoutParams();
		params.setMargins(0, header.getTop() / 2, 0, 0);
		parallaxHeader.setLayoutParams(params);
	}

	@Override
	public void onScrollStateChanged(AbsListView view, int scrollState) {
	}

}

That’s it, easy way for a nice effect

I’ll be start posting more often some cool stuff I coded working for some really cool projects


Live Statistics for XBOX

Hello everyone, it’s been a long time.

Recently I had to remove XBOX Live Statistics from Android Market by request of Microsoft. So, I’ve been working in a new version that meets MS requirements.

This new version is named Live Statistics for XBOX and some of the new features are

Personalized Home Screen
Personalized Widgets Backgrounds
Better UI
Better Performance

Here are some pics

xbox1 xbox2 xbox3 xbox4 xbox5 xbox6


XBOX Live Statistics UPDATE to 4.0

Hi folks.

An update for XBOX Live Statistics is coming soon, with a new and better UI, lot of fixes and new features.

Just for now, I leave you some pictures of it


PS3 Trophies for Android UPDATE to 4.0

PS3 Trophies had a revamped update this week.

All features of the app are easily accessible from the main screen.

Transitions are smooth and graphics looks sharper and brilliant.

Also this version includes support (in development) for vita games
Main Screen shows your  profile and access to most common features
(friends, games, guides, chat, blog, events, profile, ranking and favorites)

To the left of the main screen you can find
Friends, Favorites, Ranking, Search and finally Help/News
To the right of the main screen you can find
Games, Guides, Profile, Events and finally Blogs

Every Icon on the upper left of the screen will display a menu, and some will react to long taps

When looking at games the upper right icon has two functions, tapping will open the sort filter, and long tapping will open the game type filter (Vita / PS3)
If you tap on a game you will get a new screen with all trophies earned
To the left you can see others users with the same game, and to the right you can see users reviews, then guides, then YouTube videos

When looking at friends, tapping a friend will open a new screen with the user profile and all the games he has
To the left there is the App Profile of that user, and to the right you can compare games between the users

Blogs now include Official US Playstation Blog, Official EU Playstation Blog, Official BR Playstation Blog and Official LATAM Playstation Blog.

There is a new Lock Screen option to have your profile and friends online on your phone screen even when the phone is locked.

I will write a Help Page soon, explaining all options of the application

Go download it now
FREE Version
https://play.google.com/store/apps/details?id=ar.com.ps3argentina.trophies
PRO Version
https://play.google.com/store/apps/details?id=ar.com.indiesoftware.ps3trophies

Here are some pictures of the new UI


Introducing GameFront

A new app for gamers landed on the Android Market

GameFront syncs your PS3 and XBOX Games, so you can create a publication to sell them.

Get it here https://market.android.com/details?id=ar.com.indiesoftware.gamevault

You just need to create a new account and link you existing PS3 or XBOX account to see all your games in the  application’s main screen.

From there you can:

  • See the trophies/achievements of every game.
  • Access to Guides and YouTube videos.
  • Read and Review your games.
  • Look for other users that have your same games.
  • SELL GAMES!!
  • You also have access to the entire list of games from PS3 and XBOX where you can see Guides and YouTube videos, along with the access to trophies/achievements of each game
  • Read latest news from PSN Blogs (US, EU, Latam, BR) or Major Nelson Blogs
  • Search users and game publications
  • You can even follow games and users, so you will get notifications on new deals!!!
  • Message other users about their deals or just for fun!

Each publication has its own picture, description and the option to localize the sell on the map, so you can search for deals near you!!

Description of the App

Profile

  • Choose a personalized avatar,  background and foreground color of your messages.
  • You can enter your Name, Location, Date of Birth, Gender, Facebook page, YouTube channel, Twitter and G+ user.
  • Write a small Bio so everybody else will know a little more about you.
  • Access all your publications (including those that you already finalized)
  • See what are you following (Games and Users)
  • See who are following you
  • Read/Reply all messages you got

Games

  • This is the entire list of XBOX and PS3 Games
  • Filter games by Console
  • Search for Games
  • Access to Guides and YouTube videos
  • See the Achievements/Trophies
  • Read reviews from other users
  • Follow a game, so you will get notifications if some publish a new deal for it

Blog

  • Access latest news from PSN Blogs and Major Nelson (XBOX) Blogs
  • PS3 users, you can choose from US, EU, Latam and BR blogs
  • XBOX users, you can choose from 2 Major Nelson Blogs

Profiles

  • Search other users
  • See their profile
  • Follow a user, so every time that user post a new deal, you will get a notification
  • See all the publications from one user
  • See all games from that user
  • Message the user

Publications

  • Search for publications (you can search for user or game title)
  • Access a map with all active publications
  • See details of every publication, including:
    •       Trade or Sale (if sale, then price)
    •       Description left by the user
    •       Picture taken by the user
  • Contact the seller, and sen him a message if you are interested in the game
  • See the location of the deal (if available)

First publication is FREE, if you want to publish more games you can

  • Buy the option to publish 1 game at $0.99
  • Buy the option to publish unlimited games for 30 days at $4.99
  • Buy the option to publish unlimited games, no time limit at $29.99 

Here are some pictures of the app, the more users, the more deals you can find!!


XBOX Live Statistics for ANDROID Updated

HELP coming soon


PS3 Trophies PRO HD for Android Tablets

Hello everyone

I released the HD version of the PS3 Trophies PRO app (best Playstation application), exclusive for Tablets.

This first release includes

  • Profile
  • Games
  • Trophies
  • Friends
  • Friend Games
  • Friend Trophies
  • Wall Chat
  • PSN Blog (EU/US)
  • Game Reviews
  • YouTube Videos
You can get it searching for PS3 HD in the android market (tablet only) or visisting https://market.android.com/details?id=ar.com.indiesoftware.ps3trophies.hd&feature=search_result
Here are some screenshots of the app running on XOOM


Follow

Get every new post delivered to your Inbox.