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
e33d96e3
Commit
e33d96e3
authored
Jan 30, 2018
by
zhang_z
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 192.168.254.154:w525721508/TangKuPos
parents
b265ccad
f3cead13
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
65 additions
and
57 deletions
+65
-57
app/src/main/java/com/xingdata/zzdpos/ui/sendticke/fragment/VipFragment.java
...om/xingdata/zzdpos/ui/sendticke/fragment/VipFragment.java
+4
-9
app/src/main/java/com/xingdata/zzdpos/view/SearchBar.java
app/src/main/java/com/xingdata/zzdpos/view/SearchBar.java
+4
-1
app/src/main/res/layout/activity_send_ticket.xml
app/src/main/res/layout/activity_send_ticket.xml
+0
-1
app/src/main/res/layout/fragment_send_ticker_vip.xml
app/src/main/res/layout/fragment_send_ticker_vip.xml
+29
-20
app/src/main/res/layout/title.xml
app/src/main/res/layout/title.xml
+12
-12
app/src/main/res/layout/title_appback.xml
app/src/main/res/layout/title_appback.xml
+9
-10
app/src/main/res/layout/title_pop.xml
app/src/main/res/layout/title_pop.xml
+6
-4
app/src/main/res/layout/view_search_bar.xml
app/src/main/res/layout/view_search_bar.xml
+1
-0
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/sendticke/fragment/VipFragment.java
View file @
e33d96e3
...
@@ -5,7 +5,6 @@ import android.support.v7.widget.LinearLayoutManager;
...
@@ -5,7 +5,6 @@ import android.support.v7.widget.LinearLayoutManager;
import
android.view.View
;
import
android.view.View
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.blankj.utilcode.util.KeyboardUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentSendTickerVipBinding
;
import
com.xingdata.zzdpos.databinding.FragmentSendTickerVipBinding
;
...
@@ -13,7 +12,6 @@ import com.xingdata.zzdpos.model.Vip;
...
@@ -13,7 +12,6 @@ import com.xingdata.zzdpos.model.Vip;
import
com.xingdata.zzdpos.ui.sendticke.SendTicketPresenter
;
import
com.xingdata.zzdpos.ui.sendticke.SendTicketPresenter
;
import
com.xingdata.zzdpos.ui.sendticke.adapter.VipAdapter
;
import
com.xingdata.zzdpos.ui.sendticke.adapter.VipAdapter
;
import
com.xingdata.zzdpos.ui.settle.SettleActivity
;
import
com.xingdata.zzdpos.ui.settle.SettleActivity
;
import
com.xingdata.zzdpos.util.Global
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
java.util.List
;
import
java.util.List
;
...
@@ -66,14 +64,11 @@ public class VipFragment extends BaseFragment<SendTicketPresenter, FragmentSendT
...
@@ -66,14 +64,11 @@ public class VipFragment extends BaseFragment<SendTicketPresenter, FragmentSendT
}
}
}
}
});
});
mViewBinding
.
etSearch
.
setOnEditorActionListener
((
textView
,
i
,
keyEvent
)
->
{
mViewBinding
.
vSearch
.
setOnSearchListener
(
keyword
->
{
KeyboardUtils
.
hideSoftInput
(
textView
);
mViewBinding
.
vSearch
.
hideSoftInput
();
mPresenter
.
searchVip
(
textView
.
getText
().
toString
());
mPresenter
.
searchVip
(
keyword
);
return
false
;
});
});
Global
.
setFocus
(
mViewBinding
.
etSearch
,
getActivity
());
mViewBinding
.
vSearch
.
showSoftInput
();
// KeyboardUtils.showSoftInput(getActivity());
}
}
/**
/**
...
...
app/src/main/java/com/xingdata/zzdpos/view/SearchBar.java
View file @
e33d96e3
...
@@ -16,6 +16,7 @@ import com.blankj.utilcode.util.StringUtils;
...
@@ -16,6 +16,7 @@ import com.blankj.utilcode.util.StringUtils;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.databinding.ViewSearchBarBinding
;
import
com.xingdata.zzdpos.databinding.ViewSearchBarBinding
;
import
com.xingdata.zzdpos.util.Global
;
@SuppressLint
(
"AppCompatCustomView"
)
@SuppressLint
(
"AppCompatCustomView"
)
public
class
SearchBar
extends
ConstraintLayout
{
public
class
SearchBar
extends
ConstraintLayout
{
...
@@ -60,7 +61,8 @@ public class SearchBar extends ConstraintLayout {
...
@@ -60,7 +61,8 @@ public class SearchBar extends ConstraintLayout {
* 显示软键盘
* 显示软键盘
*/
*/
public
void
showSoftInput
()
{
public
void
showSoftInput
()
{
KeyboardUtils
.
showSoftInput
(
mViewBinding
.
etSearch
);
Global
.
setFocus
(
mViewBinding
.
etSearch
,
getContext
());
// KeyboardUtils.showSoftInput(mViewBinding.etSearch);
}
}
/**
/**
...
@@ -81,6 +83,7 @@ public class SearchBar extends ConstraintLayout {
...
@@ -81,6 +83,7 @@ public class SearchBar extends ConstraintLayout {
ToastUtils
.
showShort
(
"请输入搜索内容"
);
ToastUtils
.
showShort
(
"请输入搜索内容"
);
return
false
;
return
false
;
}
}
KeyboardUtils
.
hideSoftInput
(
mViewBinding
.
etSearch
);
KeyboardUtils
.
hideSoftInput
(
mViewBinding
.
etSearch
);
mOnSearchListener
.
onSearch
(
str
);
mOnSearchListener
.
onSearch
(
str
);
}
}
...
...
app/src/main/res/layout/activity_send_ticket.xml
View file @
e33d96e3
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
<FrameLayout
<FrameLayout
android:id=
"@+id/fragment"
android:id=
"@+id/fragment"
style=
"@style/xuline_margin"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
...
...
app/src/main/res/layout/fragment_send_ticker_vip.xml
View file @
e33d96e3
...
@@ -48,29 +48,38 @@
...
@@ -48,29 +48,38 @@
android:src=
"@mipmap/back_black"
android:src=
"@mipmap/back_black"
app:layout_constraintLeft_toLeftOf=
"parent"
/>
app:layout_constraintLeft_toLeftOf=
"parent"
/>
<LinearLayout
<!--<LinearLayout-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginEnd="@dimen/all_margin"-->
<!--app:layout_constraintBottom_toTopOf="parent"-->
<!--app:layout_constraintLeft_toRightOf="@id/btn_back"-->
<!--app:layout_constraintRight_toRightOf="parent"-->
<!--app:layout_constraintTop_toBottomOf="parent">-->
<!--<EditText-->
<!--android:id="@+id/et_search"-->
<!--style="@style/searchBarEditor"-->
<!--android:layout_width="0dp"-->
<!--android:layout_weight="1"-->
<!--android:hint="@string/vip_seach_hint"-->
<!--android:inputType="number"-->
<!--android:maxLength="11"-->
<!--android:textColor="@color/black_likui"-->
<!--android:textColorHint="@color/gray_huanggai"-->
<!--android:textSize="@dimen/all_text_size_low"-->
<!--android:visibility="gone"/>-->
<!---->
<!--</LinearLayout>-->
<com.xingdata.zzdpos.view.SearchBar
android:id=
"@+id/v_search"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"
match_parent
"
android:layout_height=
"
0dp
"
a
ndroid:layout_marginEnd=
"@dimen/all_margin
"
a
pp:hint=
"@string/store_search_hint
"
app:layout_constraintBottom_to
Top
Of=
"parent"
app:layout_constraintBottom_to
Bottom
Of=
"parent"
app:layout_constraintLeft_toRightOf=
"@id/btn_back"
app:layout_constraintLeft_toRightOf=
"@id/btn_back"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toBottomOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
/>
<EditText
android:id=
"@+id/et_search"
style=
"@style/searchBarEditor"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:hint=
"@string/vip_seach_hint"
android:inputType=
"number"
android:maxLength=
"11"
android:textColor=
"@color/black_likui"
android:textColorHint=
"@color/gray_huanggai"
android:textSize=
"@dimen/all_text_size_low"
/>
</LinearLayout>
<View
<View
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/title.xml
View file @
e33d96e3
...
@@ -5,23 +5,24 @@
...
@@ -5,23 +5,24 @@
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
</data>
</data>
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/up_down_line_white_bottom"
android:background=
"@drawable/up_down_line_white_bottom"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageButton
<ImageButton
android:id=
"@+id/iv_back"
android:id=
"@+id/iv_back"
android:layout_width=
"
?attr/actionBarSize
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/transparent"
android:background=
"@color/transparent"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:padding=
"@dimen/all_padding"
android:src=
"@mipmap/go_back"
/>
android:src=
"@mipmap/go_back"
/>
<TextView
<TextView
...
@@ -30,13 +31,12 @@
...
@@ -30,13 +31,12 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"标题"
android:text=
"标题"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
android:textColor=
"@color/black_baozheng"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_sub_title_size"
/>
android:textSize=
"@dimen/all_sub_title_size"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
...
...
app/src/main/res/layout/title_appback.xml
View file @
e33d96e3
...
@@ -5,27 +5,27 @@
...
@@ -5,27 +5,27 @@
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
</data>
</data>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/singleline"
android:background=
"@drawable/singleline"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageButton
<ImageButton
android:id=
"@+id/iv_back"
android:id=
"@+id/iv_back"
android:layout_width=
"
?attr/actionBarSize
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/transparent"
android:background=
"@color/transparent"
android:gravity=
"center"
android:gravity=
"center"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:padding=
"@dimen/all_
margin
"
android:padding=
"@dimen/all_
padding
"
android:src=
"@mipmap/back_white"
/>
android:src=
"@mipmap/back_white"
/>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
...
@@ -34,8 +34,7 @@
...
@@ -34,8 +34,7 @@
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"标题"
android:text=
"标题"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/all_sub_title_size"
android:textSize=
"@dimen/all_sub_title_size"
/>
/>
</RelativeLayout>
</RelativeLayout>
...
...
app/src/main/res/layout/title_pop.xml
View file @
e33d96e3
...
@@ -10,9 +10,10 @@
...
@@ -10,9 +10,10 @@
<ImageButton
<ImageButton
android:id=
"@+id/iv_back"
android:id=
"@+id/iv_back"
android:layout_width=
"
?attr/actionBarSize
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@mipmap/go_back"
/>
android:background=
"@mipmap/go_back"
android:padding=
"@dimen/all_padding"
/>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
...
@@ -25,10 +26,11 @@
...
@@ -25,10 +26,11 @@
<ImageButton
<ImageButton
android:id=
"@+id/pop_menu"
android:id=
"@+id/pop_menu"
android:layout_width=
"
60dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:background=
"@mipmap/pop_menu"
/>
android:background=
"@mipmap/pop_menu"
android:padding=
"@dimen/all_padding"
/>
</RelativeLayout>
</RelativeLayout>
...
...
app/src/main/res/layout/view_search_bar.xml
View file @
e33d96e3
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
android:background=
"?attr/actionBarItemBackground"
android:background=
"?attr/actionBarItemBackground"
android:contentDescription=
"@string/search_clear"
android:contentDescription=
"@string/search_clear"
android:padding=
"@dimen/all_spacing"
android:padding=
"@dimen/all_spacing"
android:src=
"@mipmap/ic_clear"
android:src=
"@mipmap/ic_clear"
android:visibility=
"@{keywordLength>0?View.VISIBLE:View.GONE}"
android:visibility=
"@{keywordLength>0?View.VISIBLE:View.GONE}"
app:layout_constraintBottom_toTopOf=
"parent"
app:layout_constraintBottom_toTopOf=
"parent"
...
...
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