Skip to content

Commit afa7368

Browse files
author
CodingForAndroid
committed
add marks add new icon
1 parent e8ce5e5 commit afa7368

7 files changed

Lines changed: 51 additions & 7 deletions

File tree

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<application
2323
android:name=".BaseApplication"
2424
android:allowBackup="true"
25-
android:icon="@mipmap/acfun_login_btn_bg"
25+
android:icon="@mipmap/ic_music_zone_large_avatar_default"
2626
android:label="@string/app_name"
2727
android:theme="@style/AppTheme" >
2828
<activity

app/src/main/java/com/bczm/widgetcollections/ui/activity/MainActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
import org.json.JSONObject;
3737

38+
import java.util.Collection;
3839
import java.util.HashMap;
3940
import java.util.Map;
4041

@@ -93,8 +94,6 @@ protected void setListeners() {
9394
mViewPager.setAdapter(pagerAdapter);
9495
mViewPager.setOffscreenPageLimit(3);
9596
mViewPager.setOnPageChangeListener(new MyOnPageChangeListener());
96-
97-
// mViewPager.setOffscreenPageLimit();
9897
}
9998
@Override
10099
protected void free() {

app/src/main/java/com/bczm/widgetcollections/ui/widget/LoadingPage.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import android.content.Context;
33
import android.view.View;
44
import android.widget.FrameLayout;
5+
import android.widget.TextView;
6+
57
import com.bczm.widgetcollections.R;
68
import com.bczm.widgetcollections.ThreadManager;
79
import com.bczm.widgetcollections.utils.UIUtils;
@@ -110,7 +112,12 @@ public synchronized void show() {
110112
}
111113

112114
protected View createLoadingView() {
113-
return UIUtils.inflate(R.layout.loading_page_loading);
115+
String[] names= UIUtils.getStringArray(R.array.marks);
116+
int num= (int) (Math.random()*names.length);
117+
View view= UIUtils.inflate(R.layout.loading_page_loading);
118+
TextView tv= (TextView) view.findViewById(R.id.tv_mark);
119+
tv.setText(names[num]);
120+
return view;
114121

115122

116123
}
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
1+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
22
android:layout_width="match_parent"
3+
android:layout_margin="40dp"
34
android:layout_height="match_parent" >
45

6+
<TextView
7+
android:textColor="@color/blue"
8+
android:id="@+id/tv_mark"
9+
android:textSize="@dimen/txt_size_classify_high"
10+
android:layout_centerInParent="true"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content" />
513
<ProgressBar
14+
android:layout_above="@+id/tv_mark"
615
android:layout_gravity="center"
716
android:id="@+id/progressbar"
817
style="@android:style/Widget.ProgressBar"
@@ -12,4 +21,5 @@
1221
android:indeterminate="false"
1322
android:indeterminateDrawable="@drawable/loading"
1423
android:padding="5dp" />
15-
</FrameLayout>
24+
</RelativeLayout>
25+

app/src/main/res/values/arrays.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,32 @@
1717
<item>听音乐</item>
1818
<item>看小说</item>
1919
</string-array>
20+
<string-array name="marks">
21+
<item>时光机,带我回到那个纯真的年代。</item>
22+
<item>曾经,我想和你分享我的所有秘密,但现在,你成了我心底的秘密。</item>
23+
<item>冰告诉水,只有凝聚才不至于流失。</item>
24+
<item>若是心凉了,便是再也找不回最初的温暖。</item>
25+
<item>人生在世,来是偶然,走是必然。</item>
26+
<item>有的人对你好,是因为你对他好,有的人对你好,是因为懂得你的好。</item>
27+
<item>能安慰自己的人,比较容易快乐。</item>
28+
<item>人要为自己活,而不是活在别人的眼光下。</item>
29+
<item>老师总爱说一句话:中国就毁在你们这一代手里了。</item>
30+
<item>上班就是要发扬死猪不怕开水烫旳精神。</item>
31+
<item>睡觉算什么,有本事你别醒。</item>
32+
<item>一直被举报,从未被封号。</item>
33+
<item>眼界决定境界,细节决定成败。</item>
34+
<item>有人问我为什么那么喜欢笑,我淡淡的说:因为想学着笑看人生。</item>
35+
<item>只有体会爱的不完美,才能学会爱怎么给。</item>
36+
<item>现在的化妆品都是韩国的牌子,国产的质量,美国的价格!</item>
37+
<item>我能想到最浪漫的事,就是和你出现在同一张寻人启事上。</item>
38+
<item>从小到大我捡到的钱加起来还没有10块钱,唉,这就是命。</item>
39+
<item>说一百句对不起,不如做一件对得起的事。</item>
40+
<item>青春已经提前毕业,看着梦想不在亲切。</item>
41+
<item>长得高有屁用,还不是得低头看我。</item>
42+
<item>考试的时候老师拍拍我说:这位童鞋,醒醒,还有半小时收卷了,把你的试卷晾凉,湿的不好装订。我囧啊。</item>
43+
<item>我希望在有生之年,可以看到新闻联播的大结局。</item>
44+
<item>对牛弹琴不算什么能耐,对牛谈情才叫真本事。</item>
45+
<item>你又不是环保袋,你装什么装啊。</item>
46+
</string-array>
2047

2148
</resources>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@
5858
<!--vitamio-->
5959

6060

61+
6162
</resources>

0 commit comments

Comments
 (0)