Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
Add activity_main.xml file in base layout directory
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk44 committed Nov 9, 2019
1 parent 5f14728 commit e4ebfc5
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 0 deletions.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
16 changes: 16 additions & 0 deletions app/.cxx/cmake/debug/x86/json_generation_record.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
"level": "INFO",
"message": "Start JSON generation. Platform version: 21 min SDK version: x86"
},
{
"level": "INFO",
"message": "No CMake version was specified in build.gradle. Choosing a suitable version."
},
{
"level": "INFO",
"message": "Trying to locate CMake in local SDK repository."
},
{
"level": "INFO",
"message": "CMake \u00273.10.2\u0027 found in SDK did not match requested version \u00273.6.0\u0027."
},
{
"level": "INFO",
"message": "- CMake found in SDK at \u0027C:\\Users\\Chris\\AppData\\Local\\Android\\Sdk\\cmake\\3.6.4111459\u0027 had version \u00273.6.0\u0027"
},
{
"level": "INFO",
"message": "JSON \u0027C:\\Users\\Chris\\Desktop\\AndroidStudioProjects\\Hijacker\\app\\.cxx\\cmake\\debug\\x86\\android_gradle_build.json\u0027 was up-to-date"
Expand Down
109 changes: 109 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

<!-- The main content view -->
<RelativeLayout
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="com.hijacker.MainActivity"
android:animateLayoutChanges="true">


<android.support.v7.widget.Toolbar
android:id="@+id/my_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:elevation="4dp"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">

<ImageView
android:layout_height="@android:dimen/app_icon_size"
app:srcCompat="@drawable/ap_drawable"
android:adjustViewBounds="false"
android:layout_width="48dip"
android:paddingStart="20dp"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:paddingEnd="5dp"
android:clickable="true"
android:onClick="onAPStats"
android:focusable="true" />

<TextView
android:text="0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ap_count"
android:textColor="@android:color/white"
android:textSize="18sp"
android:clickable="true"
android:onClick="onAPStats"
android:focusable="true" />

<ImageView
android:layout_height="@android:dimen/app_icon_size"
app:srcCompat="@drawable/st_drawable"
android:adjustViewBounds="false"
android:layout_width="48dip"
android:paddingStart="20dp"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:paddingEnd="5dp"
android:clickable="true"
android:onClick="onAPStats"
android:focusable="true" />

<TextView
android:text="0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/st_count"
android:textColor="@android:color/white"
android:textSize="18sp"
android:clickable="true"
android:onClick="onAPStats"
android:focusable="true" />

</android.support.v7.widget.Toolbar>

<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:id="@+id/progressBar"
android:layout_width="match_parent"
android:progressDrawable="@drawable/progress_horizontal_holo_blue_dark"
android:layout_height="wrap_content"
android:minHeight="5dp"
android:minWidth="0dp"
android:layout_below="@+id/my_toolbar"
android:maxHeight="5dp" />

<FrameLayout
android:id="@+id/fragment1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/progressBar"
android:layout_marginTop="3dp" />

</RelativeLayout>

<!-- Container for contents of drawer - use NavigationView to make configuration easier -->
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header"
app:itemTextColor="@color/drawer_selector"
app:menu="@menu/drawer_view" />
</android.support.v4.widget.DrawerLayout>

0 comments on commit e4ebfc5

Please sign in to comment.