Skip to content

Commit

Permalink
append layout file
Browse files Browse the repository at this point in the history
rel #67
  • Loading branch information
Jayin committed Feb 27, 2016
1 parent b42f413 commit d40e6dc
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/src/main/res/layout/acty_question_detail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>

<io.github.emanual.app.widget.SwipeBackLayout
android:id="@+id/swipBackLayout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.QuestionDetailActivity">


<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:orientation="vertical"
>

<include layout="@layout/toolbar"/>

<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
</LinearLayout>


</io.github.emanual.app.widget.SwipeBackLayout>
28 changes: 28 additions & 0 deletions app/src/main/res/layout/acty_question_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<io.github.emanual.app.widget.SwipeBackLayout
android:id="@+id/swipBackLayout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="io.github.emanual.app.ui.QuestionListActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:orientation="vertical"
>

<include layout="@layout/toolbar"/>

<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/adapter_questionlist">
</android.support.v7.widget.RecyclerView>
</LinearLayout>

</io.github.emanual.app.widget.SwipeBackLayout>
55 changes: 55 additions & 0 deletions app/src/main/res/layout/adapter_questionlist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/layout_container"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="54dp"
android:background="@drawable/btn_item_whit2grey"
android:orientation="vertical"
android:paddingLeft="12dp"
android:paddingRight="6dp"
android:paddingTop="6dp"
android:paddingBottom="2dp"
>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">


<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingLeft="6dp">

<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Ruby"
android:textColor="@android:color/black"
android:textSize="18sp"
android:singleLine="true"
android:ellipsize="end"
android:layout_marginLeft="2dp"/>

</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_keyboard_arrow_right_black_36dp"/>
</LinearLayout>

<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@drawable/ic_line_1"
android:layout_marginTop="4dp"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
12 changes: 12 additions & 0 deletions app/src/main/res/layout/fragment_interview_detail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<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"
tools:context=".ui.fragment.InterviewDetailFragment"
tools:showIn="@layout/acty_question_detail">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="test"/>

</RelativeLayout>
10 changes: 10 additions & 0 deletions app/src/main/res/menu/menu_interview_detail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".ui.QuestionDetailActivity">
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never"/>
</menu>

0 comments on commit d40e6dc

Please sign in to comment.