Last active
April 8, 2017 20:34
-
-
Save markojerkic/7a9d9b864abac4ea01f8c2e1f3d83aef to your computer and use it in GitHub Desktop.
ViewSwitcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/activity_main" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.markojerkic.viewswitch.MainActivity"> | |
<Button | |
android:text="Switch" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/button" /> | |
<ViewSwitcher | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/viewSwitcher"> | |
<RatingBar | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/ratingBar"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/textView"/> | |
</ViewSwitcher> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment