Android Open Source - Hackful-Europe-Reader About Action






From Project

Back to project page Hackful-Europe-Reader.

License

The source code is released under:

Apache License

If you think the Android project Hackful-Europe-Reader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
Copyright 2012 Damin Serrano Thode (@dsthode)
/*from w  w  w .  jav  a  2s. c  o  m*/
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

package com.nineducks.hereader;

import android.content.Context;
import android.view.View;
import android.support.v4.app.Fragment;

import com.markupartist.android.widget.ActionBar.Action;

public class AboutAction implements Action {
  
  private Context context;
  private HackfulItemsController itemsController;

  public AboutAction(Context context, HackfulItemsController itemsController) {
    this.context = context;
    this.itemsController = itemsController;
  }

  @Override
  public int getDrawable() {
    return 0;
  }

  @Override
  public CharSequence getText() {
    return context.getString(R.string.btAbout);
  }

  @Override
  public void performAction(View view) {
    ((Fragment) itemsController).getActivity().showDialog(R.id.about_dialog);
  }

}




Java Source Code List

com.nineducks.hereader.AboutAction.java
com.nineducks.hereader.HEReaderState.java
com.nineducks.hereader.HackfulItemsController.java
com.nineducks.hereader.HackfulReaderActivity.java
com.nineducks.hereader.ItemsLoadedListener.java
com.nineducks.hereader.LoadAskItemsAction.java
com.nineducks.hereader.LoadFrontpageItemsAction.java
com.nineducks.hereader.LoadNewItemsAction.java
com.nineducks.hereader.NewsItemsLoaderTask.java
com.nineducks.hereader.ui.HEMessagesAdapter.java
com.nineducks.hereader.ui.ItemDetailsFragment.java
com.nineducks.hereader.ui.ListFragmentItem.java
com.nineducks.hereader.ui.NewsItemsFragment.java
com.nineducks.hereader.ui.ViewHolder.java
com.nineducks.util.rss.DateFormatter.java
com.nineducks.util.rss.HEMessage.java
com.nineducks.util.rss.RSSException.java
com.nineducks.util.rss.RSSProcessor.java