我的布局中有TextView.我想保持它隐藏,只想在按钮点击时看到一次,我该怎么办?我的观点如下.谢谢
<TextView
android:layout_marginBottom="16dp"
android:layout_marginRight="8dp"
android:id="@+id/textAuthorSign"
android:layout_gravity="right"
android:text="- ABJ Abdul Kalam"
android:textStyle="italic"
android:textSize="16sp"
android:typeface="serif"
android:visibility="invisible"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
Run Code Online (Sandbox Code Playgroud)
谢谢
我有引用应用程序,它具有向开发人员发送反馈电子邮件的功能.我想在电子邮件中附加设备型号和Android版本信息.我不知道怎么能这样做.我发送电子邮件的java代码如下所示.
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto","exmaple@gmail.com", null));
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
emailIntent.putExtra(Intent.EXTRA_TEXT, "Write Here");
startActivity(Intent.createChooser(emailIntent, "Send email..."));
Run Code Online (Sandbox Code Playgroud)
谢谢