Skip to content

Commit

Permalink
详细页面数据可以复制 #28
Browse files Browse the repository at this point in the history
  • Loading branch information
benyaiba committed Sep 18, 2017
1 parent 57c4fc2 commit f592c79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -15,7 +15,7 @@ android {
targetSdkVersion 25

versionCode 162
versionName "0.1.9.6"
versionName "0.2.0.0"

}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/net/yaiba/keep/RecordDetailActivity.java
Expand Up @@ -16,7 +16,7 @@ public class RecordDetailActivity extends Activity {
private Cursor mCursor;
private TextView SiteName;
private TextView UserName;
private EditText PasswordValue;
private TextView PasswordValue;
private TextView Remark;
private int RECORD_ID = 0;

Expand Down Expand Up @@ -76,7 +76,7 @@ public void setUpViews(){

SiteName = (TextView)findViewById(R.id.site_name);
UserName = (TextView)findViewById(R.id.user_name);
PasswordValue = (EditText)findViewById(R.id.word_value);
PasswordValue = (TextView)findViewById(R.id.word_value);
Remark = (TextView)findViewById(R.id.remark);

SiteName.setText(mCursor.getString(1));
Expand Down
9 changes: 6 additions & 3 deletions app/src/main/res/layout/activity_record_detail.xml
Expand Up @@ -27,6 +27,7 @@
android:layout_height="wrap_content"
android:textSize="22sp"
android:paddingBottom="10dp"
android:textIsSelectable="true"
android:layout_weight="1" />

<TextView
Expand All @@ -40,6 +41,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textIsSelectable="true"
android:paddingBottom="10dp" />

<TextView
Expand All @@ -48,15 +50,15 @@
android:textSize="12sp"
android:text="@string/word_value" />

<EditText
<TextView
android:id="@+id/word_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"
android:enabled="false"
android:focusable="false"
android:inputType=""
android:fontFamily="monospace"
android:textIsSelectable="true"
android:textColor="@color/lightgray"
android:paddingBottom="10dp" />

<TextView
Expand All @@ -70,6 +72,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textIsSelectable="true"
android:paddingBottom="10dp"/>

<Button
Expand Down

0 comments on commit f592c79

Please sign in to comment.