-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shihao
committed
Mar 11, 2017
1 parent
b067354
commit 465622c
Showing
5 changed files
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
library/src/main/java/cn/droidlover/xdroid/XDroidConf.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
library/src/main/java/cn/droidlover/xdroid/base/SimpleListBindingViewHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.droidlover.xdroid.base; | ||
|
||
import android.databinding.DataBindingUtil; | ||
import android.databinding.ViewDataBinding; | ||
import android.view.View; | ||
|
||
/** | ||
* Created by shihao on 2017/3/11. | ||
*/ | ||
|
||
public class SimpleListBindingViewHolder<T extends ViewDataBinding> { | ||
private T binding; | ||
|
||
public SimpleListBindingViewHolder(T binding) { | ||
this.binding = binding; | ||
} | ||
|
||
public SimpleListBindingViewHolder(View itemView) { | ||
this.binding = DataBindingUtil.bind(itemView); | ||
} | ||
|
||
public T getBinding() { | ||
return binding; | ||
} | ||
} |