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
16c53fb6
Kaydet (Commit)
16c53fb6
authored
Eki 25, 2013
tarafından
Artur Dryomov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add "learn more" link for providing additional information.
Change-Id: I3bb3480491d5f92ed7c4e3e6b5cf233636c4bb64
üst
2e605fcb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
1 deletion
+37
-1
AndroidManifest.xml
android/sdremote/AndroidManifest.xml
+7
-0
fragment_computers_list.xml
android/sdremote/res/layout/fragment_computers_list.xml
+9
-0
dimens.xml
android/sdremote/res/values/dimens.xml
+1
-0
strings.xml
android/sdremote/res/values/strings.xml
+1
-1
ComputersFragment.java
...libreoffice/impressremote/fragment/ComputersFragment.java
+19
-0
No files found.
android/sdremote/AndroidManifest.xml
Dosyayı görüntüle @
16c53fb6
...
...
@@ -78,6 +78,13 @@
<activity
android:name=
".activity.RequirementsActivity"
android:label=
"@string/title_requirements"
>
<intent-filter>
<action
android:name=
"android.intent.action.VIEW"
/>
<data
android:scheme=
"org.libreoffice.impressremote"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
</intent-filter>
</activity>
<activity
...
...
android/sdremote/res/layout/fragment_computers_list.xml
Dosyayı görüntüle @
16c53fb6
...
...
@@ -48,6 +48,15 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<TextView
android:id=
"@+id/text_learn_more"
android:text=
"@string/message_learn_more"
android:layout_gravity=
"center_horizontal"
android:visibility=
"invisible"
android:paddingTop=
"@dimen/padding_vertical_learn_more"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
<ListView
...
...
android/sdremote/res/values/dimens.xml
Dosyayı görüntüle @
16c53fb6
...
...
@@ -44,6 +44,7 @@
<dimen
name=
"padding_vertical_error_message"
>
12dp
</dimen>
<dimen
name=
"padding_vertical_edit"
>
8dp
</dimen>
<dimen
name=
"padding_vertical_progress_message"
>
8dp
</dimen>
<dimen
name=
"padding_vertical_learn_more"
>
4dp
</dimen>
<dimen
name=
"margin_vertical_action_bar_divider"
>
12dp
</dimen>
<dimen
name=
"margin_slide"
>
8dp
</dimen>
...
...
android/sdremote/res/values/strings.xml
Dosyayı görüntüle @
16c53fb6
...
...
@@ -59,9 +59,9 @@
<string
name=
"message_time_is_up"
>
Time is up!
</string>
<string
name=
"message_search_wifi"
>
Make sure LibreOffice is running on a computer on the same WiFi network.
</string>
<string
name=
"message_search_bluetooth"
>
Make sure LibreOffice is running on a computer with Bluetooth enabled.
</string>
<string
name=
"message_learn_more"
><a
href=
"org.libreoffice.impressremote://requirements/"
>
Learn more
</a></string>
<string
name=
"message_paused"
>
Paused
</string>
<string
name=
"message_notes_empty"
>
Nothing here.
</string>
<string
name=
"hint_ip_address"
>
IP address
</string>
<string
name=
"hint_name"
>
Name (optional)
</string>
...
...
android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
Dosyayı görüntüle @
16c53fb6
...
...
@@ -23,7 +23,10 @@ import android.os.Bundle;
import
android.os.Handler
;
import
android.os.IBinder
;
import
android.support.v4.content.LocalBroadcastManager
;
import
android.text.Html
;
import
android.text.TextUtils
;
import
android.text.method.LinkMovementMethod
;
import
android.text.util.Linkify
;
import
android.view.ContextMenu
;
import
android.view.LayoutInflater
;
import
android.view.View
;
...
...
@@ -107,6 +110,7 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
if
(
aProgressMessageDisplayed
)
{
showProgressMessage
();
showLearnMoreMessage
();
}
}
...
...
@@ -124,6 +128,20 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
return
(
TextView
)
getView
().
findViewById
(
R
.
id
.
text_progress_message
);
}
private
void
showLearnMoreMessage
()
{
TextView
learnMoreView
=
getLearnMoreView
();
Animation
aFadeInAnimation
=
AnimationUtils
.
loadAnimation
(
getActivity
(),
android
.
R
.
anim
.
fade_in
);
learnMoreView
.
setMovementMethod
(
LinkMovementMethod
.
getInstance
());
learnMoreView
.
startAnimation
(
aFadeInAnimation
);
learnMoreView
.
setVisibility
(
View
.
VISIBLE
);
}
private
TextView
getLearnMoreView
()
{
return
(
TextView
)
getView
().
findViewById
(
R
.
id
.
text_learn_more
);
}
private
String
getProgressMessage
()
{
switch
(
getType
())
{
case
WIFI:
...
...
@@ -238,6 +256,7 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
}
showProgressMessage
();
showLearnMoreMessage
();
}
private
boolean
isShowingProgressMessageRequired
()
{
...
...
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