Android Open Source - filemanager Sliding Menu Item From Project Back to project page filemanager .
License The source code is released under:
MIT License
If you think the Android project filemanager 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 package com.binkery.app.filemanager.widget;
/ / w w w . j a v a 2 s . c o m
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.binkery.app.filemanager.R;
import com.binkery.app.filemanager.utils.Logs;
public class SlidingMenuItem extends LinearLayout {
private static final String TAG = SlidingMenuItem.class.getSimpleName();
private ImageView mIcon = null;
private Drawable mIconDrawable = null;
private TextView mTitle = null;
private String mTitleString = null;
public SlidingMenuItem(Context context, AttributeSet attrs, int defStyle) {
super (context, attrs, defStyle);
LayoutInflater.from(context).inflate(R.layout.widget_sliding_menu_item, this , true);
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SlidingMenuItem);
mIconDrawable = a.getDrawable(R.styleable.SlidingMenuItem_icon);
mTitleString = a.getString(R.styleable.SlidingMenuItem_titleText);
a.recycle();
}
public SlidingMenuItem(Context context, AttributeSet attrs) {
this (context, attrs, 0);
}
public SlidingMenuItem(Context context) {
super (context);
}
@Override
protected void onFinishInflate() {
mIcon = (ImageView) findViewById(R.id.icon);
if (mIconDrawable != null) {
mIcon.setImageDrawable(mIconDrawable);
}
mTitle = (TextView) findViewById(R.id.title);
if (mTitleString != null) {
mTitle.setText(mTitleString);
}
}
public enum Menu{
ENTER,SDCARD,VIDEO,PHOTO,MUSIC,SETTING,DEVCIES,ABOUT
}
}
Java Source Code List com.binkery.app.filemanager.BaseFragment.java com.binkery.app.filemanager.FragmentController.java com.binkery.app.filemanager.MainActivity.java com.binkery.app.filemanager.SlidingMenuController.java com.binkery.app.filemanager.commons.Constants.java com.binkery.app.filemanager.fragments.BaseDialogFragment.java com.binkery.app.filemanager.fragments.CopyTask.java com.binkery.app.filemanager.fragments.DeleteDialogFragment.java com.binkery.app.filemanager.fragments.DetailDialogFragment.java com.binkery.app.filemanager.fragments.FileListFragment.java com.binkery.app.filemanager.fragments.FileUtils.java com.binkery.app.filemanager.fragments.RenameDialogFragment.java com.binkery.app.filemanager.fragments.ThumbnailLoaderHelper.java com.binkery.app.filemanager.fragments.ThumbnailLoader.java com.binkery.app.filemanager.settings.FileSettings.java com.binkery.app.filemanager.utils.FileSortUtils.java com.binkery.app.filemanager.utils.FileUtils.java com.binkery.app.filemanager.utils.Logs.java com.binkery.app.filemanager.utils.OptionMenuUtils.java com.binkery.app.filemanager.utils.StringUtils.java com.binkery.app.filemanager.utils.ToastUtils.java com.binkery.app.filemanager.widget.SlidingMenuItem.java com.binkery.app.filemanager.widget.SlidingMenuView.java com.jeremyfeinstein.slidingmenu.lib.CanvasTransformerBuilder.java com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.java com.jeremyfeinstein.slidingmenu.lib.CustomViewBehind.java com.jeremyfeinstein.slidingmenu.lib.MenuInterface.java com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.java com.jeremyfeinstein.slidingmenu.lib.app.SlidingActivityBase.java com.jeremyfeinstein.slidingmenu.lib.app.SlidingActivityHelper.java com.jeremyfeinstein.slidingmenu.lib.app.SlidingActivity.java com.jeremyfeinstein.slidingmenu.lib.app.SlidingFragmentActivity.java com.jeremyfeinstein.slidingmenu.lib.app.SlidingListActivity.java com.jeremyfeinstein.slidingmenu.lib.app.SlidingPreferenceActivity.java