登录
首页 » Java » FlowLayout

FlowLayout

于 2020-06-21 发布 文件大小:221KB
0 158
下载积分: 1 下载次数: 0

代码说明:

  流失标签,用于搜索推荐,可定义点击状态,用于搜索推荐,可定义点击状态(Lost tags, used for search recommendation, can define click status, used for search recommendation, can define click status)

文件列表:

FlowLayout-master, 0 , 2018-08-15
FlowLayout-master\.gitignore, 118 , 2018-08-15
FlowLayout-master\.idea, 0 , 2018-08-15
FlowLayout-master\.idea\compiler.xml, 686 , 2018-08-15
FlowLayout-master\.idea\copyright, 0 , 2018-08-15
FlowLayout-master\.idea\copyright\profiles_settings.xml, 74 , 2018-08-15
FlowLayout-master\.idea\gradle.xml, 626 , 2018-08-15
FlowLayout-master\.idea\misc.xml, 2644 , 2018-08-15
FlowLayout-master\.idea\modules.xml, 353 , 2018-08-15
FlowLayout-master\.idea\runConfigurations.xml, 564 , 2018-08-15
FlowLayout-master\README.md, 271 , 2018-08-15
FlowLayout-master\app, 0 , 2018-08-15
FlowLayout-master\app\.gitignore, 7 , 2018-08-15
FlowLayout-master\app\build.gradle, 931 , 2018-08-15
FlowLayout-master\app\proguard-rules.pro, 916 , 2018-08-15
FlowLayout-master\app\src, 0 , 2018-08-15
FlowLayout-master\app\src\androidTest, 0 , 2018-08-15
FlowLayout-master\app\src\androidTest\java, 0 , 2018-08-15
FlowLayout-master\app\src\androidTest\java\test, 0 , 2018-08-15
FlowLayout-master\app\src\androidTest\java\test\hxy, 0 , 2018-08-15
FlowLayout-master\app\src\androidTest\java\test\hxy\com, 0 , 2018-08-15
FlowLayout-master\app\src\androidTest\java\test\hxy\com\testflowlayout, 0 , 2018-08-15
FlowLayout-master\app\src\androidTest\java\test\hxy\com\testflowlayout\ExampleInstrumentedTest.java, 758 , 2018-08-15
FlowLayout-master\app\src\main, 0 , 2018-08-15
FlowLayout-master\app\src\main\AndroidManifest.xml, 721 , 2018-08-15
FlowLayout-master\app\src\main\java, 0 , 2018-08-15
FlowLayout-master\app\src\main\java\test, 0 , 2018-08-15
FlowLayout-master\app\src\main\java\test\hxy, 0 , 2018-08-15
FlowLayout-master\app\src\main\java\test\hxy\com, 0 , 2018-08-15
FlowLayout-master\app\src\main\java\test\hxy\com\testflowlayout, 0 , 2018-08-15
FlowLayout-master\app\src\main\java\test\hxy\com\testflowlayout\FlowLayout.java, 11420 , 2018-08-15
FlowLayout-master\app\src\main\java\test\hxy\com\testflowlayout\MainActivity.java, 1136 , 2018-08-15
FlowLayout-master\app\src\main\res, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\layout, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\layout\activity_main.xml, 396 , 2018-08-15
FlowLayout-master\app\src\main\res\layout\item.xml, 770 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-hdpi, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-hdpi\ic_launcher.png, 3418 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-hdpi\ic_launcher_round.png, 4208 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-mdpi, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-mdpi\ic_launcher.png, 2206 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-mdpi\ic_launcher_round.png, 2555 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xhdpi, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xhdpi\2.jpg, 114104 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xhdpi\ic_launcher.png, 4842 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xhdpi\ic_launcher_round.png, 6114 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xxhdpi, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xxhdpi\ic_launcher.png, 7718 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xxhdpi\ic_launcher_round.png, 10056 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xxxhdpi, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png, 10486 , 2018-08-15
FlowLayout-master\app\src\main\res\mipmap-xxxhdpi\ic_launcher_round.png, 14696 , 2018-08-15
FlowLayout-master\app\src\main\res\values, 0 , 2018-08-15
FlowLayout-master\app\src\main\res\values\attrs.xml, 133 , 2018-08-15
FlowLayout-master\app\src\main\res\values\colors.xml, 208 , 2018-08-15
FlowLayout-master\app\src\main\res\values\strings.xml, 77 , 2018-08-15
FlowLayout-master\app\src\main\res\values\styles.xml, 383 , 2018-08-15
FlowLayout-master\app\src\test, 0 , 2018-08-15
FlowLayout-master\app\src\test\java, 0 , 2018-08-15
FlowLayout-master\app\src\test\java\test, 0 , 2018-08-15
FlowLayout-master\app\src\test\java\test\hxy, 0 , 2018-08-15
FlowLayout-master\app\src\test\java\test\hxy\com, 0 , 2018-08-15
FlowLayout-master\app\src\test\java\test\hxy\com\testflowlayout, 0 , 2018-08-15
FlowLayout-master\app\src\test\java\test\hxy\com\testflowlayout\ExampleUnitTest.java, 405 , 2018-08-15
FlowLayout-master\build.gradle, 498 , 2018-08-15
FlowLayout-master\gradle.properties, 730 , 2018-08-15
FlowLayout-master\gradle, 0 , 2018-08-15
FlowLayout-master\gradle\wrapper, 0 , 2018-08-15
FlowLayout-master\gradle\wrapper\gradle-wrapper.jar, 53636 , 2018-08-15
FlowLayout-master\gradle\wrapper\gradle-wrapper.properties, 230 , 2018-08-15
FlowLayout-master\gradlew, 4971 , 2018-08-15
FlowLayout-master\gradlew.bat, 2314 , 2018-08-15
FlowLayout-master\settings.gradle, 15 , 2018-08-15

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 你好世界安卓应用为新用户
    资源描述 ;有你描述的代码,请使用“插入代码”按钮并选择插入代码的编程语言。这将使你的源代码美丽和吸引力。P
    2022-01-28 08:23:00下载
    积分:1
  • android 仿qq侧滑菜单 实例源码下载
    仿照qq 5.0 侧滑效果,很棒
    2015-01-28下载
    积分:1
  • android Intent拨打电话、打网页、选择图片例子
    android Intent拨打电话、打开网页、选择图片例子
    2015-06-18下载
    积分:1
  • java操作文件工具类
    java操作文件工具类
    2022-03-14 06:17:58下载
    积分:1
  • Slidingmenu
    Slidingmenu
    2015-01-17下载
    积分:1
  • javacode project
    PDAF概率数据关联滤波程序(Matlab-Matlab)- ;
    2023-08-26 05:35:03下载
    积分:1
  • RatingBarSample
    Android RatingBar投票条实例,玩Android手机的朋友可能就见到过,用手机访问门户网站经常会见到投票功能,投票之后用彩条来显示投票的结果,这个实例就是实现投票彩条,有兴趣的不妨下载源码一试。(The Android RatingBar Voting instance friends play Android phone may have seen, often using mobile phones to access the portal will see the voting function, after the voting, with the color bar to display the results of the vote, this instance is to achieve voting color bar, interested may wish to download the source code a try.)
    2013-04-09 19:08:54下载
    积分:1
  • android 仿微信浏览相册图片例子源码下载
    [实例简介] 仿微信浏览相册图片, 相册浏览 [实例截图] [核心代码]import java.io.File;import java.io.FilenameFilter;import java.util.ArrayList;import java.util.Arrays;import java.util.HashSet;import java.util.List;import android.app.Activity;import android.app.ProgressDialog;import android.content.ContentResolver;import android.database.Cursor;import android.net.Uri;import android.os.Bundle;import android.os.Environment;import android.os.Handler;import android.provider.MediaStore;import android.util.DisplayMetrics;import android.util.Log;import android.view.LayoutInflater;import android.view.View;import android.view.View.OnClickListener;import android.view.ViewGroup.LayoutParams;import android.view.WindowManager;import android.widget.GridView;import android.widget.PopupWindow.OnDismissListener;import android.widget.RelativeLayout;import android.widget.TextView;import android.widget.Toast;import com.zhy.bean.ImageFloder;import com.zhy.imageloader.ListImageDirPopupWindow.OnImageDirSelected;public class MainActivity extends Activity implements OnImageDirSelected{ private ProgressDialog mProgressDialog; /** * 存储文件夹中的图片数量 */ private int mPicsSize; /** * 图片数量最多的文件夹 */ private File mImgDir; /** * 所有的图片 */ private List mImgs; private GridView mGirdView; private MyAdapter mAdapter; /** * 临时的辅助类,用于防止同一个文件夹的多次扫描 */ private HashSet mDirPaths = new HashSet(); /** * 扫描拿到所有的图片文件夹 */ private List mImageFloders = new ArrayList(); private RelativeLayout mBottomLy; private TextView mChooseDir; private TextView mImageCount; int totalCount = 0; private int mScreenHeight; private ListImageDirPopupWindow mListImageDirPopupWindow; private Handler mHandler = new Handler() { public void handleMessage(android.os.Message msg) { mProgressDialog.dismiss(); // 为View绑定数据 data2View(); // 初始化展示文件夹的popupWindw initListDirPopupWindw(); } }; /** * 为View绑定数据 */ private void data2View() { if (mImgDir == null) { Toast.makeText(getApplicationContext(), "擦,一张图片没扫描到", Toast.LENGTH_SHORT).show(); return; } mImgs = Arrays.asList(mImgDir.list()); /** * 可以看到文件夹的路径和图片的路径分开保存,极大的减少了内存的消耗; */ mAdapter = new MyAdapter(getApplicationContext(), mImgs, R.layout.grid_item, mImgDir.getAbsolutePath()); mGirdView.setAdapter(mAdapter); mImageCount.setText(totalCount "张"); }; /** * 初始化展示文件夹的popupWindw */ private void initListDirPopupWindw() { mListImageDirPopupWindow = new ListImageDirPopupWindow( LayoutParams.MATCH_PARENT, (int) (mScreenHeight * 0.7), mImageFloders, LayoutInflater.from(getApplicationContext()) .inflate(R.layout.list_dir, null)); mListImageDirPopupWindow.setOnDismissListener(new OnDismissListener() { @Override public void onDismiss() { // 设置背景颜色变暗 WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = 1.0f; getWindow().setAttributes(lp); } }); // 设置选择文件夹的回调 mListImageDirPopupWindow.setOnImageDirSelected(this); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); DisplayMetrics outMetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(outMetrics); mScreenHeight = outMetrics.heightPixels; initView(); getImages(); initEvent(); } /** * 利用ContentProvider扫描手机中的图片,此方法在运行在子线程中 完成图片的扫描,最终获得jpg最多的那个文件夹 */ private void getImages() { if (!Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED)) { Toast.makeText(this, "暂无外部存储", Toast.LENGTH_SHORT).show(); return; } // 显示进度条 mProgressDialog = ProgressDialog.show(this, null, "正在加载..."); new Thread(new Runnable() { @Override public void run() { String firstImage = null; Uri mImageUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; ContentResolver mContentResolver = MainActivity.this .getContentResolver(); // 只查询jpeg和png的图片 Cursor mCursor = mContentResolver.query(mImageUri, null, MediaStore.Images.Media.MIME_TYPE "=? or " MediaStore.Images.Media.MIME_TYPE "=?", new String[] { "image/jpeg", "image/png" }, MediaStore.Images.Media.DATE_MODIFIED); Log.e("TAG", mCursor.getCount() ""); while (mCursor.moveToNext()) { // 获取图片的路径 String path = mCursor.getString(mCursor .getColumnIndex(MediaStore.Images.Media.DATA)); Log.e("TAG", path); // 拿到第一张图片的路径 if (firstImage == null) firstImage = path; // 获取该图片的父路径名 File parentFile = new File(path).getParentFile(); if (parentFile == null) continue; String dirPath = parentFile.getAbsolutePath(); ImageFloder imageFloder = null; // 利用一个HashSet防止多次扫描同一个文件夹(不加这个判断,图片多起来还是相当恐怖的~~) if (mDirPaths.contains(dirPath)) { continue; } else { mDirPaths.add(dirPath); // 初始化imageFloder imageFloder = new ImageFloder(); imageFloder.setDir(dirPath); imageFloder.setFirstImagePath(path); } int picSize = parentFile.list(new FilenameFilter() { @Override public boolean accept(File dir, String filename) { if (filename.endsWith(".jpg") || filename.endsWith(".png") || filename.endsWith(".jpeg")) return true; return false; } }).length; totalCount = picSize; imageFloder.setCount(picSize); mImageFloders.add(imageFloder); if (picSize > mPicsSize) { mPicsSize = picSize; mImgDir = parentFile; } } mCursor.close(); // 扫描完成,辅助的HashSet也就可以释放内存了 mDirPaths = null; // 通知Handler扫描图片完成 mHandler.sendEmptyMessage(0x110); } }).start(); } /** * 初始化View */ private void initView() { mGirdView = (GridView) findViewById(R.id.id_gridView); mChooseDir = (TextView) findViewById(R.id.id_choose_dir); mImageCount = (TextView) findViewById(R.id.id_total_count); mBottomLy = (RelativeLayout) findViewById(R.id.id_bottom_ly); } private void initEvent() { /** * 为底部的布局设置点击事件,弹出popupWindow */ mBottomLy.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { mListImageDirPopupWindow .setAnimationStyle(R.style.anim_popup_dir); mListImageDirPopupWindow.showAsDropDown(mBottomLy, 0, 0); // 设置背景颜色变暗 WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = .3f; getWindow().setAttributes(lp); } }); } @Override public void selected(ImageFloder floder) { mImgDir = new File(floder.getDir()); mImgs = Arrays.asList(mImgDir.list(new FilenameFilter() { @Override public boolean accept(File dir, String filename) { if (filename.endsWith(".jpg") || filename.endsWith(".png") || filename.endsWith(".jpeg")) return true; return false; } })); /** * 可以看到文件夹的路径和图片的路径分开保存,极大的减少了内存的消耗; */ mAdapter = new MyAdapter(getApplicationContext(), mImgs, R.layout.grid_item, mImgDir.getAbsolutePath()); mGirdView.setAdapter(mAdapter); // mAdapter.notifyDataSetChanged(); mImageCount.setText(floder.getCount() "张"); mChooseDir.setText(floder.getName()); mListImageDirPopupWindow.dismiss(); }}
    2015-04-08下载
    积分:1
  • 雇员管理系统
    这是一个雇员管理系统,是java和access数据库的环境,系统简洁高效,可以对员工进行管理,是小企业不错的选择作为自己内部的员工管理系统
    2022-02-24 14:38:11下载
    积分:1
  • android 异步下载示例源码
    其中还包含了各种布局示例 以及
    2014-04-13下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载