Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2f018339
Kaydet (Commit)
2f018339
authored
Şub 04, 2015
tarafından
Tomaž Vajngerl
Kaydeden (comit)
Miklos Vajna
Şub 09, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: blinking cursor
Change-Id: I1e2d5df7917ec0f8e780e3e3481dadd10b1b76ed
üst
e2d4cfa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
TextCursorView.java
...l/LOAndroid3/src/java/org/libreoffice/TextCursorView.java
+12
-1
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/TextCursorView.java
Dosyayı görüntüle @
2f018339
...
@@ -29,9 +29,11 @@ public class TextCursorView extends ImageView {
...
@@ -29,9 +29,11 @@ public class TextCursorView extends ImageView {
private
int
mWidth
;
private
int
mWidth
;
private
int
mHeight
;
private
int
mHeight
;
private
int
mAlpha
=
0
;
public
TextCursorView
(
Context
context
,
AttributeSet
attrs
)
{
public
TextCursorView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
super
(
context
,
attrs
);
postDelayed
(
cursorAnimation
,
500
);
}
}
public
void
changePosition
(
RectF
position
)
{
public
void
changePosition
(
RectF
position
)
{
...
@@ -57,7 +59,6 @@ public class TextCursorView extends ImageView {
...
@@ -57,7 +59,6 @@ public class TextCursorView extends ImageView {
mTop
=
Math
.
round
(
scaled
.
centerY
()
-
y
);
mTop
=
Math
.
round
(
scaled
.
centerY
()
-
y
);
setScaleY
(
scaled
.
height
());
setScaleY
(
scaled
.
height
());
setLayoutPosition
();
setLayoutPosition
();
}
}
...
@@ -76,4 +77,13 @@ public class TextCursorView extends ImageView {
...
@@ -76,4 +77,13 @@ public class TextCursorView extends ImageView {
setLayoutParams
(
mLayoutParams
);
setLayoutParams
(
mLayoutParams
);
}
}
private
Runnable
cursorAnimation
=
new
Runnable
()
{
public
void
run
()
{
mAlpha
=
mAlpha
==
0
?
0xFF
:
0
;
getDrawable
().
setAlpha
(
mAlpha
);
invalidate
();
postDelayed
(
cursorAnimation
,
500
);
}
};
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment