Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王海
TangKuPos
Commits
222a4677
Commit
222a4677
authored
Dec 21, 2017
by
陈前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的
parent
915178f0
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
86 additions
and
10 deletions
+86
-10
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+4
-4
app/src/main/java/com/xingdata/zzdpos/ui/main/adapter/MySelfRecyclerAdapter.java
...ingdata/zzdpos/ui/main/adapter/MySelfRecyclerAdapter.java
+3
-1
app/src/main/res/layout/fragment_myself.xml
app/src/main/res/layout/fragment_myself.xml
+74
-1
app/src/main/res/layout/item_myself_string.xml
app/src/main/res/layout/item_myself_string.xml
+4
-4
app/src/main/res/mipmap-xhdpi/bg_myself.png
app/src/main/res/mipmap-xhdpi/bg_myself.png
+0
-0
app/src/main/res/mipmap-xhdpi/drop_down.png
app/src/main/res/mipmap-xhdpi/drop_down.png
+0
-0
app/src/main/res/mipmap-xhdpi/drop_down_fff.png
app/src/main/res/mipmap-xhdpi/drop_down_fff.png
+0
-0
app/src/main/res/mipmap-xhdpi/ic_position.png
app/src/main/res/mipmap-xhdpi/ic_position.png
+0
-0
app/src/main/res/mipmap-xhdpi/img_head.png
app/src/main/res/mipmap-xhdpi/img_head.png
+0
-0
app/src/main/res/values/dimens.xml
app/src/main/res/values/dimens.xml
+1
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
222a4677
...
@@ -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>
...
...
app/src/main/java/com/xingdata/zzdpos/ui/main/adapter/MySelfRecyclerAdapter.java
View file @
222a4677
...
@@ -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
);
}
}
}
}
app/src/main/res/layout/fragment_myself.xml
View file @
222a4677
...
@@ -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>
...
...
app/src/main/res/layout/item_myself_string.xml
View file @
222a4677
...
@@ -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>
...
...
app/src/main/res/mipmap-xhdpi/bg_myself.png
0 → 100644
View file @
222a4677
46 KB
app/src/main/res/mipmap-xhdpi/drop_down.png
0 → 100644
View file @
222a4677
1.3 KB
app/src/main/res/mipmap-xhdpi/drop_down_fff.png
0 → 100644
View file @
222a4677
1.24 KB
app/src/main/res/mipmap-xhdpi/ic_position.png
0 → 100644
View file @
222a4677
1.64 KB
app/src/main/res/mipmap-xhdpi/img_head.png
0 → 100644
View file @
222a4677
13.1 KB
app/src/main/res/values/dimens.xml
View file @
222a4677
...
@@ -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>
<!--一级标题-->
<!--一级标题-->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment