Skip to content

Commit

Permalink
微调ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hss01248 committed Mar 24, 2018
1 parent 69791ca commit b74548f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ public void onItemClick(CharSequence text, int position) {
public void onBottomBtnClick() {
showToast("onItemClick");
}
}).setTitle("人生若只如初见").show();
})
//.setTitle("人生若只如初见")
.show();
}
break;
case R.id.btn_ios_center_list:
Expand Down Expand Up @@ -451,7 +453,9 @@ public void onItemClick(CharSequence text, int position) {
public void onBottomBtnClick() {
showToast("onItemClick");
}
}).setTitle("任选一个").show();
})
.setTitle("任选一个")
.show();

break;
case R.id.btn_input:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ public View getView(final int position, View convertView, ViewGroup parent) {
Button view = (Button) root.findViewById(R.id.btn);
if (getCount() >=2){
if (position ==0){
view.setBackgroundResource(R.drawable.selector_btn_press_no_corner);
if(TextUtils.isEmpty(bean.title)){
view.setBackgroundResource(R.drawable.selector_btn_press_all_top);
}else {
view.setBackgroundResource(R.drawable.selector_btn_press_no_corner);
}
}else if (position == getCount() -1){
view.setBackgroundResource(R.drawable.selector_btn_press_all_bottom);
}else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ public View getView(final int position, View convertView, ViewGroup parent) {
Button view = (Button) root.findViewById(R.id.btn);
if (getCount() >=2){
if (position ==0){
view.setBackgroundResource(R.drawable.selector_btn_press_no_corner);
if(TextUtils.isEmpty(bean.title)){
view.setBackgroundResource(R.drawable.selector_btn_press_all_top);
}else {
view.setBackgroundResource(R.drawable.selector_btn_press_no_corner);
}

}else if (position == getCount() -1){
view.setBackgroundResource(R.drawable.selector_btn_press_all_bottom);
}else {
Expand Down

0 comments on commit b74548f

Please sign in to comment.