Skip to content

Commit

Permalink
Adds assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleker committed Feb 17, 2017
1 parent 064ea68 commit 62e01c0
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 15 deletions.
12 changes: 12 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="news.androidtv.subchannel">

<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-feature
android:name="android.software.live_tv"
android:required="true" />

<uses-permission android:name="android.permission.INTERNET" />
<!-- Required to restart job service -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Expand All @@ -11,6 +18,7 @@
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:banner="@drawable/ic_banner"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
Expand All @@ -19,6 +27,10 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>

<service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void onClick(View view) {
}
});
getPosts();
getSupportActionBar().hide();
}

public void getPosts() {
Expand Down
Binary file added app/src/main/res/drawable/ic_banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 29 additions & 15 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,34 @@
android:id="@+id/activity_main"
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:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:orientation="horizontal"
tools:context="news.androidtv.subchannel.MainActivity">
<Button
android:layout_width="wrap_content"
android:text="Open Live Channels"
android:id="@+id/livechannels"
android:layout_height="wrap_content" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/logs"
android:text="" />
<LinearLayout
android:layout_width="480dp"
android:orientation="vertical"
android:background="#D84315"
android:padding="16dp"
android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:textColor="@android:color/white"
android:text="@string/long_description"
android:layout_height="match_parent" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="16dp"
android:layout_height="match_parent">
<Button
android:layout_width="wrap_content"
android:text="Open Live Channels"
android:id="@+id/livechannels"
android:layout_height="wrap_content" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/logs"
android:text="" />
</LinearLayout>
</LinearLayout>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
<string name="error_sync_canceled">Sync canceled</string>
<string name="error_sync_no_data">No data found</string>
<string name="error_sync_default">Sync error %1$d</string>
<string name="long_description">"SubChannel is a Live Channel source that will be able to play a variety of YouTube videos from subreddits. At the moment, it will only show /r/youtubehaiku. You will also be able to use the native time-shifting and DVR features in Live Channels. This app is currently in alpha. Please report bugs or contribute to the GitHub project: github.com/itvlab/SubChannel."</string>
</resources>
Binary file added store/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added store/banner.psd
Binary file not shown.
Binary file added store/device-2017-02-16-224209.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added store/feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added store/feature.psd
Binary file not shown.
Binary file added store/haiku.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 62e01c0

Please sign in to comment.