资源简介

Android开源代码,自定义Layout,继承自LinearLayout,内部控件自动换行显示。例如:可用来开发数量变化的属性标签群。

资源截图

代码片段和文件信息

package org.apmem.tools.example;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;
import org.apmem.tools.layouts.FlowLayout;

public class MyActivity extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        FlowLayout layout = (FlowLayout)this.findViewById(R.id.flowLayout);

        TextView textView;
        textView = new TextView(this);
        textView.setLayoutParams(new FlowLayout.LayoutParams(100 100));
        textView.setTextAppearance(this android.R.style.TextAppearance_Large);
        textView.setText(“appearance“);
        layout.addView(textView 0);

        textView = new TextView(this);
        textView.setLayoutParams(new FlowLayout.LayoutParams(100 100));
        textView.setText(“appearance“);
        layout.addView(textView 0);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        333  2014-07-19 17:00  android-flowlayout\.git\config

     文件         73  2014-07-19 16:59  android-flowlayout\.git\description

     文件         23  2014-07-19 17:00  android-flowlayout\.git\HEAD

     文件        452  2014-07-19 16:59  android-flowlayout\.git\hooks\applypatch-msg.sample

     文件        896  2014-07-19 16:59  android-flowlayout\.git\hooks\commit-msg.sample

     文件        189  2014-07-19 16:59  android-flowlayout\.git\hooks\post-update.sample

     文件        398  2014-07-19 16:59  android-flowlayout\.git\hooks\pre-applypatch.sample

     文件       1642  2014-07-19 16:59  android-flowlayout\.git\hooks\pre-commit.sample

     文件       1352  2014-07-19 16:59  android-flowlayout\.git\hooks\pre-push.sample

     文件       4951  2014-07-19 16:59  android-flowlayout\.git\hooks\pre-rebase.sample

     文件       1239  2014-07-19 16:59  android-flowlayout\.git\hooks\prepare-commit-msg.sample

     文件       3611  2014-07-19 16:59  android-flowlayout\.git\hooks\update.sample

     文件       1976  2014-07-19 17:00  android-flowlayout\.git\index

     文件        240  2014-07-19 16:59  android-flowlayout\.git\info\exclude

     文件        192  2014-07-19 17:00  android-flowlayout\.git\logs\HEAD

     文件        192  2014-07-19 17:00  android-flowlayout\.git\logs\refs\heads\master

     文件        192  2014-07-19 17:00  android-flowlayout\.git\logs\refs\remotes\origin\HEAD

     文件      13056  2014-07-19 17:00  android-flowlayout\.git\objects\pack\pack-10161dd72812d30f30e994693d2ee5cdc1049bff.idx

     文件     167223  2014-07-19 17:00  android-flowlayout\.git\objects\pack\pack-10161dd72812d30f30e994693d2ee5cdc1049bff.pack

     文件        220  2014-07-19 17:00  android-flowlayout\.git\packed-refs

     文件         41  2014-07-19 17:00  android-flowlayout\.git\refs\heads\master

     文件         32  2014-07-19 17:00  android-flowlayout\.git\refs\remotes\origin\HEAD

     文件         46  2014-07-19 17:00  android-flowlayout\.gitignore

     文件       2016  2014-07-19 17:00  android-flowlayout\app\pom.xml

     文件        716  2014-07-19 17:00  android-flowlayout\app\src\main\AndroidManifest.xml

     文件       1065  2014-07-19 17:00  android-flowlayout\app\src\main\java\org\apmem\tools\example\MyActivity.java

     文件       4147  2014-07-19 17:00  android-flowlayout\app\src\main\res\drawable-hdpi\ic_launcher.png

     文件       1723  2014-07-19 17:00  android-flowlayout\app\src\main\res\drawable-ldpi\ic_launcher.png

     文件       2574  2014-07-19 17:00  android-flowlayout\app\src\main\res\drawable-mdpi\ic_launcher.png

     文件       5238  2014-07-19 17:00  android-flowlayout\app\src\main\res\layout\main.xml

............此处省略65个文件信息

评论

共有 条评论