Skip to content

Commit

Permalink
add rick and morty note
Browse files Browse the repository at this point in the history
  • Loading branch information
abertschi committed Sep 1, 2017
1 parent b320f0d commit 2c36d88
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ class InterdimCableView(val context: Context) {

var text = viewInstance?.findViewById(R.id.plugin_interdim_cable_audio_volume_text) as TextView
text?.typeface = ViewSettings.instance(context).typeFace
val t = "> configure <font color=#FFFFFF>audio volume</font>"
var t = "> configure <font color=#FFFFFF>audio volume</font>"
text?.text = Html.fromHtml(t)
text.setOnClickListener { presenter.configureAudioVolume() }

var des = viewInstance?.findViewById(R.id.plugin_interdim_cable_description) as TextView
des?.typeface = ViewSettings.instance(context).typeFace

t = "enjoy intergalactic television featured in " +
"rick and morty by adult swim"
des?.text = Html.fromHtml(t)

return viewInstance
}

Expand Down
17 changes: 16 additions & 1 deletion app/src/main/res/layout/plugin_interdim_cable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:id="@+id/plugin_interdim_cable_audio_volume_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="30dp"
android:layout_marginBottom="20dp"

android:inputType="textMultiLine"
android:scrollHorizontally="false"
Expand All @@ -18,4 +18,19 @@
android:textSize="@dimen/normal_text_size"
/>

<TextView
android:id="@+id/plugin_interdim_cable_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:inputType="textMultiLine"
android:scrollHorizontally="false"
android:paddingRight="40dp"

android:text=""
android:textColor="#C4BCAF"
android:textSize="@dimen/normal_text_small"
android:layout_below="@+id/plugin_interdim_cable_audio_volume_text"
android:layout_alignParentStart="true"/>

</RelativeLayout>

0 comments on commit 2c36d88

Please sign in to comment.