Android Label 自動排列庫:AutoLabelUI
AutoLabelUI mAutoLabel = (AutoLabelUI) view.findViewById(R.id.label_view);AutoLabelUISettings autoLabelUISettings = new AutoLabelUISettings.Builder() .withMaxLabels(5) .withIconCross(R.drawable.cross) .withBackgroundColor(android.R.color.holo_blue_bright) .withLabelsClickables(false) .withShowCross(true) .withTextColor(android.R.color.holo_red_dark) .withTextSize(R.dimen.label_title_size) .build();
mAutoLabel.setSettings(autoLabelUISettings);</pre>
</div> </div>