編輯:關於Android編程
Easy like area in the circle of friends or QQ qzone
EasyViewProxy是EasyLikeArea的緩存管理器,默認的緩存數量是17。
建議: 使用Glide給ImageView加載好圖片,然後放入EasyLikeArea中。
https://github.com/CaMnter/EasyLikeArea
dependencies {
compile 'com.camnter.easylikearea:easylikearea:1.4'
}
更多細節,請直接去寫demo。
注意: 你必須 addView(…) 在 EasyLikeArea.setOmitView(View view) 之後。
private void initLikeArea() {
this.setOmitView(Constant.AVATARS.length);
for (int idRes : Constant.AVATARS) {
EasyLikeImageView iv = this.createEasyLikeImageView();
GlideUtils.displayNative(iv, idRes);
this.topicEla.addView(iv);
}
}
public void setOmitView(int count) {
View omitView = LayoutInflater.from(this).inflate(R.layout.view_omit_style_topic, null);
this.omitTv = (TextView) omitView.findViewById(R.id.topic_omit_tv);
this.omitTv.setText(this.getString(this.getOmitVieStringFormatId(), count));
this.topicEla.setOmitView(omitView);
}
你可以使用 EasyLikeImageView
private EasyLikeImageView createEasyLikeImageView() {
EasyLikeImageView iv = new EasyLikeImageView(this);
iv.setLayoutParams(new ViewGroup.LayoutParams(this.dp2px(36), this.dp2px(36)));
return iv;
}
EasyLikeImageView Attributes
Copyright (C) 2016 CaMnter [email protected]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
對於Android的學習,需要掌握的東西有點多,需要我們認真,小心,不斷的進取。前天突然有個想法,覺得Mp3播放器是一個可以練習的項目,於是在網上搜了下,發現有人已經寫了
1、如何對APK簽名(1)、創建數字證書,android123.keystore keytool -genkey -alias android123.keyst
最近看了一個AndroidQuery的框架,裡面的Demo,有個界面,讓博主很喜歡。左右滑動十分順暢,手感很好,於是拿來和大家分享一下。先看一下效果圖:從圖中可以看出,上
背景一般情況下,為了讓用戶更方便的打開應用,程序會在桌面上生成一些快捷方式。本來呢,如果是原生的桌面,其實是十分簡單,直接調用系統相關的API就行了。但是眾多的系統廠商以