|
55
|
Random random = new Random();
|
|
|
56
|
for (int i=0;i<length;i++) {
|
|
|
57
|
val += String.valueOf(random.nextInt(10));
|
|
|
58
|
}
|
|
|
59
|
return val;
|
|
|
60
|
}
|
|
|
61
|
|
|
52
|
62
|
|
|
53
|
63
|
public static String getPhone(Context context) {
|
|
54
|
64
|
return ProfileManager.getInstance().getUsername(context);
|
|
|
@ -8,7 +8,7 @@
|
|
8
|
8
|
|
|
9
|
9
|
<com.electric.chargingpile.iview.ChatPhotoViewPager
|
|
10
|
10
|
android:id="@+id/photoPager"
|
|
11
|
|
android:layout_width="match_parent"
|
|
|
11
|
android:layout_width="0dp"
|
|
12
|
12
|
android:layout_height="0dp"
|
|
13
|
13
|
app:layout_constraintBottom_toTopOf="@+id/bottomView"
|
|
14
|
14
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
@ -10,7 +10,7 @@
|
|
10
|
10
|
android:layout_width="match_parent"
|
|
11
|
11
|
android:layout_height="wrap_content"
|
|
12
|
12
|
android:adjustViewBounds="true"
|
|
13
|
|
android:scaleType="fitXY"
|
|
|
13
|
android:scaleType="centerCrop"
|
|
14
|
14
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
15
|
15
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
16
|
16
|
app:layout_constraintRight_toRightOf="parent"
|