Skip to content

Commit

Permalink
更新到v1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
FaceAI committed Mar 26, 2019
1 parent afe0f7b commit e7bb254
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 65 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

# Gradle 集成使用
```
compile 'anylife.scrolltextview:ScrollTextviewLib:1.3' [new]
compile 'anylife.scrolltextview:ScrollTextviewLib:1.3.5' [new]
```

# Maven 集成使用
```
<dependency>
<groupId>anylife.scrolltextview</groupId>
<artifactId>ScrollTextviewLib</artifactId>
<version>1.3</version>
<version>1.3.5</version>
<type>pom</type>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion ScrollTextviewLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
}

version = "1.3" //版本号,每次提交到Jcenter都要修改
version = "1.3.5" //版本号,每次提交到Jcenter都要修改
def siteUrl = "https://github.com/AnyLifeZLB/ScrollTextView" // project homepage
def gitUrl = "https://github.com/AnyLifeZLB/ScrollTextView.git" // project git
group = "anylife.scrolltextview"
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation project(':ScrollTextviewLib') //依赖 library ScrollTextViewLib

// implementation 'anylife.scrolltextview:ScrollTextviewLib:1.2' //when OK
implementation 'anylife.scrolltextview:ScrollTextviewLib:1.3.5' //when OK



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,34 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);




















//下面的不看了🙈


TextView titleText=findViewById(R.id.item1).findViewById(R.id.item_title);
titleText.setText("房号");
ImageView itemIcon=findViewById(R.id.item1).findViewById(R.id.item_icon);
itemIcon.setImageResource(R.drawable.room_no);

ScrollTextView scrollTextView1=findViewById(R.id.item1).findViewById(R.id.item_content);
scrollTextView1.setText("深圳慧风雅苑净书阁B栋712");
scrollTextView1.setText("深圳慧风雅苑净书阁X栋A12");
scrollTextView1.setHorizontal(false);


Expand All @@ -40,8 +61,6 @@ protected void onCreate(Bundle savedInstanceState) {





TextView titleText3=findViewById(R.id.item3).findViewById(R.id.item_title);
titleText3.setText("车位");
ImageView itemIcon3=findViewById(R.id.item3).findViewById(R.id.item_icon);
Expand Down
74 changes: 23 additions & 51 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@

<View
android:id="@+id/view2"
android:layout_width="1dp"
android:layout_height="40dp"
android:layout_width="1px"
android:layout_height="33dp"
android:background="#ffffffff"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"

app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />

Expand Down Expand Up @@ -102,9 +105,11 @@

<View
android:id="@+id/view1"
android:layout_width="1dp"
android:layout_height="40dp"
android:layout_width="1px"
android:layout_height="33dp"
android:background="#ffffffff"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />

Expand All @@ -125,60 +130,27 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginTop="33dp"
android:layout_margin="33dp"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraint_layout_2">

<LinearLayout
android:id="@+id/cancel_welcome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:orientation="vertical"
app:layout_constraintEnd_toStartOf="@+id/go_welcome"
app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintStart_toStartOf="parent">

<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:src="@drawable/cancel" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingTop="8dp"
android:text="忽略"
android:textColor="#ffffffff"
android:textSize="12sp" />

</LinearLayout>


<LinearLayout
android:id="@+id/go_welcome"
android:layout_width="wrap_content"
<!--// 滚动字幕-->
<anylife.scrolltextview.ScrollTextView
android:id="@+id/scrollText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/cancel_welcome">

<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:src="@drawable/service" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingTop="8dp"
android:text="忽略"
android:textColor="#ffffffff"
android:textSize="12sp" />
</LinearLayout>
android:singleLine="true"
customAttr:clickEnable="true"
customAttr:isHorizontal="true"
customAttr:speed="4"
customAttr:text="这是滚动字幕,这是滚动的字幕,ABCDEFGHIJK1234567890"
customAttr:text_color="@color/colorAccent"
customAttr:text_size="19sp"
customAttr:times="567" />


</android.support.constraint.ConstraintLayout>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="colorAccent">#43ff40</color>
</resources>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.2.1'

//添加一下两个classpath。

Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true

4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Sep 11 15:43:13 CST 2018
#Tue Mar 26 16:29:49 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

0 comments on commit e7bb254

Please sign in to comment.