Commit 222a4677 authored by 陈前's avatar 陈前

我的

parent 915178f0
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
android:label="@string/main_title" android:label="@string/main_title"
android:launchMode="singleTask" android:launchMode="singleTask"
android:windowSoftInputMode="adjustUnspecified|stateHidden" > android:windowSoftInputMode="adjustUnspecified|stateHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity> </activity>
<activity <activity
...@@ -46,11 +50,7 @@ ...@@ -46,11 +50,7 @@
android:configChanges="keyboard|orientation|screenSize|keyboardHidden" android:configChanges="keyboard|orientation|screenSize|keyboardHidden"
android:windowSoftInputMode="adjustUnspecified|stateHidden"> android:windowSoftInputMode="adjustUnspecified|stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity> </activity>
</application> </application>
......
...@@ -57,6 +57,8 @@ public class MySelfRecyclerAdapter extends BaseAdapter<Integer, ItemMyselfString ...@@ -57,6 +57,8 @@ public class MySelfRecyclerAdapter extends BaseAdapter<Integer, ItemMyselfString
mViewBinding.itemTv.setText(titleId); mViewBinding.itemTv.setText(titleId);
Drawable drawable=mContext.getDrawable(imgId); Drawable drawable=mContext.getDrawable(imgId);
drawable.setBounds(0,0,(int)mViewBinding.itemTv.getTextSize()+20,(int)mViewBinding.itemTv.getTextSize()+20); drawable.setBounds(0,0,(int)mViewBinding.itemTv.getTextSize()+20,(int)mViewBinding.itemTv.getTextSize()+20);
mViewBinding.itemTv.setCompoundDrawables(drawable,null,null,null); Drawable drawableRight=mContext.getDrawable(R.mipmap.drop_down);
drawableRight.setBounds(0,0,(int)mViewBinding.itemTv.getTextSize(),(int)mViewBinding.itemTv.getTextSize());
mViewBinding.itemTv.setCompoundDrawables(drawable,null,drawableRight,null);
} }
} }
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<android.support.constraint.ConstraintLayout <android.support.constraint.ConstraintLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="0dp"
android:background="@color/blue_mawu" android:background="@mipmap/bg_myself"
android:gravity="center" android:gravity="center"
android:paddingTop="30dp" android:paddingTop="30dp"
android:weightSum="2" android:weightSum="2"
...@@ -28,6 +28,79 @@ ...@@ -28,6 +28,79 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/user_img"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_margin="@dimen/all_margin"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:placeholderImage="@mipmap/img_head"
app:placeholderImageScaleType="centerInside"
app:roundAsCircle="true" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/padding_medium"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@mipmap/drop_down_fff"
app:layout_constraintStart_toEndOf="@id/user_img"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="李小乐"
android:textColor="@color/white_caocao"
android:textSize="@dimen/all_text_size" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/all_padding"
android:text="18710251009"
android:textColor="@color/white_caocao"
android:textSize="@dimen/all_text_size_small" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:orientation="horizontal"
android:paddingTop="@dimen/all_padding">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="北京市丰台区南四环西路186号"
android:textColor="@color/white_caocao"
android:textSize="@dimen/all_text_size_small" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_position" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/drop_down_fff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/all_margin"
android:src="@mipmap/drop_down_fff"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:padding="0dp" android:layout_height="wrap_content"
android:layout_height="wrap_content"> android:padding="0dp">
<TextView <TextView
android:id="@+id/item_tv" android:id="@+id/item_tv"
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginBottom="@dimen/all_padding" android:layout_marginBottom="@dimen/all_padding"
android:background="@color/white_caocao" android:background="@color/white_caocao"
android:drawablePadding="@dimen/all_padding"
android:elevation="@dimen/view_line_L050" android:elevation="@dimen/view_line_L050"
android:gravity="left" android:gravity="left"
android:drawablePadding="@dimen/all_padding"
android:padding="@dimen/vicescreen_shoppingcart_pandding" android:padding="@dimen/vicescreen_shoppingcart_pandding"
android:singleLine="true" android:singleLine="true"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="14sp" /> android:textSize="@dimen/all_text_size" />
</FrameLayout> </FrameLayout>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<dimen name="card_radius_medium">14dp</dimen> <dimen name="card_radius_medium">14dp</dimen>
<!--PADDING--> <!--PADDING-->
<dimen name="padding_big">24dp</dimen> <dimen name="padding_big">24dp</dimen>
<dimen name="padding_medium">16dp</dimen>
<!--EditText 边框粗细--> <!--EditText 边框粗细-->
<dimen name="edit_border">0.5dp</dimen> <dimen name="edit_border">0.5dp</dimen>
<!--一级标题--> <!--一级标题-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment