Android: Use findViewById instead of getChildAt

More futureproof if anything else is added to the layout.
This commit is contained in:
Lioncash
2014-12-28 20:33:24 -05:00
parent 4221999c6e
commit 038b968698
2 changed files with 4 additions and 4 deletions

View File

@ -10,14 +10,14 @@
<SeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/seekBar"
android:id="@+id/sliderSeekBar"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Sample Text"
android:id="@+id/textView"
android:id="@+id/sliderTextView"
android:textStyle="bold"/>
</LinearLayout>