mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-01 06:12:45 -08:00
Final changes for 0.2.0 release.
Fix spacing in PwEntry activity.
This commit is contained in:
1 parent
bd1896a604
commit
198b4e81bc
13 files changed
+134
-33
No files matched your search
@@ -30,15 +30,19 @@ public class PwEntryView extends LinearLayout {
|
||||
|
||||
private Activity mAct;
|
||||
private PwEntry mPw;
|
||||
private TextView mTv;
|
||||
private int mPos;
|
||||
|
||||
public PwEntryView(Activity act, PwEntry pw) {
|
||||
public PwEntryView(Activity act, PwEntry pw, int pos) {
|
||||
super(act);
|
||||
mAct = act;
|
||||
mPw = pw;
|
||||
mPos = pos;
|
||||
|
||||
View ev = View.inflate(mAct, R.layout.entry_list_entry, null);
|
||||
TextView tv = (TextView) ev.findViewById(R.id.entry_text);
|
||||
tv.setText(mPw.title);
|
||||
mTv = tv;
|
||||
|
||||
LayoutParams lp = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
|
||||
|
||||
@@ -46,8 +50,12 @@ public class PwEntryView extends LinearLayout {
|
||||
|
||||
}
|
||||
|
||||
public void refreshTitle() {
|
||||
mTv.setText(mPw.title);
|
||||
}
|
||||
|
||||
void onClick() {
|
||||
EntryActivity.Launch(mAct, mPw);
|
||||
EntryActivity.Launch(mAct, mPw, mPos);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user