Skip to content

Commit

Permalink
Improved layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
agrebnev committed Mar 29, 2014
1 parent 26feddd commit b87b09c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
11 changes: 10 additions & 1 deletion atleap-sample/src/main/res/layout/fragment_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
android:id="@+id/full_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textSize="16sp"
android:fontFamily="fonts/Roboto-Regular.ttf"
android:textColor="#FF000000"
tools:text="JakeWharton/ActionBarSherlock"
/>

Expand All @@ -22,6 +24,9 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignBottom="@id/full_name"
android:textSize="14sp"
android:fontFamily="fonts/Roboto-Regular.ttf"
android:textColor="#FF000000"
tools:text="1234"
/>

Expand All @@ -30,6 +35,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/full_name"
android:textSize="14sp"
android:fontFamily="fonts/Roboto-Regular.ttf"
android:textColor="#FF000000"
android:layout_marginTop="10dp"
tools:text="Action bar implementation which uses the native action bar on Android 4.0+ and a custom implementation on pre-4.0 through a single API and theme."
/>

Expand Down
4 changes: 0 additions & 4 deletions atleap-sample/src/main/res/layout/fragment_master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
xmlns:tools="http://schemas.android.com/tools"
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="com.blandware.android.atleap.sample.ui.MasterFragment">

<ListView
Expand Down
27 changes: 20 additions & 7 deletions atleap-sample/src/main/res/layout/listitem_repository.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,37 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="90dp"
android:padding="10dp">

<ImageView
android:id="@+id/avatar_url"
android:layout_width="80dp"
android:layout_height="80dp"
tools:src="@drawable/ic_launcher"/>
android:layout_width="48dp"
android:layout_height="48dp"
tools:src="@drawable/ic_launcher"
android:layout_marginRight="10dp"/>

<TextView
android:id="@+id/full_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/avatar_url"
android:textStyle="bold"
android:textSize="16sp"
android:fontFamily="fonts/Roboto-Regular.ttf"
android:textColor="#FF000000"
android:maxLines="1"
android:ellipsize="end"
tools:text="JakeWharton/ActionBarSherlock"
/>

<TextView
android:id="@+id/stargazers_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignBottom="@id/full_name"
android:layout_below="@id/avatar_url"
android:textSize="14sp"
android:fontFamily="fonts/Roboto-Regular.ttf"
android:textColor="#FF000000"
tools:text="1234"
/>

Expand All @@ -35,6 +43,11 @@
android:layout_height="wrap_content"
android:layout_below="@id/full_name"
android:layout_toRightOf="@id/avatar_url"
android:textSize="14sp"
android:fontFamily="fonts/Roboto-Regular.ttf"
android:textColor="#FF000000"
android:maxLines="2"
android:ellipsize="end"
tools:text="Action bar implementation which uses the native action bar on Android 4.0+ and a custom implementation on pre-4.0 through a single API and theme."
/>

Expand Down

0 comments on commit b87b09c

Please sign in to comment.