mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Re-added some links
This commit is contained in:
parent
8195fe56fd
commit
38a9153240
2 changed files with 30 additions and 1 deletions
|
@ -30,6 +30,14 @@ class AboutLinksPreference @JvmOverloads constructor(context: Context, attrs: At
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
holder.findViewById(R.id.btn_website).apply {
|
||||||
|
compatToolTipText = (contentDescription.toString())
|
||||||
|
setOnClickListener { context.openInBrowser("https://mihon.app") }
|
||||||
|
}
|
||||||
|
holder.findViewById(R.id.btn_discord).apply {
|
||||||
|
compatToolTipText = (contentDescription.toString())
|
||||||
|
setOnClickListener { context.openInBrowser("https://discord.gg/mihon") }
|
||||||
|
}
|
||||||
holder.findViewById(R.id.btn_github).apply {
|
holder.findViewById(R.id.btn_github).apply {
|
||||||
compatToolTipText = (contentDescription.toString())
|
compatToolTipText = (contentDescription.toString())
|
||||||
setOnClickListener { context.openInBrowser("https://github.com/null2264/yokai") }
|
setOnClickListener { context.openInBrowser("https://github.com/null2264/yokai") }
|
||||||
|
|
|
@ -13,6 +13,27 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/btn_website"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:contentDescription="@string/website"
|
||||||
|
android:padding="16dp"
|
||||||
|
android:src="@drawable/ic_open_in_webview_24dp"
|
||||||
|
app:tint="?attr/colorAccent" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/btn_discord"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:contentDescription="Discord"
|
||||||
|
android:padding="16dp"
|
||||||
|
android:src="@drawable/ic_discord_24dp"
|
||||||
|
app:tint="?attr/colorAccent"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/btn_github"
|
android:id="@+id/btn_github"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -25,4 +46,4 @@
|
||||||
tools:ignore="HardcodedText" />
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue