Added an other master detail flow activity for Forums
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
6
OSJ Forum/res/layout/activity_forum_detail.xml
Normal file
6
OSJ Forum/res/layout/activity_forum_detail.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/forum_detail_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ForumDetailActivity" />
|
||||
9
OSJ Forum/res/layout/activity_forum_list.xml
Normal file
9
OSJ Forum/res/layout/activity_forum_list.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:name="com.RickBarrette.osj.forum.ForumListFragment"
|
||||
android:id="@+id/forum_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
tools:context=".ForumListActivity" />
|
||||
23
OSJ Forum/res/layout/activity_forum_twopane.xml
Normal file
23
OSJ Forum/res/layout/activity_forum_twopane.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:divider="?android:attr/dividerHorizontal"
|
||||
android:showDividers="middle"
|
||||
tools:context=".ForumListActivity">
|
||||
|
||||
<fragment android:name="com.RickBarrette.osj.forum.ForumListFragment"
|
||||
android:id="@+id/forum_list"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<FrameLayout android:id="@+id/forum_detail_container"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="3" />
|
||||
|
||||
</LinearLayout>
|
||||
8
OSJ Forum/res/layout/fragment_forum_detail.xml
Normal file
8
OSJ Forum/res/layout/fragment_forum_detail.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="?android:attr/textAppearanceLarge"
|
||||
android:id="@+id/forum_detail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp"
|
||||
tools:context=".ForumDetailFragment" />
|
||||
Reference in New Issue
Block a user