Skip to content

Instantly share code, notes, and snippets.

@orfeomorello
Created October 10, 2015 10:46
Show Gist options
  • Save orfeomorello/f01f456d970f54cc1358 to your computer and use it in GitHub Desktop.
Save orfeomorello/f01f456d970f54cc1358 to your computer and use it in GitHub Desktop.
Example of activity_main.xml for app using https://github.com/Bearded-Hen/Android-Bootstrap
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:components="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<TextView android:text="Hello World" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.beardedhen.androidbootstrap.AwesomeTextView
style="@style/wrapping_fa_text"
android:textSize="30dp"
app:bootstrapBrand="primary"
app:bootstrapText="Share on {fa_facebook} with a {fa_thumbs_o_up}"
tools:ignore="SpUsage"
/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment