Commit f4279fb2 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Info bubble adjustments


Former-commit-id: 2d82f848b53e044d85d852f135710c3ca844a57a
parent ec7769f0
......@@ -12,6 +12,7 @@ import org.lindoor.LindoorApplication.Companion.coreContext
import org.lindoor.R
import org.lindoor.databinding.FragmentAssistantRemoteQrBinding
import org.lindoor.utils.DialogUtil
import org.lindoor.utils.extensions.invisible
import org.lindoor.utils.extensions.toogleVisible
import org.linphone.core.ConfiguringState
import org.linphone.core.tools.Log
......@@ -49,6 +50,15 @@ class RemoteQrAccountFragment : GenericFragment() {
})
binding.root.infobutton.setOnClickListener {
binding.root.infotext.toogleVisible()
}
binding.root.setOnClickListener {
binding.root.infotext.invisible()
}
return binding.root
}
......
......@@ -14,6 +14,7 @@ import org.lindoor.GenericFragment
import org.lindoor.R
import org.lindoor.databinding.FragmentAssistantRemoteRootBinding.inflate
import org.lindoor.utils.DialogUtil
import org.lindoor.utils.extensions.invisible
import org.lindoor.utils.extensions.toogleVisible
import permissions.dispatcher.NeedsPermission
import permissions.dispatcher.OnNeverAskAgain
......@@ -41,6 +42,10 @@ class RemoteRootFragment : GenericFragment() {
binding.root.infobutton.setOnClickListener {
binding.root.infotext.toogleVisible()
}
binding.root.setOnClickListener {
binding.root.infotext.invisible()
}
return binding.root
}
......
......@@ -64,6 +64,7 @@ class RemoteUrlAccountFragment : GenericFragment() {
DialogUtil.error("failed_creating_pushgateway")
})
return binding.root
}
......
......@@ -34,6 +34,24 @@
android:layout_marginTop="40dp"
android:layout_centerHorizontal="true"/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/infobutton"
icon='@{"icons/informations"}'
backgroundeffect='@{"info_bubble"}'
tint='@{"color_c"}'
android:scaleType="centerInside"
app:elevation="10dp"
app:fabCustomSize="20dp"
app:maxImageSize="9dp"
android:layout_marginTop="-21dp"
android:layout_width="20dp"
android:layout_marginStart="-10dp"
android:layout_height="20dp"
android:layout_toEndOf="@+id/title"
android:layout_alignTop="@+id/title" />
<TextView
android:id="@+id/subtitle"
style='@{"view_sub_title"}'
......@@ -44,6 +62,19 @@
android:layout_centerHorizontal="true"
android:layout_marginTop="33dp" />
<TextView
android:id="@+id/infotext"
android:padding="10dp"
style='@{"info_bubble"}'
text='@{"assistant_remote_prov_from_qr_infobubble"}'
backgoundcolor='@{"color_n"}'
android:layout_width="210dp"
android:layout_height="wrap_content"
android:layout_below="@+id/infobutton"
android:layout_alignEnd="@+id/title"
android:visibility="invisible"
/>
</RelativeLayout>
......
......@@ -17,7 +17,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
android:text="toto titi"
style='@{"view_main_title"}'
text='@{"assistant_remote_prov"}' />
......
......@@ -55,6 +55,7 @@
/>
</RelativeLayout>
</layout>
\ No newline at end of file
Subproject commit 9e2c1f37dddd56fa61992f0ca347d04e19664695
Subproject commit d9d1724a3162bf38ce3febdb30a27730dd9555f4
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment