Android Label 自動排列庫:AutoLabelUI

jopen 9年前發布 | 9K 次閱讀 Android開發 移動開發 AutoLabelUI

Android這個庫能夠將labels并排放置,如果一行沒有足夠空間的時候會另起一個新行。
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>

項目主頁:http://www.baiduhome.net/lib/view/home/1441701194711

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!