Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BeHub
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
adam
BeHub
Commits
a97d20e2
Commit
a97d20e2
authored
Nov 21, 2015
by
adam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
121 additions
and
0 deletions
+121
-0
ApplicationTest.java
...est/java/com/anotherlineofcode/behub/ApplicationTest.java
+14
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+23
-0
MainActivity.java
...c/main/java/com/anotherlineofcode/behub/MainActivity.java
+38
-0
activity_main.xml
app/src/main/res/layout/activity_main.xml
+11
-0
menu_main.xml
app/src/main/res/menu/menu_main.xml
+5
-0
ic_launcher.png
app/src/main/res/mipmap-hdpi/ic_launcher.png
+0
-0
ic_launcher.png
app/src/main/res/mipmap-mdpi/ic_launcher.png
+0
-0
ic_launcher.png
app/src/main/res/mipmap-xhdpi/ic_launcher.png
+0
-0
ic_launcher.png
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
+0
-0
styles.xml
app/src/main/res/values-v21/styles.xml
+5
-0
dimens.xml
app/src/main/res/values-w820dp/dimens.xml
+6
-0
dimens.xml
app/src/main/res/values/dimens.xml
+5
-0
strings.xml
app/src/main/res/values/strings.xml
+6
-0
styles.xml
app/src/main/res/values/styles.xml
+8
-0
No files found.
app/src/androidTest/java/com/anotherlineofcode/behub/ApplicationTest.java
0 → 100644
View file @
a97d20e2
package
com
.
anotherlineofcode
.
behub
;
import
android.app.Application
;
import
android.test.ApplicationTestCase
;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public
class
ApplicationTest
extends
ApplicationTestCase
<
Application
>
{
public
ApplicationTest
()
{
super
(
Application
.
class
);
}
}
\ No newline at end of file
app/src/main/AndroidManifest.xml
0 → 100644
View file @
a97d20e2
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.anotherlineofcode.behub"
>
<application
android:allowBackup=
"true"
android:icon=
"@mipmap/ic_launcher"
android:label=
"@string/app_name"
android:theme=
"@style/AppTheme"
>
<activity
android:name=
".MainActivity"
android:label=
"@string/app_name"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
</application>
</manifest>
app/src/main/java/com/anotherlineofcode/behub/MainActivity.java
0 → 100644
View file @
a97d20e2
package
com
.
anotherlineofcode
.
behub
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.view.Menu
;
import
android.view.MenuItem
;
public
class
MainActivity
extends
Activity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
}
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater
().
inflate
(
R
.
menu
.
menu_main
,
menu
);
return
true
;
}
@Override
public
boolean
onOptionsItemSelected
(
MenuItem
item
)
{
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int
id
=
item
.
getItemId
();
//noinspection SimplifiableIfStatement
if
(
id
==
R
.
id
.
action_settings
)
{
return
true
;
}
return
super
.
onOptionsItemSelected
(
item
);
}
}
app/src/main/res/layout/activity_main.xml
0 → 100644
View file @
a97d20e2
<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: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=
".MainActivity"
>
<TextView
android:text=
"@string/hello_world"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
</RelativeLayout>
app/src/main/res/menu/menu_main.xml
0 → 100644
View file @
a97d20e2
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
tools:context=
".MainActivity"
>
<item
android:id=
"@+id/action_settings"
android:title=
"@string/action_settings"
android:orderInCategory=
"100"
android:showAsAction=
"never"
/>
</menu>
app/src/main/res/mipmap-hdpi/ic_launcher.png
0 → 100644
View file @
a97d20e2
3.34 KB
app/src/main/res/mipmap-mdpi/ic_launcher.png
0 → 100644
View file @
a97d20e2
2.15 KB
app/src/main/res/mipmap-xhdpi/ic_launcher.png
0 → 100644
View file @
a97d20e2
4.73 KB
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
0 → 100644
View file @
a97d20e2
7.54 KB
app/src/main/res/values-v21/styles.xml
0 → 100644
View file @
a97d20e2
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"AppTheme"
parent=
"android:Theme.Material.Light"
>
</style>
</resources>
app/src/main/res/values-w820dp/dimens.xml
0 → 100644
View file @
a97d20e2
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen
name=
"activity_horizontal_margin"
>
64dp
</dimen>
</resources>
app/src/main/res/values/dimens.xml
0 → 100644
View file @
a97d20e2
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen
name=
"activity_horizontal_margin"
>
16dp
</dimen>
<dimen
name=
"activity_vertical_margin"
>
16dp
</dimen>
</resources>
app/src/main/res/values/strings.xml
0 → 100644
View file @
a97d20e2
<resources>
<string
name=
"app_name"
>
BeHub
</string>
<string
name=
"hello_world"
>
Hello world!
</string>
<string
name=
"action_settings"
>
Settings
</string>
</resources>
app/src/main/res/values/styles.xml
0 → 100644
View file @
a97d20e2
<resources>
<!-- Base application theme. -->
<style
name=
"AppTheme"
parent=
"android:Theme.Holo.Light.DarkActionBar"
>
<!-- Customize your theme here. -->
</style>
</resources>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment