-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/example/jiayu/helloworld/Chapter2/Chapter2TextView2.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,14 @@ | ||
package com.example.jiayu.helloworld.Chapter2; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import com.example.jiayu.helloworld.R; | ||
|
||
public class Chapter2TextView2 extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_chapter2_text_view2); | ||
} | ||
} |
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="#0000"/> | ||
<stroke android:width="4px" android:color="#f00"/> | ||
</shape> |
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,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | ||
<corners android:topLeftRadius="20px" | ||
android:topRightRadius="5px" | ||
android:bottomRightRadius="20px" | ||
android:bottomLeftRadius="5px"/> | ||
<stroke android:width="4px" android:color="#f0f"/> | ||
<gradient android:startColor="#f00" | ||
android:centerColor="#0f0" | ||
android:endColor="#00f" | ||
android:type="linear"/> | ||
</shape> |
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 |
---|---|---|
|
@@ -10,15 +10,44 @@ | |
android:singleLine="true" | ||
android:text="我爱java" | ||
android:textSize="20pt" | ||
android:drawableEnd="@drawable/virtual_pc" | ||
android:drawableRight="@drawable/virtual_pc"/> | ||
android:drawableEnd="@drawable/virtual_pc"/> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:singleLine="true" | ||
android:text=""/> | ||
android:text="我爱java我爱java我爱java我爱java我爱java我爱java" | ||
android:ellipsize="middle" | ||
android:textAllCaps="true"/> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:singleLine="true" | ||
android:text="邮件是[email protected], 电话是(123)4567822" | ||
android:autoLink="email|phone"/> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="测试文字" | ||
android:shadowColor="#00f" | ||
android:shadowDx="10.0" | ||
android:shadowDy="8.0" | ||
android:shadowRadius="3.0" | ||
android:textColor="#f00" | ||
android:textSize="30pt"/> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="password" | ||
android:password="true"/> | ||
|
||
<CheckedTextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="克勾选的文本" | ||
android:checkMark="@drawable/button_ok"/> | ||
|
||
</LinearLayout> |
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,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="带边框的文本" | ||
android:textSize="24pt" | ||
android:background="@drawable/bg_border"/> | ||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="圆角边框,渐变背景的文本" | ||
android:textSize="24pt" | ||
android:background="@drawable/bg_border2"/> | ||
|
||
</LinearLayout> |