daimajia / daimajia/AndroidSwipeLayout
SwipeLayout is not working properly on AllView devices..
- Dominant language
- Java
- Stars
- 12.3k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I had made an application and I am having a bug and also tested your demo with:
Device: ALLVIEW X2_Soul
Android version: 4.4.2
Device: ALLVIEW V1_VIPER_I
Android version: 4.4.2
And the problem is when I tap or swipe the item row, the items that are in the background (comes from the right side of the screen) and the items that are in the foreground(they go to the left side of the screen) are not staying there, they go back instantly, like its remaking the whole row, or listview..
A part of my code how is used in the getView()
LayoutInflater inflater = LayoutInflater.from(parent.getContext());
if (convertView == null) {
convertView = inflater.inflate(R.layout.list_item_command, parent, false);
}
```
final SwipeLayout swipeLayout = ViewHolder.get(convertView, R.id.list_item_command_swipe);
swipeLayout.setShowMode(SwipeLayout.ShowMode.PullOut);
swipeLayout.setClickable(true);
swipeLayout.setClickToClose(true);
LinearLayout fgLinear = ViewHolder.get(convertView, R.id.list_item_command_fg_linear);
ImageView addProduct = ViewHolder.get(convertView, R.id.list_item_order_add_img);
ImageView removeProduct = ViewHolder.get(convertView, R.id.list_item_order_remove_img);
ImageView eraseProduct = ViewHolder.get(convertView, R.id.list_item_order_erase_img);
fgLinear.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
swipeLayout.open(true);
}
});
```
How it is in the list item xml:
```
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.