10 changed files with 193 additions and 25 deletions
@ -0,0 +1,46 @@
|
||||
/** |
||||
* ProjectLaogai |
||||
* |
||||
* Copyright 2018 <seil0@mosad.xyz> |
||||
* |
||||
* This program is free software; you can redistribute it and/or modify |
||||
* it under the terms of the GNU General Public License as published by |
||||
* the Free Software Foundation; either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU General Public License |
||||
* along with this program; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
||||
* MA 02110-1301, USA. |
||||
* |
||||
*/ |
||||
|
||||
package org.mosad.seil0.projectlaogai |
||||
|
||||
import android.os.Bundle |
||||
import android.support.v4.app.Fragment |
||||
import android.view.LayoutInflater |
||||
import android.view.View |
||||
import android.view.ViewGroup |
||||
|
||||
/** |
||||
* The settings controller class |
||||
* contains all needed parts to display and the settings screen |
||||
*/ |
||||
class SettingsFragment : Fragment() { |
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { |
||||
|
||||
val view: View = inflater.inflate(R.layout.fragment_settings, container, false) |
||||
|
||||
// Inflate the layout for this fragment |
||||
return view |
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<FrameLayout 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=".SettingsFragment"> |
||||
|
||||
<!-- TODO: Update blank fragment layout --> |
||||
|
||||
<android.support.constraint.ConstraintLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent"> |
||||
|
||||
<LinearLayout |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" app:layout_constraintTop_toTopOf="parent" |
||||
app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" |
||||
> |
||||
<android.support.v7.widget.CardView |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="9dp"> |
||||
<LinearLayout |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content"> |
||||
<TextView |
||||
android:text="@string/info" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/txtView_Info" |
||||
android:typeface="sans" |
||||
android:textSize="18sp" android:textStyle="bold" android:fontFamily="sans-serif" |
||||
android:layout_margin="7dp" android:textColor="@color/colorPrimary"/> |
||||
<LinearLayout |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:padding="7dp"> |
||||
<TextView |
||||
android:text="@string/sampleuser" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/txtView_User" |
||||
android:textSize="16sp" android:textStyle="bold" |
||||
android:textColor="@android:color/primary_text_light"/> |
||||
<TextView |
||||
android:text="@string/user" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/txtView_UserDesc"/> |
||||
</LinearLayout> |
||||
<View |
||||
android:id="@+id/divider2" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="1dp" |
||||
android:background="?android:attr/listDivider" |
||||
/> |
||||
<LinearLayout |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:layout_margin="7dp"> |
||||
<TextView |
||||
android:text="@string/samplecourse" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/txtView_Course" |
||||
android:textSize="16sp" android:textColor="@android:color/primary_text_light" |
||||
android:textStyle="bold"/> |
||||
<TextView |
||||
android:text="@string/course_desc" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/txtView_CourseDesc"/> |
||||
</LinearLayout> |
||||
</LinearLayout> |
||||
</android.support.v7.widget.CardView> |
||||
<android.support.v7.widget.CardView |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="9dp"> |
||||
<LinearLayout |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/linLayout_Settings"> |
||||
<TextView |
||||
android:text="@string/settings" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/txtView_Settings" |
||||
android:typeface="sans" |
||||
android:textSize="18sp" android:textColor="@color/design_default_color_primary" |
||||
android:textStyle="bold" android:layout_margin="7dp" android:paddingTop="3dp"/> |
||||
<LinearLayout |
||||
android:orientation="horizontal" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:layout_margin="7dp" android:gravity="end"> |
||||
<LinearLayout |
||||
android:orientation="vertical" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content"> |
||||
<TextView |
||||
android:text="Maincolor" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/textView9" |
||||
android:textSize="16sp" android:textStyle="bold" |
||||
android:textColor="@android:color/primary_text_light"/> |
||||
<TextView |
||||
android:text="The main color, default is indigo" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:id="@+id/textView8"/> |
||||
</LinearLayout> |
||||
<LinearLayout |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" android:layout_margin="7dp" |
||||
android:gravity="end"> |
||||
<Button |
||||
android:text="Button" |
||||
android:layout_width="40dp" |
||||
android:layout_height="40dp" android:id="@+id/button" |
||||
android:textColor="@android:color/black"/> |
||||
</LinearLayout> |
||||
</LinearLayout> |
||||
</LinearLayout> |
||||
</android.support.v7.widget.CardView> |
||||
</LinearLayout> |
||||
</android.support.constraint.ConstraintLayout> |
||||
</FrameLayout> |
Loading…
Reference in new issue