mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-22 22:11:27 +01:00
removed tooltips (cf. #55)
This commit is contained in:
parent
0543bcda55
commit
6376845dc9
2 changed files with 9 additions and 12 deletions
|
@ -117,15 +117,9 @@ class ActionsRecyclerAdapter(val activity: Activity) :
|
|||
viewHolder.textView.text = gesture.getLabel(activity)
|
||||
|
||||
val description = gesture.getDescription(activity)
|
||||
viewHolder.descriptionTextView.text = description
|
||||
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
viewHolder.textView.tooltipText = description
|
||||
viewHolder.img.tooltipText = description
|
||||
viewHolder.chooseButton.tooltipText = description
|
||||
} else {
|
||||
viewHolder.descriptionTextView.visibility = View.VISIBLE
|
||||
viewHolder.descriptionTextView.text = description
|
||||
}
|
||||
if (LauncherPreferences.theme().monochromeIcons())
|
||||
transformGrayscale(viewHolder.img)
|
||||
updateViewHolder(gesture, viewHolder)
|
||||
|
|
|
@ -24,15 +24,18 @@
|
|||
|
||||
android:id="@+id/settings_actions_row_name"
|
||||
android:text=""
|
||||
android:textSize="20sp" />
|
||||
android:textSize="20sp"
|
||||
tools:text="Action label" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/settings_actions_row_description"
|
||||
android:gravity="start"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="11sp" />
|
||||
android:gravity="start"
|
||||
android:textSize="11sp"
|
||||
android:visibility="visible"
|
||||
tools:text="A verbose description of how to perform the action" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue