@@ -21,7 +21,7 @@ import ai.pai.client.R; |
||
| 21 | 21 |
|
| 22 | 22 |
public class PhotoLoader {
|
| 23 | 23 |
|
| 24 |
- private static boolean isInited; |
|
| 24 |
+ private static volatile boolean isInited; |
|
| 25 | 25 |
|
| 26 | 26 |
private static void initPhotoLoader(Context context){
|
| 27 | 27 |
context = context.getApplicationContext(); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 | 2 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 |
- android:layout_width="match_parent" |
|
| 4 |
- android:layout_height="@dimen/nav_header_height" |
|
| 5 | 3 |
xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 |
+ android:layout_width="match_parent" |
|
| 5 |
+ android:layout_height="wrap_content" |
|
| 6 | 6 |
android:background="@drawable/side_nav_bar" |
| 7 | 7 |
android:gravity="bottom" |
| 8 | 8 |
android:orientation="vertical" |
@@ -16,22 +16,22 @@ |
||
| 16 | 16 |
android:id="@+id/img_user_avatar" |
| 17 | 17 |
android:layout_width="80dp" |
| 18 | 18 |
android:layout_height="80dp" |
| 19 |
+ android:layout_gravity="center_horizontal" |
|
| 19 | 20 |
android:layout_marginTop="20dp" |
| 20 |
- app:riv_corner_radius="5dip" |
|
| 21 |
- app:riv_border_width="1dip" |
|
| 22 |
- app:riv_oval="false" |
|
| 21 |
+ android:src="@drawable/default_avatar" |
|
| 23 | 22 |
app:riv_border_color="@color/colorPrimaryDark" |
| 24 |
- android:layout_gravity="center_horizontal" |
|
| 25 |
- android:src="@drawable/default_avatar" /> |
|
| 23 |
+ app:riv_border_width="1dip" |
|
| 24 |
+ app:riv_corner_radius="5dip" |
|
| 25 |
+ app:riv_oval="false" /> |
|
| 26 | 26 |
|
| 27 | 27 |
<TextView |
| 28 | 28 |
android:id="@+id/tv_user_nickname" |
| 29 | 29 |
android:layout_width="wrap_content" |
| 30 | 30 |
android:layout_height="wrap_content" |
| 31 |
- android:paddingTop="10dp" |
|
| 32 | 31 |
android:layout_gravity="center_horizontal" |
| 33 |
- android:textSize="16sp" |
|
| 32 |
+ android:paddingTop="10dp" |
|
| 34 | 33 |
android:textColor="@color/white" |
| 35 |
- /> |
|
| 34 |
+ android:text="程振宇" |
|
| 35 |
+ android:textSize="16sp" /> |
|
| 36 | 36 |
|
| 37 | 37 |
</LinearLayout> |