-
Notifications
You must be signed in to change notification settings - Fork 7
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
Andrew Rahn
committed
Dec 14, 2016
1 parent
53f483d
commit 5204248
Showing
4 changed files
with
69 additions
and
15 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
47 changes: 47 additions & 0 deletions
47
app/src/main/java/net/paddlefish/lemonadestand/theme/ThemeViewHolder.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,47 @@ | ||
package net.paddlefish.lemonadestand.theme; | ||
|
||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
import android.widget.ImageView; | ||
import android.widget.LinearLayout; | ||
import android.widget.TextView; | ||
|
||
import net.paddlefish.lemonadestand.R; | ||
|
||
import butterknife.BindView; | ||
import butterknife.ButterKnife; | ||
|
||
/** | ||
* Simple ViewHolder for Theme ListView | ||
* | ||
* Created by arahn on 12/14/16. | ||
*/ | ||
public class ThemeViewHolder extends LinearLayout { | ||
@BindView(R.id.themeIcon) | ||
ImageView mIconView; | ||
@BindView(R.id.themeInfo) | ||
TextView mInfoView; | ||
@BindView(R.id.themeName) | ||
TextView mNameView; | ||
|
||
ImageView mCheckedView; | ||
|
||
public ThemeViewHolder(Context context) { | ||
super(context); | ||
} | ||
|
||
public ThemeViewHolder(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
void bindViews() { | ||
ButterKnife.bind(this); | ||
|
||
// FIXME: Use butterknife to bind mCheckedView to R.id.themeChecked | ||
// Instead of this code: | ||
// Delete from here... | ||
mCheckedView = (ImageView) findViewById(R.id.themeChecked); | ||
|
||
// ... to here and replace with your implementation! | ||
} | ||
} |
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